[gtkada] COMBO signals

Preben Randhol randhol at pvv.org
Fri May 10 18:11:29 CEST 2002


Jacobo Marcos <jacobom at navegalia.com> wrote on 09/05/2002 (15:32) :
> Hello
> 
>  I have a question: i want to know the signal (if exists)associated to
>  a combo box (or other widget "father" of combo) that is returned when
>  you choose a item of a combo.
> 
>  This is because i want to fill another combo(2) depending on the item
>  selected in the first combo(1).  I know i have another solution:
>  cilck a button when i select the item of combo(1) and fill the
>  combo(2) on click event signal.
> 
>  But if it´s possible to do it using the first option , i want to know
>  how.

Add a callback to the changed signal on the entry widget of you
combobox.

   Callbacks.Entry_Callback.Connect
      (Help_Dialog.Section_Combo_Entry, "changed",
         Callbacks.Entry_Callback.To_Marshaller
            (Callbacks.On_Some_Combo_Entry_Changed'Access), True);

-- 
Preben Randhol ------------------- http://www.pvv.org/~randhol/ --
                 «For me, Ada95 puts back the joy in programming.»




More information about the gtkada mailing list