Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ui-dev] Consistent sizing of widgets across windowing systems


I have a Dialog with a fair number of UI widgets.  As I've layed out the contents of the Dialog, it looks good on Win32.  However, on Motif, several widgets are lost off the bottom.  On inspection, it appears the problem is that the height of the text widgets is a good bit taller than on Windows.  The funny thing is that text widgets on Motif look to be much larger than necessary for the font in use.  In other words, there is lot more of a top and bottom margin in text widgets on Motif than on Windows.  Is this a problem with Motif?  If not, is there a way to get text widgets to size more closely to the font size without having to create GridData objects for each widget, and set the 'heightHint'?  More generally, are there any strategies in SWT for ensuring similar layouts across windowing systems?

Thanks,
Joe

Back to the top