List Info

Thread: wxMenuItem::SetMarginWidth




wxMenuItem::SetMarginWidth
country flaguser name
Germany
2007-05-19 15:45:23
Hi,

is there a way to set the margin width in menuitems with
dialogBlocks?

The problem: If i use bitmaps for the menuitems they get
shown only 
partially unless I change the marginWidth to the bitmap
width I use.

If I do this by hand, strange results appear: The label is
drawn twice 
(whereas the bitmap then draws correctly).

"By hand" means: After the create-command, using
FindMenuItem using the id.

Regards,

Andreas



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    htt
p://groups.yahoo.com/group/anthemion-devtools/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/anthemion-devtools/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:anthemion-devtools-digest@yahoogroups.com 
    mailto:anthemion-devtools-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    anthemion-devtools-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 

Re: wxMenuItem::SetMarginWidth
country flaguser name
United States
2007-05-19 17:24:03

--- In anthemion-devtools%40yahoogroups.com">anthemion-devtoolsyahoogroups.com, Andreas Goebel
&lt;a-goebel...> wrote:
&gt;
> Hi,
>
> is there a way to set the margin width in menuitems with dialogBlocks?
>
> The problem: If i use bitmaps for the menuitems they get shown only
> partially unless I change the marginWidth to the bitmap width I use.
>;
> If I do this by hand, strange results appear: The label is drawn twice
> (whereas the bitmap then draws correctly).
>
> "By hand" means: After the create-command, using FindMenuItem using
the id.
>
> Regards,
>
> Andreas
>

Hi, Andreas!

If you'll notice, in the wxWidgets Manual it says:

wxMenuItem::SetMarginWidth
void SetMarginWidth(int width) const

Sets the width of the menu item checkmark bitmap (Windows only).

I think the two operative words/phrases are "checkmark" and "Windows
only&quot;. If I set the Kind property to Check in DB, then the bitmap is
fully displayed (without SetMarginWidth()).

For normal menu items, I'm afraid you're stuck!:-&lt; Sorry 'bout that!:-{

HTH:

thx,
Dave S.

wxMS_developers · Development with wxWidgets on MSWindows
http://tech..groups.yahoo.com/group/wxMS_developers/

wxWidgets Code Exchange
http://www.wxCodex.net/

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )