[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Colored Button with Dialog to choose a Color/Pen
Source position: MUIClass.Area.pas line 335
type TMUIPopPen = class(TMUIPenDisplay) |
||
protected |
||
procedure GetCreateTags(); override; |
|
Fill Tag list for PopPen creation |
public |
||
constructor Create; override; |
|
Creates a PopPen Object |
procedure CreateObject; override; |
|
Create the PopPen object |
published |
||
property WinTitle: string; [rw] |
|
Define the title of the Dialog window |
end; |
|
Colored Button with Dialog to choose a Color/Pen |
|
| | ||
|
Show a Pen as Color field |
|
| | ||
|
Super class for every other MUI class except windows and applications |
|
| | ||
|
Subclass of TNotify to introduce the Parent relation |
|
| | ||
|
Notify class is superclass of all other MUI classes. |
|
| | ||
|
Base class for all MUI Class |
|
| | ||
TObject |
Poppen class adds input capabilities to its super class Pendisplay. It should be used if your application allows users to configure some custom pens for rendering.
A Poppen object will appear as kind of a button which displays the currently selected color. When the user hits the button, a Popup window containing a Penadjust object opens up and lets the user choose change the color.
You can control the window title of the popup window using the WinTitle field. It will remember its value and use it when creating the popup window.
As most MUI popups, the Penadjust popup window runs asynchronously and stays there until the user terminates it with "OK" or "Cancel". Furthermore, if the popup window is automatically cancelled if the pop button is removed.
You can get/set the current color from a Poppen object by using the Spec attribute. The resulting struct PMUI_SpenSpec may then be saved somewhere in your preferences and used as parameter for MUI_ObtainPen() and MUI_ReleasePen().
|
Define the title of the Dialog window |
|
|
Defines the color/pen to show |