Home > Back-end >  New advice, how to create a drop-down box object in C builder
New advice, how to create a drop-down box object in C builder

Time:10-05

Recently proposed to develop a small program, it is necessary to use a drop-down box, radio or multiple-choice, could you tell me whether use the combobox control, how to increase in control options, thank you very much

CodePudding user response:

Combobox - & gt; The Items - & gt; Add (" option 1 ");

CodePudding user response:

reference 1st floor ksrsoft response:
combobox - & gt; The Items - & gt; Add (" option 1 ");


The answer is too hasty,

I think the building Lord ask not how to add projects in combo boxes, the focus of the focus is on how to radio or multiple-choice,
In native combo box can realize a multiple-choice, the basic principle is to achieve through the Object and the picture,
Object used to store the user to select items, from painting to performance,

CodePudding user response:

I thought can use the object's monitor editing, original want to use the code to add, code written in formcreate function is ok?

CodePudding user response:

reference bluerbird reply: 3/f
I thought can use the object's monitor editing, original want to use the code to add, code written in formcreate function is ok?


As can be added at design time, select the ComboBox, then click open the Items property, can be added inside the text you want, a line is a project,

CodePudding user response:

refer to the second floor ccrun response:
Quote: refer to 1st floor ksrsoft response:

Combobox - & gt; The Items - & gt; Add (" option 1 ");


The answer is too hasty,

I think the building Lord ask not how to add projects in combo boxes, the focus of the focus is on how to radio or multiple-choice,
In native combo box can realize a multiple-choice, the basic principle is to achieve through the Object and the picture,
Object used to store the user to select items, from painting to performance,

Combo box to add the project, the focus is on how to radio or multiple-choice, all need, I will write a SQL query according to the selected content

CodePudding user response:


Is this item, after I add, drop-down box or no content,

CodePudding user response:

Design phase, after the ComboBox added project, needs to be compiled to run to see the effect of the drop-down, the basis of the simple operation, try to know,
  • Related