- Up - | Next >> |
An anchor defines a place in the window that can be reached from a hyperlink. The handle of an anchor widget can be used as the href
parameter of a hyperlink widget.
local
A
in
{{QHTML.build toplevel(td(hyperlink(href:A value:"Bottom" glue:n)
label(value:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"#
"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"#
"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"#
"\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
glue:n)
anchor(handle:A glue:n)))}
show}
end
actionManager childPrefixId feature glue groupManager handle height id isdisplayed look padx pady parent refId tagname toplevel width .
onblur onclick ondblclick onfocus onkeydown onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseup .
bind
bind(event:Event action:Action args:Args)
: binds an event to an Oz action.
Event
must be one of the events supported by this widget.
Action
must be either a procedure, a pair Object#Method
or a pair Port#RecordMessage
. Events triggered by widgets inside the same QHTML window are serialized in a single thread and executed in FIFO order. If the window is destroyed, pending events are ignored. Arguments specified with Args
are appended to the procedure call or the record specified as Action
when the event is fired.
Args
is a list of arguments to append to the action triggered. Valid Args
are altKey
, button
, clientX
, clientY
, ctrlKey
, keyCode
, offsetX
, offsetY
, returnValue
, screenX
, screenY
, shiftKey
, type
, x
, y
.
close
close
: closes the widget. Use with caution, you should only close toplevel windows.
get
get(Param1:Var1 ... ParamX:VarX)
: gets one or more parameters.
set
set(Param1:Value1 ... ParamX:ValueX)
: sets one or more parameters.
widgetId
widgetId
: this feature is set to the widget's type.
actionManager
actionManager
[free] (__G) : the object managing the actions triggered by all widgets inside the window containing this widget.
childPrefixId
childPrefixId
[atom] (__G) : the HTML prefix that has to be appended to the HTML identifier to get an absolute reference to the HTML identifier of the widget. Warning : you should normally never need this.
feature
feature
[atom] (I__) : specifies a feature of the handle object of the parent container of this widget that will be bound to this widget's handle.
glue
glue
[glue] (ISG) : specifies how the widget fits its space and its behaviour upon resizing.
groupManager
groupManager
[free] (__G) : the object managing radio type widgets that support the group parameter inside this window.
handle
handle
[free] (I_G) : the variable specified as handle is bound to an object that controls this widget, when the window is built.
height
height
[heightlength] (ISG) : height of the widget.
id
id
[atom] (__G) : the HTML identifier of the widget. Warning : you should normally never need this.
isdisplayed
isdisplayed
[bool] (__G) : true
if the widget is currently displayed inside a browser window, false
otherwise. Inside a placeholder
widget, one and only one widget is displayed at a time. When not connected to a browser, no widgets at all are displayed.
look
look
[look] (I__) : specifies a look that defines default values to widgets parameters.
padx
padx
[pad] (ISG) : not sure it does anything for now.
pady
pady
[pad] (ISG) : not sure it does anything for now.
parent
parent
[free] (__G) : the handle of the container widget of this widget.
refId
refId
[atom] (__G) : the absolute reference to the HTML identifier of the widget. Warning : you should normally never need this.
tagname
tagname
[atom] (__G) : HTML tag used to represent the widget. Warning : you should normally never need this.
toplevel
toplevel
[free] (__G) : the handle of the toplevel widget containing this widget.
width
width
[widthlength] (ISG) : width of the widget.
onblur
onblur
the widget has lost the input focus.
onclick
onclick
the user has pressed and released a mouse button (or keyboard equivalent) on the widget.
ondblclick
ondblclick
the user has double-clicked a mouse button.
onfocus
onfocus
the widget has received the user focus.
onkeydown
onkeydown
the user has begun pressing a keyboard character key.
onkeypress
onkeypress
the user has pressed and released a keyboard character key.
onkeyup
onkeyup
the user has released a keyboard character key.
onmousedown
onmousedown
the user has begun pressing a mouse button.
onmousemove
onmousemove
the user rolled the mouse.
onmouseout
onmouseout
the user has rolled the mouse out of an element.
onmouseover
onmouseover
the user has rolled the mouse atop an element.
onmouseup
onmouseup
the user has released the mouse button.
- Up - | Next >> |