1. setCheck( ) into a System Menu?
- Posted by Antonio Alessi <a.admin at myway.it> Aug 27, 2004
- 434 views
Hi, All! I could append some items to the system menu of a window, after the "Minimize", "Maximize", "X Close",
SysMenu = GetSystemMenu( getHandle( newWin), 0) AppendMenu( SysMenu, {MF_SEPARATOR,0, ""}) AppendMenu( SysMenu, {MF_STRING, onTop, "Something to Do"}) .. ..
They work, but I am not able to setCheck( ) one of these items (or set symbols to their side, as are visible for the existing items). The commands that are valid for the normal and popup menu don't work here. Somebody knows how to? Antonio Alessi
2. Re: setCheck( ) into a System Menu?
- Posted by Derek Parnell <ddparnell at bigpond.com> Aug 29, 2004
- 458 views
- Last edited Aug 30, 2004
Antonio Alessi wrote: > > Hi, All! > > I could append some items to the system menu of a window, > after the "Minimize", "Maximize", "X Close", > }}} <eucode> > SysMenu = GetSystemMenu( getHandle( newWin), 0) > AppendMenu( SysMenu, {MF_SEPARATOR,0, ""}) > AppendMenu( SysMenu, {MF_STRING, onTop, "Something to Do"}) > .. .. > </eucode> {{{ > They work, but I am not able to setCheck( ) one of these items (or set > symbols to their side, as are visible for the existing items). > The commands that are valid for the normal and popup menu don't work here. > > Somebody knows how to? Currently there is no support for System Menus in win32lib (I assume that is the library you are using). It seems like a reasonable addition to the library, so I'll add it to the list. In the meantime, you might have to investigate the CheckMenuItem API call. -- Derek Parnell Melbourne, Australia