Window Functions - Adobe 38040334 - Dreamweaver CS3 User Manual

Api reference
Hide thumbs Also See for 38040334 - Dreamweaver CS3:
Table of Contents

Advertisement

Description
This function shows or hides the specified toolbar.
Arguments
toolbar_id, bShow
• The
argument is the ID of the toolbar, the value of the ID attribute on the toolbar tag in the
toolbar_id
toolbars.xml file.
• The
argument is a Boolean value that indicates whether to show or hide the toolbar. If
bShow
dom.setToolbarVisibility()
makes the toolbar invisible.
Returns
Nothing.
Example
The following example checks to see if the toolbar myEditbar is visible in the document window; if it is not visible,
it sets myEditbar to be visible:
var dom = dw.getDocumentDOM();
if(dom != null && dom.getToolbarVisibility("myEditbar") == false)
{
dom.setToolbarVisibility("myEditbar", true);
{

Window functions

Window functions handle operations that are related to the document window and the floating panels. The window
functions show and hide floating panels, determine which part of the Document window has focus, and set the active
document. For operations that are related specifically to the Site panel, see "Site functions" on page 194.
Note: Some of the functions in this section operate only on Windows. The description of a function indicates whether
this is the case.
dom.getFocus()
Availability
Dreamweaver 3.
Description
This function determines the part of the document that is currently in focus.
Arguments
None.
Returns
One of the following strings:
• The
string if the
"head"
makes the toolbar visible
area is active
HEAD
If
is
,
.
bShow
false
dom.setToolbarVisibility()
DREAMWEAVER CS3
API Reference
is
,
bshow
true
173

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver cs3

Table of Contents