Re: [Gambas-user] Adding "not in list" item to a combobox

2011-04-10 Thread Bill-Lancaster
In fact this is really an issue about the Active event not firing in circumstances so I'll raise it as issue separately. Thanks for all your comments Bill Lancaster -- View this message in context: http://old.nabble.com/Adding-%22not-in-list%22-item-to-a-combobox-tp31362490p31363072.html Sent

Re: [Gambas-user] Adding "not in list" item to a combobox

2011-04-10 Thread Olivier Cruilles
Maybe, your problem is that you don't now how to acces to the ComboBox property from the sub Form ? If it that, you can create property in your main form to acces to to ComboBox like that PROPERTY AddItem as string PRIVATE SUB AddItem_Write(Value as String) IF ComboBox1.Find(Value)

Re: [Gambas-user] Adding "not in list" item to a combobox

2011-04-10 Thread Olivier Cruilles
Maybe you ca use the KeyPress event in the Combobox and in the event procedure check if the use had pressed the Enter key to valid the new Item to enter in your list ? Did I'm in the right way of what you want to do. After, to add new Item in the list, just use: ComboBox1.List.Add("New

Re: [Gambas-user] Adding "not in list" item to a combobox

2011-04-10 Thread Bill-Lancaster
No problem, 1) A form is opened with a combobox on it 2) The combobox is filled with a list on form_open 3) The user can't see what he wants in the list so I want him to be able to add a new item As I mention above, using the activate event works on the main form but not in a sub form. Whats mo

Re: [Gambas-user] Adding "not in list" item to a combobox

2011-04-10 Thread Olivier Cruilles
Hi, Can you give more details about what you wan to do because this is a little confused ? Olivier Cruilles Mail: linu...@club-internet.fr Le 10 avr. 2011 à 09:16, Bill-Lancaster a écrit : > > > Continued... > Using the "Activate" property does the job in the main form. > When the combobox

Re: [Gambas-user] Adding "not in list" item to a combobox

2011-04-10 Thread Bill-Lancaster
Continued... Using the "Activate" property does the job in the main form. When the combobox is in a sub form the Activate event doesn't fire. The sub form is called using fEditInfo.Show i.e. not modal Gambas 2.21, Ubuntu 10.10 Bill Lancaster -- View this message in context: http://old.nabb

[Gambas-user] Adding "not in list" item to a combobox

2011-04-09 Thread Bill-Lancaster
I have a combobox that is filled when the form is opened. How can the user add an item to the list? -- View this message in context: http://old.nabble.com/Adding-%22not-in-list%22-item-to-a-combobox-tp31362490p31362490.html Sent from the gambas-user mailing list archive at Nabble.com.