Specify the button object to be used in the popup.
Source position: MUIClass.PopString.pas line 49
published property TMUIPopString.Button : TMUIArea |
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;
|
String Edit component |