[gtkada] GtkAda 3.8.1 Question about events in GTK.COMBO_BOX_TEXT

Jose Alberto Fernandez Parejo jafparejo at indra.es
Fri Feb 5 11:09:06 CET 2016


Hello all,

Finally, I develop a search mechanism in GTK.COMBO_BOX_TEXT. I have done
the following.

I have created a GTK.COMBO_BOX_TEXT.GTK_NEW_WITH_ENTRY. Get the gentry
widget with GTK.COMBO_BOX_TEXT.GET_CHILD and  attach signal "changed" to
gentry widget.

But now the problem is that when COMBO_BOX_TEXT are open twice or more
the scroll buttons are lost. I have checked and it is a problem with
GTK.COMBO_BOX_TEXT.GTK_NEW_WITH_ENTRY not with the signal "changed".
With GTK.COMBO_BOX_TEXT.GTK_NEW there is no problem.

Is there any way to force the scroll buttons in COMBO_BOX_TEXT? Or to
set the number of shown elements?

Thanks in advance.
Regards





On 01/27/2016 03:31 PM, Jose Alberto Fernandez Parejo wrote:
> Hello,
>
> We are developing an application in GtkAda3.8.1 and I have to insert a
> GTK.COMBO_BOX_TEXT with a large number of elements.
>
> I am trying to develop a search mechanism to once the GTK.COMBO_BOX_TEXT
> is opened if the user press a key the elements starting with that key
> are shown in the GTK.COMBO_BOX_TEXT.
> For implementing this mechanism, we are defining and connecting the
> signal "key_press_event" in a GTK.HANDLERS.RETURN_CALLBACK callback but
> the signal is only triggered when the GTK.COMBO_BOX_TEXT is focused but
> not when it is opened.
> We have tried to connect to signals "popup" and "popdown" and these
> signals are not triggered.
>
> Is there any way to capture a key_pressed  or popup signal when the
> GTK.COMBO_BOX_TEXT is opened? Or do you know other way to implement a
> COMBO_BOX_TEXT search mechanism?
>
>
> Thanks in advance.
> Regards
>
>
> Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente.
> Evite imprimir este mensaje si no es estrictamente necesario.
>
> This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address.
> Avoid printing this message if it is not absolutely necessary.
> _______________________________________________
> gtkada mailing list
> gtkada at lists.adacore.com
> http://lists.adacore.com/mailman/listinfo/gtkada
> .
>

Este correo electrónico y, en su caso, cualquier fichero anexo al mismo, contiene información de carácter confidencial exclusivamente dirigida a su destinatario o destinatarios. Si no es vd. el destinatario indicado, queda notificado que la lectura, utilización, divulgación y/o copia sin autorización está prohibida en virtud de la legislación vigente. En el caso de haber recibido este correo electrónico por error, se ruega notificar inmediatamente esta circunstancia mediante reenvío a la dirección electrónica del remitente.
Evite imprimir este mensaje si no es estrictamente necesario.

This email and any file attached to it (when applicable) contain(s) confidential information that is exclusively addressed to its recipient(s). If you are not the indicated recipient, you are informed that reading, using, disseminating and/or copying it without authorisation is forbidden in accordance with the legislation in effect. If you have received this email by mistake, please immediately notify the sender of the situation by resending it to their email address.
Avoid printing this message if it is not absolutely necessary.


More information about the gtkada mailing list