--- In anthemion-devtools%40yahoogroups.com">anthemion-devtools
yahoogroups.com, Andreas Goebel
<a-goebel
...> wrote:
>
> 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". 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!:-< 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/
.