[Gambas-user] Double Click in DateChooser

Benoit Minisini gambas at ...1...
Tue Apr 1 18:56:59 CEST 2008


On mardi 1 avril 2008, David Villalobos Cambronero wrote:
> Hi all,
>
> I try to use the Double Click event in Date Chooser, buy it does not works,
> is it normal? Attached is an example.
>
> Bes regards.
>
> David
>

Yes. DoubleClick is a low level mouse event, and the low level events work 
reliably only on basic controls. 

DateChooser is a conttol written in Gambas, and is actually a Container. So it 
won't see any DoubleClick events.

You must use the DateChooser Activate event.

Every time you want to use DoubleClick, check that you don't have the Activate 
event somewhere.

You should only use mouse event directly if you are sure that you need them. 
Because you can activate something with the keyboard, not only with the mouse 
button. Same remark with popup menus. You must use the Menu event, not one of 
the mouse events.

Regards,

-- 
Benoit Minisini




More information about the User mailing list