Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I set "focus" on menu.

130 views
Skip to first unread message

Helge Sorgenfrei

unread,
Mar 31, 1998, 3:00:00 AM3/31/98
to

Can anybody tell me how I focus on the application-mainmenu without
activating any menuitem, (something like pressing the Alt-key
automatically on formload).

Thank you in advance
Helge Sorgenfrei

Peter Below

unread,
Mar 31, 1998, 3:00:00 AM3/31/98
to

> Can anybody tell me how I focus on the application-mainmenu without
> activating any menuitem, (something like pressing the Alt-key
> automatically on formload).
>
Helge,

try

keybd_event( VK_F10, MapVirtualKey(VK_F10,0), 0, 0 );
keybd_event( VK_F10, MapVirtualKey(VK_F10,0), KEYEVENTF_KEYUP, 0 );


Peter Below (TeamB) 10011...@compuserve.com)


Helge Sorgenfrei

unread,
Apr 2, 1998, 3:00:00 AM4/2/98
to

Peter,

I am very thankful for your quick response.

I had a little difficulties implementing the solution in the
formshow-event (I tracked it down to a missing delay), but putting
focus on a visual component first helped.

Helge Sorgenfrei.

0 new messages