Hi,

I've got no response so far to this bug report.

Does that mean the keyboard short-cut of the submenus is only broken on my PC?
If so, is that related to some misterious keyboard settings?

Thanks,
Rob.

"R. Lahaye" wrote:
> 
> Hi,
> 
> Shortcuts for the menubar seem to work only for direct menu-pull-offs, not for 
>submenus.
> 
> In Grace, the menu is constructed in the following way:
> 
> static Widget CreateMainMenuBar(Widget parent)
> {
>     Widget menubar = CreateMenuBar(parent);
>     Widget menupane = CreateMenu(menubar, "Data", 'D', FALSE);
>     Widget submenupane = CreateMenu(menupane, "Import", 'I', FALSE);
>     CreateMenuButton(submenupane, "ASCII...", 'A', create_file_popup, NULL);
> [...]
>     return (menubar);
> }
> 
> which, for this example, creates a menu item "Data->Import->ASCII...".
> The shortcut should be "Alt D , I , A".
> However, "Alt D , I" works okay, but the "A" is ignored.
> 
> This seems to be a general bug in LessTif: shortcuts of submenus are ignored.
> 
> The problem disappears when compiling against MoTif.
> 
> Regards,
> Rob.
> 
> ---------------------
> Grace version output:
> 
> GUI toolkit: @(#)GNU/LessTif Version 2.0 Release 0.92.27
> Xbae version: 40900
> T1lib: 1.1.0-grace
> FFT: built-in
> NetCDF support: off
> Built: Wed Apr 11 10:06:05 2001 on Linux 2.2.17-21mdk i686
> Compiler flags: gcc -O2 -mcpu=pentiumpro -fno-common -Wall -pedantic -Wpointer-arith 
>-Wnested-externs -I.. -I. -I../T1lib/t1lib
> -I/usr/local/lesstif/include  -I/usr/X11R6/include -I/usr/local/lesstif/include  
>-I/usr/X11R6/include -L/usr/local/lesstif/lib  -L/usr/X11R6/lib
> -lXbae -lXm -lXpm -lXp -lXmu -lXt -lXext -lX11  -lSM -lICE  ../cephes/libcephes.a   
>../T1lib/libt1.a  -ltiff -ljpeg -lpng -lz -lm  -ldl

Reply via email to