Difference between revisions of "ATExtendedDialogs"

From Lazarus wiki
Jump to navigationJump to search
(new page)
 
m (Fix heading levels; fix typos; categorise page)
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
ATExtendedDialogs is package that contains units for extended dialogs. Currently only font dialog in ATFontDialog unit.
+
== About ==
  
ATFontDialog contains form which mimics good features from GTK2/Win32 font dialogs. Form has many options (beginning with Opt to not mess up with LCL properties), you can see them in the demo screenshot.
+
ATExtendedDialogs is a package of units with extended dialogs. Currently only font dialog in the ATFontDialog unit.
 +
 
 +
Author: Alexey Torgashin
  
 
License: dual licensed, MPL 2.0 / LPGL.
 
License: dual licensed, MPL 2.0 / LPGL.
  
=Download=
+
== ATFontDialog ==
 +
 
 +
ATFontDialog contains a form which mimics the good features from the GTK2/Win32 font dialogs. The form has many options (beginning with the Opt prefix so as not to mess up the existing LCL properties), you can see them in the demo program. Almost all dialog parts can be hidden (except the button panel).
 +
 
 +
[[Image:ATFontDialog.png]]
 +
 
 +
Mimics GTK2 feature: when user clicks font size bigger than about 20, preview panel height is increased (together with the form height).
 +
 
 +
=== Properties ===
 +
 
 +
* OptFont: TFont - Chosen font.
 +
* OptPreviewText: string -  String to show in Preview panel.
 +
* OptSizeMin: integer - Minimal size of font (if it's limited) for input field.
 +
* OptSizeMax: integer - Maximal size of font (if it's limited).
 +
* OptSizeLimited: boolean - Allow limit for font size.
 +
* OptShowNames: boolean - Show listbox with font names.
 +
* OptShowColor: boolean - Show color-box for font color.
 +
* OptShowStyles: boolean - Show listbox with font basic styles (bold, italic).
 +
* OptShowStylesEx: boolean - Show checkboxes for font extended styles (underline, crossed).
 +
* OptShowSizes: boolean - Show listbox with font sizes.
 +
* OptShowPreview: boolean - Show Preview panel.
 +
* OptShowApply: boolean - Show Apply button.
 +
* OptSelectName: boolean - Initially select font name in listbox of names.
 +
* OptSelectStyle: boolean - Initially select font style in listbox of styles.
 +
* OptSelectSize: boolean - Initially select font size in listbox of sizes.
 +
* OptSelectColor: boolean - Initially select font color in color-box.
 +
* OnClickApply: TNotifyEvent - Called on pressing Apply button.
 +
 
 +
== Download ==
  
 
GitHub: https://github.com/Alexey-T/ATExtendedDialogs
 
GitHub: https://github.com/Alexey-T/ATExtendedDialogs
 +
 +
 +
[[Category:Lazarus]]
 +
[[Category:Components]]

Latest revision as of 07:30, 29 August 2020

About

ATExtendedDialogs is a package of units with extended dialogs. Currently only font dialog in the ATFontDialog unit.

Author: Alexey Torgashin

License: dual licensed, MPL 2.0 / LPGL.

ATFontDialog

ATFontDialog contains a form which mimics the good features from the GTK2/Win32 font dialogs. The form has many options (beginning with the Opt prefix so as not to mess up the existing LCL properties), you can see them in the demo program. Almost all dialog parts can be hidden (except the button panel).

ATFontDialog.png

Mimics GTK2 feature: when user clicks font size bigger than about 20, preview panel height is increased (together with the form height).

Properties

  • OptFont: TFont - Chosen font.
  • OptPreviewText: string - String to show in Preview panel.
  • OptSizeMin: integer - Minimal size of font (if it's limited) for input field.
  • OptSizeMax: integer - Maximal size of font (if it's limited).
  • OptSizeLimited: boolean - Allow limit for font size.
  • OptShowNames: boolean - Show listbox with font names.
  • OptShowColor: boolean - Show color-box for font color.
  • OptShowStyles: boolean - Show listbox with font basic styles (bold, italic).
  • OptShowStylesEx: boolean - Show checkboxes for font extended styles (underline, crossed).
  • OptShowSizes: boolean - Show listbox with font sizes.
  • OptShowPreview: boolean - Show Preview panel.
  • OptShowApply: boolean - Show Apply button.
  • OptSelectName: boolean - Initially select font name in listbox of names.
  • OptSelectStyle: boolean - Initially select font style in listbox of styles.
  • OptSelectSize: boolean - Initially select font size in listbox of sizes.
  • OptSelectColor: boolean - Initially select font color in color-box.
  • OnClickApply: TNotifyEvent - Called on pressing Apply button.

Download

GitHub: https://github.com/Alexey-T/ATExtendedDialogs