Unit 'MUIClass.PopString' Package
[Overview][Types][Classes][Index] [#MUIClass]

TMUIPopString.Button

Specify the button object to be used in the popup.

Declaration

Source position: MUIClass.PopString.pas line 46

published property TMUIPopString.Button : TMUIArea
  read FButton
  write SetButton;

Description

Depending on the type of your popup, you should use an image button with MUII_PopUp, MUII_PopFile or MUII_PopDrawer here. However, its also possible to have a button with some text or other things in it.

When the popstring object is disposed, the string and the button objects are disposed as well.

Example:

with TMUIPopList.Create do
begin
  StringObj := TMUIString.Create; // the string/edit component
  Button := TMUIPopButton.Create; // the Button to open the popup
  OnOpen := @PopOpen;             // Event for open the Popup
  OnClose := @PopClose;           // Event for closing the popup
  Parent := Self;
end;

See also

TMUIString

  

String Edit component


Documentation generated on: 2024-10-10