Windows/Mac GUI Specs.

BlitzMax Forums/BlitzMax Programming/Windows/Mac GUI Specs.

thalamus(Posted 2006) [#1]
I can't seem to locate the file that contains information on Windows and Mac GUI elements; I seem to remember there being a help file that listed how large Mac elements are in relation to Windows elements, to allow greater cross-platform compatability.

Or did I imagine it?


skidracer(Posted 2006) [#2]
Home->Tutorials->MaxGUIOverview, about half way down is a few comments, and yes better docs are on the agenda...


thalamus(Posted 2006) [#3]
Call me Mr Thicky, but I can't find it at all...


skidracer(Posted 2006) [#4]
If you click on the Home icon (the one with the white house with the red roof?) in the MaxIDE editor a page will hopefully appear with the message "Welcome to BlitzMax". The fifth hyperlink down in the following list is labelled "Tutorials and articles". The fifth link down on this page is titled "MaxGui Overview".

Half way down that page is the following text which may or may not be the information you referred to in your initial post:

In general the MaxGUI module should perform identically on Windows, Apple and Linux machines. However some care and attention is required when testing in regards to how your application will look on each platform.

The following are a few issues that if considered should hopefully enable you to publish programs that look and function well on a wide variety of systems.

Recomended gadget dimensions.


Buttons and ComboBoxes should be 24 pixels high.
Shorter buttons are possible in Windows but they will become cropped on Apple systems so it is recomended that when using the default font buttons should be created with a height of 24 pixels.


TextFields should be 20 pixels high and accompanying labels lowered 4 pixels.
Again, using the default font settings, the above rule should produce good results on all platforms. Often labels will be placed to the left or right of TextFields, in which case they should be set 4 pixels lower down the screen in order to correctly align with TextFields.


Separate fields in a form by 30 pixels.
When creating a form with multiple TextField gadgets start each row 30 pixels below the y position of the previous gadget's positions.

Use the WINDOW_CLIENTCOORDS flag when dependent on client size.

If you are using a fixed size window specify it's size based on the required client area using the WINDOW_CLIENTCOORDS style.

Specifying a window's size in the default frame coordinates will result in a client area that may be different on different machines due to a number of factors including both the version of the computer's operating system and certain user preference outside your control.




SebHoll(Posted 2006) [#5]
I hadn't noticed this Max'd GUI guide before - the information you've copied and pasted is extremely useful now I've switched over to Mac. Thanks!


thalamus(Posted 2006) [#6]
Duh! I was looking on the Help secion on the right of the IDE.

But it was indeed the info I was after - many thanks :)