The RadWidget class implements an invisible control which can have other controls attached to it (see the setLayout method).
Overview
The new function creates a new RadWidget object and returns a pointer to the newly created object. The RadWidget is one of the class key words accepted by the qt new: function. There can be many RadWidget objects.
Syntax
(qt new: RadWidget:)
Arguments
Returns | Always returns a pointer to the newly created RadWidget object. |
Example1
(setq radWidgetPtr (qt new: RadWidget:)) ;; Create a new RadWidget object
Overview
The delete function destroys a RadWidget object and returns a null pointer.
Syntax
(qt delete: RadWidgetPtr)
Arguments
radRadWidgetPtr | The pointer to the RadWidget object to be destroyed. |
Returns | Always returns a null pointer. |
Example1
(setq radWidgetPtr (qt new: RadWidget:)) ;; Create a RadWidget object.
(setq radWidgetPtr (qt delete: radWidgetPtr)) ;; Destroy the RadWidget object.
Overview
The RadWidget setFocus function sets the GUI focus to the RadWidget.
Syntax
(qt radWidgetPtr setFocus:))
Arguments
returns | Always returns #void |
Example1
(setq radWidgetPtr (qt new: RadWidget:)) ;; Create a RadWidget object.
(qt radWidgetPtr setFocus:) ;; Set the GUI focus to the RadWidget object.
Overview
The setLayout function populates the RadWidget's main layout object. The main layout object must contain the controls and sublayouts which populate the RadWidget.
Syntax
(qt RadWidgetPtr setLayout: RadVBoxLayoutPtr)
Arguments
Returns | Always returns a #void value. |
Example1
(setq radWidgetPtr (qt new: RadWidget:)) ;; Create a RadWidget object. (qt radWidgetPtr setLayout: RadVBoxLayoutPtr) ;; Set the RadWidget main layout to a vertical layout box.
Syntax
(qt RadWidgetPtr setLayout: RadHBoxLayoutPtr)
Arguments
Returns | Always returns a #void value. |
Example1
(setq radWidgetPtr (qt new: RadWidget:)) ;; Create a RadWidget object. (qt radWidgetPtr setLayout: RadHBoxLayoutPtr) ;; Set the RadWidget main layout to a horizontal layout box.