wxStaticBox with empty labels - wxMac compared to wxMSW

Stefan Csomor csomor at advancedconcepts.ch
Wed Sep 27 20:11:44 PDT 2006


Hi

the position of the label is mandated by OS X, as well as the minimal spacing below, but it shouldn't accumulate to one entire line, here is an example from the HIG-Bible:

http://developer.apple.com/documentation/UserExperience/Conceptual/OSXHIGuidelines/XHIGLayout/chapter_19_section_4.html#//apple_ref/doc/uid/TP30000360-DontLinkElementID_29

 Best,

Stefan

> -----Original Message-----
> From: Nusret Taşçı [mailto:nusi at sofha.de] 
> Sent: Mittwoch, 27. September 2006 22:23
> To: wx-users at lists.wxwidgets.org
> Subject: wxStaticBox with empty labels - wxMac compared to wxMSW
> 
> I'm using wxStaticBox with empty labels.
> On wxMSW the staticbox looks like following:
> +----------------+
> |        [ ] cb1 |
> | desc   [ ] cb2 |
> |        [ ] cb3 |
> +----------------+
> There are several more UI elements. I didn't want to give the 
> staticbox a label, because it would not look symmetric anymore.
> 
> On wxMAC it looks like
> +----------------+
> |                | <-- POI
> |        [ ] cb1 |
> | desc   [ ] cb2 |
> |        [ ] cb3 |
> +----------------+
> 
> It looks like there is one additional line calculated by the sizer.
> 
> If I use labels, than it looks like this on wxMSW:
> +- label --------+
> |        [ ] cb1 |
> | desc   [ ] cb2 |
> |        [ ] cb3 |
> +----------------+
> 
> and on wxMAC it looks like this:
> 
>   label
> +----------------+
> |        [ ] cb1 |
> | desc   [ ] cb2 |
> |        [ ] cb3 |
> +----------------+
> 
> So both look and behave fine if it has a non empty label.
> 
> Is this the intended behavior for Mac?
> It's quite unhandy to change this behavior in my app, because 
> the wxStaticBoxes are encapsulated by wxStaticBoxSizers in an XRC.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
> 
> 




More information about the wx-users mailing list