Re: [Gambas-user] - Populating a Combobox from a DB

2008-08-01 Thread Doriano Blengino
John K ha scritto: > Re my earlier e-mail I've solved the problem by repopulating the > combobox at the end of the Button_Click() subroutine. > However I have another question. If I create a combobox with: > DIM hComboBox AS ComboBox > hComboBox = NEW ComboBox ( Frame1 ) > > it doesn't accept any

Re: [Gambas-user] - Populating a Combobox from a DB

2008-08-01 Thread Caveat
I believe you need to use Object.Attach() If you create the control via the GUI, it's automatically attached to the Form, but when you create the control yourself, you need to tell the Form that you want to capture events from the object. Example: PUBLIC SUB Form_Open() DIM hComboBox AS Combo

Re: [Gambas-user] - Populating a Combobox from a DB

2008-08-01 Thread John K
Re my earlier e-mail I've solved the problem by repopulating the combobox at the end of the Button_Click() subroutine. However I have another question. If I create a combobox with: DIM hComboBox AS ComboBox hComboBox = NEW ComboBox ( Frame1 ) it doesn't accept any events ie hComboBox_Change() bu

Re: [Gambas-user] Populating a Combobox from a DB

2008-08-01 Thread charlesg
Hi, should be as simple as: cmbName.Add("fred") at the same time you add to the database -- View this message in context: http://www.nabble.com/Populating-a-Combobox-from-a-DB-tp18770377p18770999.html Sent from the gambas-user mailing list archive at Nabble.com. -

Re: [Gambas-user] Populating a Combobox from a DB

2008-08-01 Thread Ron
> I have a combobox which is populated on the fly from a sqlite DB when > the form opens. > Does anyone have any ideas how I can repopulate this box when more items > are added to the DB from the same form, without closing the form and > re-opening it? Put briefly I have:- > > Public sub form_o

[Gambas-user] Populating a Combobox from a DB

2008-08-01 Thread John K
I have a combobox which is populated on the fly from a sqlite DB when the form opens. Does anyone have any ideas how I can repopulate this box when more items are added to the DB from the same form, without closing the form and re-opening it? Put briefly I have:- Public sub form_open() Populate