DialogBlocks and font-size differences between Windows and Mac

32 views
Skip to first unread message

cozmotion

unread,
Aug 30, 2012, 2:42:38 PM8/30/12
to wx-u...@googlegroups.com
I am working on a Mac build of an app that is complete for Windows.  The two platforms render font sizes very differently.  No problem there, but I have dozens of font specs for (mostly) static text objects that are in DialogBlocks-generated code blocks.  Is there a way to spec a different size for the Mac while keeping things within DialogBlocks?

Julian Smart

unread,
Aug 30, 2012, 3:15:18 PM8/30/12
to wx-u...@googlegroups.com
Hi,

I tend to put this at the front of my CreateControls() functions:

#ifdef __WXMAC__
SetWindowVariant(wxWINDOW_VARIANT_SMALL);
#endif

since by default, controls on the Mac are rather big.

Regards,

Julian
> DialogBlocks? --
> Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
>
> To unsubscribe, send email to wx-users+u...@googlegroups.com
> or visit http://groups.google.com/group/wx-users


--
Julian Smart, Anthemion Software Ltd.
www.anthemion.co.uk | +44 (0)131 229 5306
Tools for writers: www.writerscafe.co.uk
Ebook creation: www.jutoh.com
wxWidgets RAD: www.dialogblocks.com

Reply all
Reply to author
Forward
0 new messages