Class UICHOICE

Name

UICHOICE  --  Edit field with choice button. Inherits fields and method from class UIEdit.

Synopsis

 UIChoice(<action>,[<value>],[<text>])	--> UIChoice object
 
 
 

Description

Class UIChoice

Attributes

<className> - Class name. Value should be "UIChoice".
<button> - UIButton object. Button for select element.

Methods

GETVALUE Get text and id for selected element.
SETACTION Set action for button.
SETVALUE Set text and id for selected element.
UICHOICE Constructor. Create edit field with choice button.

Method UICHOICE:GETVALUE()

 getValue()  --> <value>

Method UICHOICE:SETACTION()

 setAction(<signal>,<action>)

Method UICHOICE:SETVALUE()

 setValue(<value>)

Method UICHOICE:UICHOICE()

 UIChoice(<action>,[<value>],[<text>])	--> UIChoice object

Example:

 choice := UIChoice({|| openForm("form.xfl") })
 

Platforms

No dependies of platform.