User Guide

Application Object 227
SetToolbarDockPos
Syntax SetToolbarDockPos(wsToolbarName: WideString; nDockPos: Integer): Word-
Bool;
Description Boolean. Sets the docking position of the toolbar. Fails if the toolbar does not exist.
The following values for
nDockPos are allowed :
1 = Top
2 = Bottom
3 = Left
4 = Right
Example function Main(){
with (Application){
SetToolbarDockPos(’Standard’, 2);
}
}
ShowToolbar
Syntax ShowToolbar(wsToolbarName: WideString): WordBool;
Description Boolean. Displays a toolbar if it is not already showing. Fails if the toolbar does not
exist.
Example
function Main() {
Var sToolBarName = "MyToolBar";
with (Application) {
CreateToolbar (sToolBarName);
ShowToolBar(sToolBarName);
}
}
ToolbarExists
Syntax ToolbarExists(wsToolbarName: WideString): WordBool;
Description Boolean. Returns True if the passed toolbar exists.
Example
function Main() {
with (Application) {
sToolBarName = InputBox (VersionText, "Enter the Toolbar name.",
"MyToolbar");
while (ToolbarExists(sToolBarName) != 0){
sToolBarName = InputBox (VersionText, "Please choose
another name.", "MyToolbar");
}
}
}