Unit 'MUIClass.Area' Package
[Overview][Types][Classes][Procedures and functions][Index] [#MUIClass]

TMUIPopPen

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Colored Button with Dialog to choose a Color/Pen

Declaration

Source position: MUIClass.Area.pas line 332

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;

Inheritance

TMUIPopPen

  

Colored Button with Dialog to choose a Color/Pen

|

TMUIPenDisplay

  

Show a Pen as Color field

|

TMUIArea

  

Super class for every other MUI class except windows and applications

|

TMUIWithParent

  

Subclass of TNotify to introduce the Parent relation

|

TMUINotify

  

Notify class is superclass of all other MUI classes.

|

TMUIRootClass

  

Base class for all MUI Class

|

TObject

Description

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().

See also

WinTitle

  

Define the title of the Dialog window

Spec

  

Defines the color/pen to show


Documentation generated on: 2022-07-30