Graphics layouts in cross-platform UIs

79 views
Skip to first unread message

celstark

unread,
Aug 19, 2013, 1:39:39 AM8/19/13
to open-phd...@googlegroups.com
wxWidgets is a huge boon for cross-platform projects like this, but there are places in which things break down.  As we try to get this to a finished product, we'll need to grapple with a number of these.  For example, have a look here:

See how the buttons' bitmap is a problem on the Mac build?  We'll be hitting things like this.  Here, it was just a bit of a change to what was called (SetBitmap vs. SetBitmapLabel) but we've got to start finding and cleaning these.  On this shot, actually, the Status Bar shows that "No cal" is cut off there too.  

In looking at the code, good use is being made of sizers and that's a huge help.  In v1, for example, I also made use of simply changing the fontsize on one platform or the other to get things a bit closer.  

There are others though that aren't so easy.  Have a look here:

See how the Notebook tabs don't have the arrows on the Mac build?  At least as of wxWidgets 2.9.3 that I have going here, that's the behavior in the "widgets" uber-sample as well.  "Listbook" and "Choicebook" seem to give reasonable behavior for things getting larger than one can display, but "notebook" doesn't.  So, at times we'll need to either bail on a good idea or hack around the issue (e.g., use a wxListbook on Macs and use a wxNotebook on Windows).

Those of us with both platforms at our disposal should be on the lookout for these kinds of things...

Craig





celstark

unread,
Aug 19, 2013, 1:49:35 AM8/19/13
to open-phd...@googlegroups.com
FWIW, here is that dialog as a wxChoiceBook:


wjb...@comcast.net

unread,
Aug 22, 2013, 12:18:12 AM8/22/13
to open-phd...@googlegroups.com
"See how the buttons' bitmap is a problem on the Mac build?"

I was wondering what that was about but I've had bigger issues, since -r426 broke my driver.  It's got to be something obvious, but I am really short of round 'tuits right now.

"Those of us with both platforms at our disposal should be on the lookout for these kinds of things..."

All two of us?  ;-)

Actually PHD2 is broken in my Boot Camp too, but at least I know what's wrong there - just the aforementioned lack of round 'tuits --- breathable air, peace and quiet, concentration, sleep...  We are winding down a remodel, and so far I have survived, and not gotten out my chainsaw yet (since I don't keep firearms around the house) - but I do have a chainsaw, know how to use it, and an expired sawyer's red card to prove it... or at least prove that I used to know how to use it.  Somewhere I have some Amiga and BeOS code to prove I once knew how to use a compiler... :-}

Hopefully things will be back to "normal" next week and I can start keeping an eye out for these issues.
Reply all
Reply to author
Forward
0 new messages