3.1 QHTML widget reference : anchor

3.1.1 Description

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.

3.1.2 Example

 
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

3.1.3 Parameter list

Non specific parameters

actionManager childPrefixId feature glue groupManager handle height id isdisplayed look padx pady parent refId tagname toplevel width .

3.1.4 Event list

onblur onclick ondblclick onfocus onkeydown onkeypress onkeyup onmousedown onmousemove onmouseout onmouseover onmouseup .

3.1.5 Method list

bind

bind(event:Event action:Action args:Args) : binds an event to an Oz action.

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.

3.1.6 Feature list

widgetId

widgetId : this feature is set to the widget's type.

3.1.7 Detailed Parameter list

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.

3.1.8 Detailed Event list

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.


Donatien Grolaux
Version 1.3.0 (20010902)