Difference between revisions of "Lui Controls"

From Free Pascal wiki
Jump to navigationJump to search
(New page: === About === Lui Controls is a collection of simple visual controls. Currently it has two components: TToggleLabel and TMenuButton === TToggleLabel === TToggleLabel is a TCustomLabel de...)
 
(Categorized.)
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
=== About ===
 
=== About ===
Lui Controls is a collection of simple visual controls. Currently it has two components: TToggleLabel and TMenuButton
+
Lui Controls is a collection of simple visual controls. Currently it has three components: TToggleLabel, TMenuButton and TSearchEdit
  
 
=== TToggleLabel ===
 
=== TToggleLabel ===
Line 6: Line 6:
 
TToggleLabel is a TCustomLabel descendant that can be toggled between two states. It provides properties to define the caption showed in each state and an event to notify the state change. It also has a visual indication (a triangle) of the state.
 
TToggleLabel is a TCustomLabel descendant that can be toggled between two states. It provides properties to define the caption showed in each state and an event to notify the state change. It also has a visual indication (a triangle) of the state.
  
The main properties are:
+
=== TMenuButton ===
  
  - Expanded (Boolean): Returns or set the label Expanded state
+
TMenuButton is a TCustomSpeedButton descendant that combines with a TPopupMenu to give an integrated look and feel. Its similar to controls found in other toolkits like Eclipse or XUL.
  - Caption (String): The text show when Expanded is False
 
  - ExpandedCaption (String): The text show when Expanded is True
 
  - OnChange (TNotifyEvent): Notifies when the Label changes it states
 
  
=== TMenuButton ===
+
=== TSearchEdit ===
  
TMenuButton is a TCustomSpeedButton descendant that combines with a TPopupMenu to give an integrated feeling. Its similar to controls found in other toolkits like Eclipse or XUL.
+
TSearchEdit is a TCustomEdit descendant that shows a text indicative of its usage and provides a callback method to execute when the user set a text.
  
The main properties are:
 
 
 
  - ShowArrow:
 
  If True an arrow button is show in the side of the button. When it's pressed the menu pops. Clicking in the main button fires OnClick. 
 
  If False only the main button is show. Click in the main button to pop the menu. No OnClick is fired
 
  
* Know issue: setting the same popupmenu to more than one TMenuButton causes some errors
+
For more info see [https://luipack.bountysource.com/wiki/luicontrols the development page]
  
 
=== Screencast ===
 
=== Screencast ===
 +
 +
[http://www.youtube.com/watch?v=aMnI_grQk-4 View]
 +
 +
=== History ===
 +
*  22/10/2007 – version 0.2
 +
** Added TSearchEdit component
 +
** [TMenuButton] Implemented inline arrow indicator
 +
** [TMenuButton] Added Style property
 +
** [TMenuButton] Added option to popup on MouseUp
 +
** [TTogleLabel] Removed hack to determine text position. Use DoMeasureTextPosition instead
 +
* 12/08/2007
 +
** Initial release. Two components: TMenuButton and TToggleLabel
  
 
=== License ===
 
=== License ===
Line 37: Line 41:
 
=== Download ===
 
=== Download ===
  
[https://luipack.bountysource.com/ LuiPack]
+
[http://sourceforge.net/project/showfiles.php?group_id=92177&package_id=242192 Lazarus-CCR]
 +
 
 +
=== Bugs ===
 +
Please report bugs at http://code.google.com/p/luipack/issues/list.
 +
 
 +
[[Category:Components]]
 +
[[Category:Lazarus-CCR]]

Latest revision as of 19:40, 23 September 2013

About

Lui Controls is a collection of simple visual controls. Currently it has three components: TToggleLabel, TMenuButton and TSearchEdit

TToggleLabel

TToggleLabel is a TCustomLabel descendant that can be toggled between two states. It provides properties to define the caption showed in each state and an event to notify the state change. It also has a visual indication (a triangle) of the state.

TMenuButton

TMenuButton is a TCustomSpeedButton descendant that combines with a TPopupMenu to give an integrated look and feel. Its similar to controls found in other toolkits like Eclipse or XUL.

TSearchEdit

TSearchEdit is a TCustomEdit descendant that shows a text indicative of its usage and provides a callback method to execute when the user set a text.


For more info see the development page

Screencast

View

History

  • 22/10/2007 – version 0.2
    • Added TSearchEdit component
    • [TMenuButton] Implemented inline arrow indicator
    • [TMenuButton] Added Style property
    • [TMenuButton] Added option to popup on MouseUp
    • [TTogleLabel] Removed hack to determine text position. Use DoMeasureTextPosition instead
  • 12/08/2007
    • Initial release. Two components: TMenuButton and TToggleLabel

License

Modified LGPL

Author

Luiz Américo Pereira Câmara

Download

Lazarus-CCR

Bugs

Please report bugs at http://code.google.com/p/luipack/issues/list.