Can't alt-select a topmenu item

Started by Rick McNeely, October 21, 2010, 02:22:10 PM

Previous topic - Next topic

Rick McNeely

I have a top menu item called 'Session'.  It is entered in the menu editor as &Session.  I can select all of the other topmenu items using the alt-&Key combo, not this one.  If I change it to Sessio&n it works, just won't accept the Alt-&S.  I CAN do an alt/release then S and that works, but thats a pain.

Any ideas?

Thanks

Paul Squires

Hi Rick,

Not sure about this one... I'll have to create a sample program to see if I can emulate the problem you're seeing.
Paul Squires
PlanetSquires Software

Paul Squires

Can't seem to replicate this problem.... maybe you have the &S defined for anothe rmenu option as well?
Paul Squires
PlanetSquires Software

Rick McNeely

I took this from the actual exe, using ResHack.  I don't have anymore &S on the top-level menus.  It all looks fine to me. 


FRMMAIN_TOPMENU MENUEX
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
{
POPUP "&File", 6000, MFT_STRING, MFS_ENABLED, 0
{
MENUITEM "&Open Session", 6001, MFT_STRING, MFS_ENABLED
MENUITEM "&Save Session", 6002, MFT_STRING, MFS_ENABLED
MENUITEM "", 0, MFT_SEPARATOR, MFS_ENABLED
MENUITEM "&Log", 6004, MFT_STRING, MFS_ENABLED
MENUITEM "", 0, MFT_SEPARATOR, MFS_ENABLED
MENUITEM "&Quit\tCtrl+Q", 6006, MFT_STRING, MFS_ENABLED
}
POPUP "&Edit", 6007, MFT_STRING, MFS_ENABLED, 0
{
MENUITEM "Select &All\tCtrl+A", 6008, MFT_STRING, MFS_ENABLED
MENUITEM "Cut\tCtrl+X", 6009, MFT_STRING, MFS_ENABLED
MENUITEM "Copy\tCtrl+C", 6010, MFT_STRING, MFS_ENABLED
MENUITEM "Paste\tCtrl+V", 6011, MFT_STRING, MFS_ENABLED
MENUITEM "&Clear\tCtrl+Z", 6012, MFT_STRING, MFS_ENABLED
}
POPUP "&Session", 6013, MFT_STRING, MFS_ENABLED, 0
{
MENUITEM "&Serial\tF2", 6014, MFT_STRING, MFS_ENABLED
MENUITEM "&TCP Client\tF3", 6015, MFT_STRING, MFS_ENABLED
MENUITEM "T&CP Server\tF4", 6016, MFT_STRING, MFS_ENABLED
MENUITEM "&UDP Client\tF5", 6017, MFT_STRING, MFS_ENABLED
MENUITEM "U&DP Server\tF6", 6018, MFT_STRING, MFS_ENABLED
MENUITEM "", 0, MFT_SEPARATOR, MFS_ENABLED
MENUITEM "C&lose\tF8", 6020, MFT_STRING, MFS_ENABLED
MENUITEM "", 0, MFT_SEPARATOR, MFS_ENABLED
MENUITEM "&Echo Local\tCtrl+E", 6022, MFT_STRING, MFS_ENABLED
MENUITEM "Echo &Remote\tCtrl+W", 6023, MFT_STRING, MFS_ENABLED
MENUITEM "", 0, MFT_SEPARATOR, MFS_ENABLED
MENUITEM "Polling", 6025, MFT_STRING, MFS_ENABLED
}
POPUP "&View", 6026, MFT_STRING, MFS_ENABLED, 0
{
MENUITEM "as Te&xt", 6027, MFT_STRING, MFS_ENABLED
MENUITEM "as He&x", 6028, MFT_STRING, MFS_ENABLED
MENUITEM "To&ggle\tCtrl+D", 6029, MFT_STRING, MFS_ENABLED
}
POPUP "&Line", 6030, MFT_STRING, MFS_ENABLED, 0
{
MENUITEM "Terminate $&CRLF", 6031, MFT_STRING, MFS_ENABLED
MENUITEM "Terminate $C&R", 6032, MFT_STRING, MFS_ENABLED
MENUITEM "Terminate $&LF", 6033, MFT_STRING, MFS_ENABLED
MENUITEM "&No Terminator", 6034, MFT_STRING, MFS_ENABLED
MENUITEM "&Toggle\tCtrl+T", 6035, MFT_STRING, MFS_ENABLED
}
POPUP "&Tools", 6036, MFT_STRING, MFS_ENABLED, 0
{
MENUITEM "&IP Config", 6037, MFT_STRING, MFS_ENABLED
MENUITEM "&Ping", 6038, MFT_STRING, MFS_ENABLED
MENUITEM "&Trace Route", 6039, MFT_STRING, MFS_ENABLED
MENUITEM "&Open in Browser", 6040, MFT_STRING, MFS_ENABLED
MENUITEM "&Arp an Address", 6041, MFT_STRING, MFS_ENABLED
MENUITEM "&My Network Info", 6042, MFT_STRING, MFS_ENABLED
}
POPUP "&Help", 6043, MFT_STRING, MFS_ENABLED, 0
{
MENUITEM "HTWin &Help\tF1", 6044, MFT_STRING, MFS_ENABLED
MENUITEM "&About", 6045, MFT_STRING, MFS_ENABLED
}
}

Paul Squires

Hi Rick,

I created a simple project using the menu from your previous post. I noticed that we must have at least one control on the Form in order to capture keyboard input (ie. in order to get the Alt+S combination).

The Alt+S worked perfectly until I added the Label "Save" to the Form. For that Label I used the Caption "&Save". Basically adding the Alt+S to the Label "Save". Doing that prevents the top menu Alt+S from firing. Maybe you have a Label on your Form causing a similar problem?

I know that I may be grasping at straws here....

I have added the two different project's exe's to this post if you wish to try it.
Paul Squires
PlanetSquires Software

Rick McNeely

Bang!  Hit it right on the head, he said with a sheepish grin.  It's no use feeling silly if there's no one around to see it.

Anyway,  I bought FireFly a month or two ago and have (thanks to your help here) finished 2 projects with it.  I have to say, after a little adjustment I am more productive than I was w/vb6.  FireFly is certainly more versatile.  I love the easy access to custom events.