- add_element
- delete_element
- get_element_image
- get_element_property
- set_element_image
- set_element_property
- add_ctx_menu_opt
- associate_ctx_menu
- create_ctx_menu
- delete_ctx_menu
- delete_ctx_menu_opt
- get_ctx_menu_opt_property
- get_tool_property
- set_ctx_menu_opt_property
- set_tool_property
- set_focus
- add_tool
- delete_tool
- get_tool_styles
- modify_tool_styles
- set_tool_styles
- tool_has_styles
- menubar
- add_image
- browse
- copy
- cut
- get_child
- get_depth
- get_nb_children
- get_next
- get_parent
- get_previous
- paste
Adds a context-sensitive menu option.
Syntax | |||||||||||
CALL_METHOD MenuBarObjectName ADD_CTX_MENU_OPT MenuId MenuOptionId Position Text Style NewMenuOptionId ReturnCode |
|||||||||||
Parameters |
|||||||||||
NUM_BIN_4 MenuId |
Identification number of the parent context-sensitive menu (input parameter) |
||||||||||
NUM_BIN_4 MenuOptionId |
Identification number of the parent menu option or _MBA_ROOT (input parameter) |
||||||||||
NUM_BIN_2 Position |
Insertion point for the new element (input parameter)
|
||||||||||
ALPHA(250) Text |
Text of the option (input parameter) |
||||||||||
NUM_BIN_4 Style |
Style to be applied (input parameter)
|
||||||||||
NUM_BIN_4 NewMenuOptionId |
Identification code of the created menu option (output parameter) |
||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter)
|
||||||||||
Conditions for use | None |
Adds an element to the tree view.
Syntax | |||||||||||||||
CALL_METHOD MenuBarObjectName ADD_ELEMENT ToolId ParentId Position Text ElementId ReturnCode |
|||||||||||||||
Parameters |
|||||||||||||||
NUM_BIN_4 ToolId |
Identification code of the tool (input parameter) |
||||||||||||||
NUM_BIN_4 ParentId |
Identification code of the parent element (parent or sibling) (input parameter)
|
||||||||||||||
NUM_BIN_2 Position |
Insertion point for the new element (input parameter)
|
||||||||||||||
ALPHA(250) Text |
Text in the element (input parameter) |
||||||||||||||
NUM_BIN_4 ElementId |
Identification code of the new element added (output parameter) |
||||||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter)
|
||||||||||||||
Conditions for use | None |
Important: in Adelia Cloud mode, the text of an element accepts HTML code as an input, making it possible to create enriched text. If it needs to be possible for the user to enter this text, it is the developer's responsibility to check that the input text does not contain javascript code likely to generate a "Cross-Site Scripting" vulnerability. The VaToolBxJavaSanitizeHTML function can be used to validate the input value.
Adds an image to the image list associated with the object.
Syntax | |||||||||
CALL_METHOD MenuBarObjectName ADD_IMAGE FileName ImageId ReturnCode |
|||||||||
Parameters |
|||||||||
ALPHA(250) FileName |
Name and directory of the file containing the image. The acceptable file formats are: bmp, gif, jpg and png. |
||||||||
NUM_BIN_4 ImageId |
Identification code of the image file just added (output parameter). |
||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||||||
Conditions for use | None |
Adds a tool at the given position.
Syntax | |||||||||||
CALL_METHOD MenuBarObjectName ADD_TOOL MenuId Position Type ToolId ReturnCode |
|||||||||||
Parameters |
|||||||||||
NUM_BIN_2 Position |
Insertion point for the new element (input parameter)
|
||||||||||
ALPHA(250) Type |
Text of the option (input parameter)
|
||||||||||
NUM_BIN_4 ToolId |
Identification code of the tool (input parameter) |
||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||||||||
Conditions for use | None |
Associates a context-sensitive menu with a tool or a menu element.
Syntax | |||||||||||
CALL_METHOD MenuBarObjectName ASSOCIATE_CTX_MENU MenuId ToolId ElementId ReturnCode |
|||||||||||
Parameters |
|||||||||||
NUM_BIN_4 MenuId |
Identification code of the context-sensitive menu (input parameter), |
||||||||||
NUM_BIN_4 ToolId |
Identification code of the tool for which the menu must be added (input parameter), |
||||||||||
NUM_BIN_4 ElementId |
Identification code of the element for which the menu must be added. This value can be _MBA_NONE (input parameter), |
||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||||||||
Conditions for use | None |
Browses through all the tree elements that have been assigned a root element.
This method is available only for Search and Menu tools.
Syntax | |||||||||||
CALL_METHOD MenuBarObjectName BROWSE ToolId ElementId BrowseType ElementIdArray ReturnCode |
|||||||||||
Parameters |
|||||||||||
NUM_BIN_4 ToolId |
Identification code for the tool (input parameter) |
||||||||||
NUM_BIN_4 ElementId |
Identification code for the tree's root element (input parameter) |
||||||||||
NUM_BIN_2 BrowseType |
Type of browsing route taken through the tree (input parameter)
|
||||||||||
NUM_BIN_4(n) ElementIdArray |
Array containing the results of browsing through the tree. This array contains the identification codes of the elements browsed, in the order defined by the BrowseType parameter (the size of the array must match the number of elements in the ElementId root tree) (output parameter) |
||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter)
|
||||||||||
Conditions for use | None |
Copies the tree for which the root is a given element.
This method is available only for Search and Menu tools.
Syntax | |||||||||||
CALL_METHOD MenuBarObjectName COPY ToolId ElementId ReturnCode |
|||||||||||
Parameters |
|||||||||||
NUM_BIN_4 ToolId |
Identification code of the tool (input parameter), |
||||||||||
NUM_BIN_4 ElementId |
Identification code of the root element (input parameter), |
||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||||||||
Conditions for use | When calling the COPY (or CUT) method, the copy of the tree previously copied (if any) is destroyed. |
Creates a context-sensitive menu.
Syntax | |||||
CALL_METHOD MenuBarObjectName CREATE_CTX_MENU MenuId ReturnCode |
|||||
Parameters |
|||||
NUM_BIN_4 MenuId |
Identification code of the created menu (input parameter), |
||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||
Conditions for use | None |
Copies the tree for which the root is a given element, then deletes it.
This method is available only for Search and Menu tools.
Syntax | |||||||||||
CALL_METHOD MenuBarObjectName CUT ToolId ElementId ReturnCode |
|||||||||||
Parameters |
|||||||||||
NUM_BIN_4 ToolId |
Identification code of the tool (input parameter), |
||||||||||
NUM_BIN_4 ElementId |
Identification code of the root element (input parameter), |
||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||||||||
Conditions for use | When calling the COPY (or CUT) method, the copy of the tree previously copied is destroyed (if any). |
Deletes a context-sensitive menu.
Syntax | |||||
CALL_METHOD MenuBarObjectName DELETE_CTX_MENU MenuId ReturnCode |
|||||
Parameters |
|||||
NUM_BIN_4 MenuId |
Identification code of the context-sensitive menu (input parameter), |
||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||
Conditions for use | None |
Deletes an option from a context-sensitive menu.
Syntax | |||||||
CALL_METHOD MenuBarObjectName DELETE_CTX_MENU_OPT MenuId MenuOptionId ReturnCode |
|||||||
Parameters |
|||||||
NUM_BIN_4 MenuId |
Identification number of the parent context-sensitive menu (input parameter), |
||||||
NUM_BIN_4 MenuOptionId |
Identification number of the parent menu option (input parameter), |
||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||||
Conditions for use | None |
Deletes an element.
Syntax | |||||||||||
CALL_METHOD MenuBarObjectName DELETE_ELEMENT ToolId ElementId ReturnCode |
|||||||||||
Parameters |
|||||||||||
NUM_BIN_4 ToolId |
Tool identification code (input parameter), |
||||||||||
NUM_BIN_4 ElementId |
Identification code of the element to be deleted (input parameter), |
||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||||||||
Conditions for use | If the idElement parameter is set to _MBA_NONE, all the elements are deleted. |
Deletes a tool.
Syntax | |||||
CALL_METHOD MenuBarObjectName DELETE_TOOL ToolId ReturnCode |
|||||
Parameters |
|||||
NUM_BIN_4 ToolId |
Identification code of the tool (input parameter), |
||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||
Conditions for use | None |
Returns the child element for a given parent element.
This method is available only for Search and Menu tools.
Syntax | |||||||||
CALL_METHOD MenuBarObjectName GET_CHILD ToolId ElementId First ResultElementId ReturnCode |
|||||||||
Parameters |
|||||||||
NUM_BIN_4 ToolId |
Tool identification code (input parameter), |
||||||||
NUM_BIN_4 ElementId |
Element identification code (input parameter), |
||||||||
BOOL First |
Position of the child element to be retrieved (*TRUE to retrieve the first child element, *FALSE to retrieve the last child element) (input parameter), |
||||||||
NUM_BIN_4 ResultElementId |
Identification code of the result child element (may be set to _MBA_NONE if the element has no child) (output parameter), |
||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||||||
Conditions for use |
None |
Retrieves the value of a property of a context-sensitive menu option.
Syntax | |||||||||||
CALL_METHOD MenuBarObjectName GET_CTX_OPT_MENU_PROPERTY MenuId MenuOptionId Property Value ReturnCode |
|||||||||||
Parameters |
|||||||||||
NUM_BIN_4 Menu Id |
Identification of the context-sensitive menu (input parameter) |
||||||||||
NUM_BIN_4 MenuOptionId |
Identification of the context-sensitive menu option (input parameter) |
||||||||||
NUM_BIN_4 Property |
Identification of the property to retrieve (input parameter)
|
||||||||||
Variable of Adelia type: Value |
Retrieved value (output parameter) |
||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter)
|
||||||||||
Conditions for use | None |
Returns the depth of a given node element. The depth of a tree whose root is the element e1 will be the length of its longest path (in terms of the number of elements) leading from e1.
This method is available only for Search and Menu tools.
Syntax | |||||||||||||
CALL_METHOD MenuBarObjectName GET_DEPTH ToolId ElementId Depth ReturnCode |
|||||||||||||
Parameters |
|||||||||||||
NUM_BIN_4 ToolId |
Tool identification code (input parameter), |
||||||||||||
NUM_BIN_4 ElementId |
Element identification code (input parameter), |
||||||||||||
NUM_BIN_2 Depth |
Depth of the tree whose root is ElementId (output parameter), |
||||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||||||||||
Conditions for use | None |
Returns the image associated with a menu element.
This method is available only for Search and Menu tools.
Syntax | |||||||||||
CALL_METHOD MenubarObjectName GET_ELEMENT_IMAGE ToolId ElementId ImageIdOrImage ReturnCode |
|||||||||||
Parameters |
|||||||||||
NUM_BIN_4 ToolId |
Tool identification code (input parameter), |
||||||||||
NUM_BIN_4 ElementId |
Element identification code (input parameter), |
||||||||||
Variable of Adelia type ImageIdOrImage |
Identification code for the image associated with the element or the image (output parameter), |
||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||||||||
Conditions for use | None |
Retrieves a property of an element.
This method is available only for Search and Menu tools.
Syntax | |||||||||||||||||
CALL_METHOD MenuBarObjectName GET_ELEMENT_PROPERTY ToolId ElementId Property Value ReturnCode |
|||||||||||||||||
Parameters |
|||||||||||||||||
NUM_BIN_4 ToolId |
Tool identification code (input parameter) |
||||||||||||||||
NUM_BIN_4 ElementId |
Element identification code (input parameter) |
||||||||||||||||
NUM_BIN_4 Property |
Identification of the property to be retrieved (input parameter)
|
||||||||||||||||
Variable of Adelia type: Value |
Value of the retrieved property (output parameter) |
||||||||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter)
|
||||||||||||||||
Conditions for use | None |
Returns the number of child elements for a given node element.
This method is available only for Search and Menu tools.
Syntax | |||||||||
CALL_METHOD MenuBarObjectName GET_NB_CHILDREN ToolId ElementId Nb ReturnCode |
|||||||||
Parameters |
|||||||||
NUM_BIN_4 ToolId |
Tool identification code (input parameter), |
||||||||
NUM_BIN_4 ElementId |
Element identification code (input parameter), |
||||||||
NUM_BIN_2 Nb |
Number of children for the element (output parameter), |
||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||||||
Conditions for use | None |
Returns the sibling element immediately after a given element.
This method is available only for Search and Menu tools.
Syntax | |||||||||
CALL_METHOD MenuBarObjectName GET_NEXT ToolId ElementId ResultElementId ReturnCode |
|||||||||
Parameters |
|||||||||
NUM_BIN_4 ToolId |
Tool identification code (input parameter), |
||||||||
NUM_BIN_4 ElementId |
Element identification code (input parameter), |
||||||||
NUM_BIN_4 ResultElementId |
Identification code of the result sibling element (may be set to _MBA_NONE if there is no following element) (output parameter), |
||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||||||
Conditions for use | None |
Returns a given element's parent element.
This method is available only for Search and Menu tools.
Syntax | |||||||||||
CALL_METHOD AcordionMenuObjectName GET_PARENT ToolId ElementId ResultElementId ReturnCode |
|||||||||||
Parameters |
|||||||||||
NUM_BIN_4 ToolId |
Tool identification code (input parameter), |
||||||||||
NUM_BIN_4 ElementId |
Element identification code (input parameter), |
||||||||||
NUM_BIN_4 ResultElementId |
Identification code of the result parent element (output parameter), |
||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||||||||
Conditions for use | None |
Returns the sibling element that precedes a given element.
This method is available only for Search and Menu tools.
Syntax | |||||||||
CALL_METHOD MenuBarObjectName GET_PREVIOUS ToolId ElementId ResultElementId ReturnCode |
|||||||||
Parameters |
|||||||||
NUM_BIN_4 ToolId |
Tool identification code (input parameter), |
||||||||
NUM_BIN_4 ElementId |
Element identification code (input parameter), |
||||||||
NUM_BIN_4 ResultElementId |
Identification code of the result sibling element (may be set to _MBA_NONE if there is no previous element) (output parameter), |
||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||||||
Conditions for use | None |
Retrieves the value of a tool property.
Syntax | |||||||||||||||||||||||||||||||
CALL_METHOD MenuBarObjectName GET_TOOL_PROPERTY ToolId Property Value ReturnCode |
|||||||||||||||||||||||||||||||
Parameters |
|||||||||||||||||||||||||||||||
NUM_BIN_4 ToolId |
Identification code of the tool (input parameter) |
||||||||||||||||||||||||||||||
NUM_BIN_4 Property |
Identification of the property to retrieve (input parameter)
|
||||||||||||||||||||||||||||||
Variable of Adelia type: Value |
Retrieved value (output parameter) |
||||||||||||||||||||||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter)
|
||||||||||||||||||||||||||||||
Conditions for use | None |
Retrieves the styles of a tool.
Syntax | |||||||||||||||||||||
CALL_METHOD MenuBarObjectName GET_TOOL_STYLES ToolId Styles ReturnCode |
|||||||||||||||||||||
Parameters |
|||||||||||||||||||||
NUM_BIN_4 ToolId |
Identification code of the tool (input parameter) |
||||||||||||||||||||
NUM_BIN_4 Styles |
Styles to be retrieved (input parameter)
|
||||||||||||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter)
|
||||||||||||||||||||
Conditions for use | None |
Modifies the styles of a tool.
Syntax | |||||||||||||||||||
CALL_METHOD MenuBarObjectName MODIFY_TOOL_STYLES ToolId AddedStyles RemovedStyles ReturnCode |
|||||||||||||||||||
Parameters |
|||||||||||||||||||
NUM_BIN_4 ToolId |
Identification code of the tool (input parameter) |
||||||||||||||||||
NUM_BIN_4 AddedStyles |
Styles to be added (input parameter)
|
||||||||||||||||||
NUM_BIN_4 RemovedStyles |
Styles to be removed (input parameter) |
||||||||||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter)
|
||||||||||||||||||
Conditions for use | None |
Pastes a tree (previously copied by calling the COPY or CUT method) at a specified position.
This method is available only for Search and Menu tools.
Syntax | |||||||||||||
CALL_METHOD MenuBarObjectName PASTE ToolId ParentId Position ReturnCode |
|||||||||||||
Parameters |
|||||||||||||
NUM_BIN_4 ToolId |
Identification code of tool (input parameter) |
||||||||||||
NUM_BIN_4 ParentId |
Identification code of the related element (parent or sibling) (input parameter) |
||||||||||||
NUM_BIN_2 Position |
Insertion point for the new element (input parameter)
|
||||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter)
|
||||||||||||
Conditions for use | When calling the COPY (or CUT) method, the copy of the tree previously copied (if any) is destroyed. |
Defines a property for a context-sensitive menu option.
Syntax | |||||||||||
CALL_METHOD MenuBarObjectName SET_CTX_OPT_MENU_PROPERTY MenuId MenuOptionId Property Value ReturnCode |
|||||||||||
Parameters |
|||||||||||
NUM_BIN_4 Menu Id |
Identification of the context-sensitive menu (input parameter) |
||||||||||
NUM_BIN_4 MenuOptionId |
Identification of the context-sensitive menu option (input parameter) |
||||||||||
NUM_BIN_4 Property |
Identification of the property to be modified (input parameter)
|
||||||||||
Variable of Adelia type: Value |
New value of the property (input parameter) |
||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter)
|
||||||||||
Conditions for use | None |
Defines an image as being associated with a specific status of a given element. The image will appear to the left of the element's text.
Syntax | |||||||||||||
CALL_METHOD MenuBarObjectName SET_ELEMENT_IMAGE ToolId ElementId ImageIdOrImage Height Width ReturnCode |
|||||||||||||
Parameters |
|||||||||||||
NUM_BIN_4 ToolId |
Identification code of the tool (input parameter) |
||||||||||||
NUM_BIN_4 ElementId |
Element identification code (input parameter) |
||||||||||||
NUM_BIN_4 ImageId |
Identification code of the image associated with the element or _MBA_NONE to delete the image (input parameter) |
||||||||||||
NUM_BIN_2 Height |
Height of the image to display (input parameter)
|
||||||||||||
NUM_BIN_2 Width |
Width of the image to display (input parameter)
|
||||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter)
|
||||||||||||
Conditions for use | If the value of one of the Height or Width parameters is MBA_ACTUAL_SIZE, the image is displayed with its actual size. If one of the Height or Width parameters is set to MBA_DEFAULT_SIZE, the image is displayed with the default size (16 pixels). |
Defines a property for an element.
Syntax | |||||||||||||||
CALL_METHOD MenuBarObjectName SET_ELEMENT_PROPERTY ToolId ElementId Property Value ReturnCode |
|||||||||||||||
Parameters |
|||||||||||||||
NUM_BIN_4 ToolId |
Identification code of the tool (input parameter) |
||||||||||||||
NUM_BIN_4 ElementId |
Element identification code (input parameter) |
||||||||||||||
NUM_BIN_4 Property |
Identification of the property to be modified (input parameter)
|
||||||||||||||
Variable of Adelia type: Value |
New value of the property (input parameter) |
||||||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter)
|
||||||||||||||
Conditions for use | None |
Places the focus on the object.
Syntax | |
CALL_METHOD MenuBarObjectName SET_FOCUS ToolId |
|
Parameters |
|
NUM_BIN_4 ToolId |
Identification code of the tool (input parameter), |
Conditions for use | None |
Defines a property for a tool.
Syntax | |||||||||||||||||||||||||||||||
CALL_METHOD MenuBarObjectName SET_TOOL_PROPERTY ToolId Property Value ReturnCode |
|||||||||||||||||||||||||||||||
Parameters |
|||||||||||||||||||||||||||||||
NUM_BIN_4 ToolId |
Identification code of the tool (input parameter) |
||||||||||||||||||||||||||||||
NUM_BIN_4 Property |
Identification of the property to be modified (input parameter)
|
||||||||||||||||||||||||||||||
Variable of Adelia type: Value |
New value of the property (input parameter) |
||||||||||||||||||||||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter)
|
||||||||||||||||||||||||||||||
Conditions for use | None |
Defines the styles for a tool.
Syntax | |||||||||||||||||||
CALL_METHOD MenuBarObjectName SET_TOOL_STYLES ToolId Styles ReturnCode |
|||||||||||||||||||
Parameters |
|||||||||||||||||||
NUM_BIN_4 ToolId |
Identification code of the tool (input parameter) |
||||||||||||||||||
NUM_BIN_4 Styles |
Styles to be applied (input parameter)
|
||||||||||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter)
|
||||||||||||||||||
Conditions for use | None |
Tests whether a tool has one or more styles. The method returns the value *TRUE if the tool has all the styles in the specified combination.
Syntax | |||||||||||||||||||||
CALL_METHOD MenuBarObjectName TOOL_HAS_STYLES ToolId Styles Result ReturnCode |
|||||||||||||||||||||
Parameters |
|||||||||||||||||||||
NUM_BIN_4 ToolId |
Identification code of the tool (input parameter) |
||||||||||||||||||||
NUM_BIN_4 Styles |
Styles to be applied (input parameter)
|
||||||||||||||||||||
BOOL Result |
Result of the test (output parameter), |
||||||||||||||||||||
NUM_BIN_2 ReturnCode |
Return code for the operation (output parameter).
|
||||||||||||||||||||
Conditions for use | None |