The GtkWidget class is the base class for all the other classes in the GtkRxDlg class heirarchy. You should NOT instantiate this class directly, instead you should instantiate the children of this class. However, feel free to utilize the methods in this class to manipulate your child widgets.
This class subclasses the Object REXX Object class so all of its methods are also available to this class.
The class heirarchy
Object +---GtkWidget |
The methods for the GtkWidget class are documented below.
This method returns the accessibility object.
This is a example of how to get the accessibility object.
accessobj = mywidgit~access() |
None.
This method destroys the widget and any children dependent on this widget. It also sets the pointer value to zero making the internal object unavailable.
This is a example of how to destroy a widget.
mywidgit~destroy() |
None.
None.
This method gets the font used by the widget for displaying text.
This is a example of how to get the widget's font.
fontname = mywidget~font() |
None.
This method sets the font used by the widget for displaying text.
This is a example of how to set the widget's font.
mywidget~font = 'Courier 10' |
None
This method sets the keyboard focus to the widget.
This is a example of how to set the focus to a widget.
mywidget~grabfocus() |
None.
None.
Hide a widget.
mywidgit~hide() |
None
None.
Hide a widget and any dependent child widgets.
mywidgit~hideall() |
None
None.
Returns the name of the widget.
This is a example of how to retrieve the widget name.
myname = mywidget~name() |
None
Sets the name of the widget.
This is a example of how to set the widget name.
newname = 'OkButton' mywidget~name(newname) |
None
Returns the pointer to the internal widget data structure. You probably will never use this method but it is here for debugging.
This is a example of how to retrieve the internal pointer.
internal_pointer = mywidget~pointer() |
None
This method enables/disables a widget.
This is a example of how to enable/disable a widget.
flag = .false /* disable the widget */ mywidget~sensitive = flag flag = .true /* enable the widget */ mywidget~sensitive = flag |
None
This method sets the size of the widget (in pixels). Normally, you should let the size of a widget default to its initial value when instantiated (0, 0) which lets the widget adjust its own size to an optimal display value.
This is a example of how to set the widget's size.
width = 200 height = 100 mywidget~setsize(width, height) |
None
This method shows the widget.
This is a example of how to show a widget.
mywidget~show() |
None.
None
This method shows the widget and any dependent/contained child widgets.
This is a example of how to show a widget and all its child widgets.
mywidget~showall() |
None.
None.