[Gambas-user] feature request...

Benoit Minisini gambas at ...1...
Thu Aug 3 01:43:01 CEST 2006


On Thursday 03 August 2006 01:10, Stefano Palmeri wrote:
> Hi, all. Hi, Benoit.
>
> At the moment, the Menu control doesn't accept
> the keypress event (apart from Return and Space keys
> that act as mouse click aliases).
>
> For example, I may want to check or un-check
> a menu without performing the full action
> associated with the click event, if there's any.
>
> If it's not useful to extend a full keypress event
> to the Menu control, why not, at least, separate the
> Space and Return keys function in menus?
>
> I mean using the Return key as the mouse click alias (just
> like now) and freeing the Space key for any other action
> the user desires.
>
> I'm talking about a 'space-press' event or something like this...
>
>
> Gambas2 1.9.34
>
> Thanks for reading.
>
> Regards,
>
> Stefano Palmeri
>
>

I don't think I can do anything in a simple way: menu controls are entirely 
controlled by the Qt library. Actually a Menu is not a Control in Gambas, and 
in the Qt library a menu entry is not a widget at all. It does not have its 
own window, and don't catch event as other widgets do.

What you want is really having a true widget inside menus. Maybe it is 
possible by reprogramming a menu directly in Gambas? Interesting 
challenge :-)

Regards,

-- 
Benoit Minisini





More information about the User mailing list