1. setCheck( ) into a System Menu?

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

new topic     » topic index » view message » categorize

2. Re: setCheck( ) into a System Menu?

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu