Specify the string object to be used in the popup.
Source position: MUIClass.PopString.pas line 50
published property TMUIPopString.StringObj : TMUIString |
This does not necessarily need to be a real string object, using text objects or even complete groups of other objects is perfectly ok.
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;
|
Short cut to create a simple Button |