GUI design guidelines/ja: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: GUI design guidelines/ja
| Old | New | Line | |
|---|---|---|---|
| 1 | + | ## ダイアログ | |
| 2 | + | ||
| 3 | + | Dialogs are special forms that need the user to make / change some setting before lazarus can continue. | |
| 4 | + | ||
| 5 | + | ### Dialog Settings | |
| 6 | + | ||
| 7 | + | Settings that should be applied in general are: | |
| 8 | + | ||
| 9 | + | - **BorderStyle** : | |
| 10 | + | - `bsSizeable` - if the dialog is complex and resizing is really needed. | |
| 11 | + | - `bsDialog` - if dialog is simple and resizing is not needed (NOTE: all dialogs should remain resizable internally because of localization issues). | |
| 12 | + | - **Position** : `poScreenCenter`. | |
| 13 | + | - **FormStyle** : Do not use `fsStayOnTop`, as this can be pretty annoying under some window managers. | |
| 14 | + | - **BorderIcons**: | |
| 15 | + | - `[biSystemMenu]` - for modal shown dialogs | |
| 16 | + | - `[biSystemMenu,biMinimize,biMaximize]` - for non-modal shown dialogs | |
| 17 | + | ||
| 18 | + | ### General layout | |
| 19 | + | ||
| 20 | + | - On the bottom of the form Button panel should be placed. | |
| 21 | + | - The dialog should work on a screen of 800x600. 640x480 is not needed to support. | |
| 22 | + | - Close on Escape (if key not used otherwise). | |
| 23 | + | - Define default button and Return activates it (if key not used). | |
| 24 | + | - Avoid using long captions on buttons. Use `Hint` property to explain button action in details. | |
| 25 | + | - The size of resizable dialogs whould be saved and restored next time the dialog will be opened. | |
| 26 | + | - All hints and captions used on a form should be as resourcestring, so localization can be applied. | |
| 27 | + | ||
| 28 | + | #### Spacings and sizes | |
| 29 | + | ||
| 30 | + | - Dialogs must be designed for 96 dpi resolution and 8 points/14 pixels font height. | |
| 31 | + | - Spacing between elements: 6 pixels. | |
| 32 | + | - Minimum size of regular buttons: 90x25 pixels. | |
| 33 | + | - `AutoSize` property need to be set for buttons to properly display localized text if it is longer than expected. | |
| 34 | + | - All buttons in a group (including buttons that contain glyphs) must have the same width and height. | |
| 35 | + | ||
| 36 | + | #### ボタンパネル | |
| 37 | + | ||
| 38 | + | ボタンパネルは少なくとも次の要素から成り立っている。 | |
| 39 | + | ||
| 40 | + | - OK ボタン | |
| 41 | + | - Cancel ボタン | |
| 42 | + | - Next(次) ボタン(オプション) | |
| 43 | + | - Previous(前)ボタン(オプション) | |
| 44 | + | - ヘルプボタン | |
| 45 | + | ||
| 46 | + | ### Anchoring | |
| 47 | + | ||
| 48 | + | 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. | |
| 49 | + | ||
| 50 | + | Hint: Use the anchor editor of the IDE. | |
| 51 | + | ||
| 52 | + | ### Aligning | |
| 53 | + | ||
| 54 | + | 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. | |
| 55 | + | ||
| 56 | + | #### BorderSpacing | |
| 57 | + | ||
| 58 | + | 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. | |
| 59 | + | ||
| 60 | + | --- | |
| 61 | + | *From the Free Pascal wiki, page "GUI design guidelines/ja", as it stood on 2006-08-02 after a change by Swen, 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](/wiki-contact).* |
