+ (id) popstring
- (MUIArea *) button
Specify the button object to be used in the popup. 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.
- (IPTR) close:(LONG)result
This method closes the popup. In fact, it only calls the predefined MUIA_Popstring_CloseHook with the supplied success parameter.
- (void) noNotifySetToggle:(BOOL)toggle
- (IPTR) open
This method opens the popup. In fact, it only calls the predefined MUIA_Popstring_OpenHook and checks its return value. In case of TRUE, the popup button object is disabled as long as MUIA_Popstring_Toggle is unset.
If the toggle mode is enabled, using MUIA_Popstring_Open on a currently opened popup will result in closing this popup (i.e. calling the close hook) with a success value of FALSE.
- (void) setButton:(MUIArea *)button
CAUTION: this is an initializer attribute, meaning it cannot be changed after the underlying MUI object is instantiated
- (void) setString:(MUIArea *)string
CAUTION: this is an initializer attribute, meaning it cannot be changed after the underlying MUI object is instantiated
- (void) setToggle:(BOOL)toggle
- (MUIArea *) string
Specify the string object to be used in the popup. 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.
- (BOOL) toggle
Set/Clear the toggle mode for a popstring object. With toggling disabled, the popup button will get disabled whenever the user hits it and the popup opens. With toggling enabled, the popup button always stays enabled and can be used to cancel (== close with a FALSE return value) the popup.