Difference between revisions of "GUI design"

From Lazarus wiki
Jump to navigationJump to search
Line 4: Line 4:
  
 
==Dialogs==
 
==Dialogs==
When adding forms to lazarus, be sure to keep in mind what is trying to be achieved here. Do you need the user to make some setting? Or should the form stay on top until the user closes it?
+
Dialogs are special forms that need the user to make / change some setting before lazarus can continue.
In principal the following guidelines should be followed;
 
  
- dialogs that require userinput before continueing should be of the following type;
+
 
 +
== Dialog Settings ==
 +
Settings that should be applied in general are;
  
 
* '''BorderStyle''' : bsToolWindow
 
* '''BorderStyle''' : bsToolWindow
 
* '''Position''' : poScreenCenter
 
* '''Position''' : poScreenCenter
 +
* '''FormStyle''' : fsStayOnTop (or show the dialog using ShowModal)
  
They should be always shown using ShowModal
 
  
- on the bottom of the dialog a panel should be placed with an Ok / Cancel / Help button (see section ...)
+
== General layout ==
 +
* On the bottom a panel should be placed with the required buttons to close / cancel the dialog, or to recieve help.

Revision as of 12:21, 18 July 2005

Overview

When working on lazarus, certain design guidelines need to be taken into consideration. To prevent a diverity of styles and ensure the clarity of dialogs. The next article tries to summarize several guidlines to help you designing.

Dialogs

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;

  • BorderStyle : bsToolWindow
  • Position : poScreenCenter
  • FormStyle : fsStayOnTop (or show the dialog using ShowModal)


General layout

  • On the bottom a panel should be placed with the required buttons to close / cancel the dialog, or to recieve help.