
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");
}
}
}
Содержание ColdFusion Server 5
Страница 18: ...xviii About This Book...
Страница 26: ...8 Chapter 1 Setting Up the Product...
Страница 42: ...24 Chapter 2 Configuring Browsers and Servers...
Страница 60: ...42 Chapter 3 Exploring the Workspace...
Страница 100: ...82 Chapter 6 Editing Pages...
Страница 126: ...108 Chapter 7 Using Web Development Languages...
Страница 212: ...194 Chapter 13 Customizing the Development Environment...
Страница 320: ...302 Glossary...