| View previous topic :: View next topic |
| Author |
Message |
trapper Contributor


Joined: 28 Jan 2005 Posts: 112 Location: Brisbane, Australia
|
Posted: Wed Jun 29, 2005 10:19 am Post subject: Adding to the list in a combo element |
|
|
According to the help file content for the combo element... "Data entered in the edit control is automatically inserted into the drop-down list when the focus moves away from the control."
Can someone provide a short script example of this? It doesn't seem to work. It seems to need a command such as "list add, combo1, @dlgtext(combo1)" to do it.
Cheers. _________________ John Trappett |
|
| Back to top |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Wed Jun 29, 2005 12:45 pm Post subject: |
|
|
Unless CR made their combobox a custom control, the help file is incorrect.
It doesn't work that way in C/C++. Items must be added with the
CB_ADDSTRING or LB_ADDSTRING messages. All the edit box is for is to
allow a user to enter text that isn't provided in the drop-down list. _________________ Bill Weckel
ShinobiSoft Software
"The way is known to all, but not all know it." |
|
| Back to top |
|
 |
trapper Contributor


Joined: 28 Jan 2005 Posts: 112 Location: Brisbane, Australia
|
Posted: Wed Jun 29, 2005 8:22 pm Post subject: |
|
|
Thanks Bill. Knowing that I can code it in. I thought for a moment I must have been doing something wrong.
Cheers. _________________ John Trappett |
|
| Back to top |
|
 |
|