Sign in Join
Wiki copytemporary

GUI design guidelines

Deutsch · English · Français · Русский · 日本語

These guidelines apply to the Lazarus IDE but may be used for other projects as well.

General

All dialogs and windows must not use fixed sizes. Keep in mind that font sizes and translated captions can vary. Use splitters and panels.

All forms and dialogs must work on a screen of 800x600 or higher resolution.

Dialogs (modal forms)

Dialogs are special forms that need the user to make / change some setting before lazarus can continue.

Dialog Settings

Settings that should be applied in general are:

General layout

Spacings and sizes

Button panel

The button panel should consist at least of the following elements:

Anchoring

To make sure that a dialog after resizing will keep on showing the components in a good way, anchoring is being used. Each components has a property called Anchors. With this property you can determine the way a component is anchored to it's parent.

Hint: Use the anchor editor of the IDE.

Aligning

Another way to organise components is using alignment. Each component has a property Align. By selecting the appropriate align position several components can be positioned properly.

BorderSpacing

Especially useful in combination with Align is the BorderSpacing property. (Also found on the Anchors dialog). A typical borderspacing of 6 pixels around a component is used.

See also


From the Free Pascal wiki, page "GUI design guidelines", as it stood on 2020-11-19 after a change by Trev, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.