![MACROMEDIA DREAMWEAVER MX 2004-DREAMWEAVER API Reference Download Page 212](http://html1.mh-extra.com/html/macromedia/dreamweaver-mx-2004-dreamweaver-api/dreamweaver-mx-2004-dreamweaver-api_reference_3336554212.webp)
212
Chapter 12: Workspace
dreamweaver.getFocus()
Availability
Dreamweaver 4.
Description
This function determines what part of the application is currently in focus.
Arguments
bAllowFloaters
•
The
bAllowFloaters
argument is a Boolean value:
true
if you want the function to return
the name of the floating panel, if a floating panel has focus;
false
otherwise.
Returns
One of the following strings:
•
The
"document"
string if the document window is in focus
•
The
"site"
string if the Site panel is in focus
•
The
"textView"
string if the Text view is in focus
•
The
"html"
string if the Code inspector is in focus
•
The
floaterName
string, if
bAllowFloaters
is
true
and a floating panel has focus, where
floaterName
is
"objects"
,
"properties"
,
"launcher"
,
"library"
,
"css styles"
,
"html
styles"
,
"behaviors"
,
"timelines"
,
"layers"
,
"frames"
,
"templates"
, or
"history"
•
(Macintosh) The
"none"
string if neither the Site panel nor any document windows are open
dreamweaver.getPrimaryView()
Availability
Dreamweaver 4.
Description
This function determines which view is visible as the primary view in the front.
Arguments
None.
Returns
The
"design"
or
"code"
strings, depending on which view is visible or on the top in a split view.
dreamweaver.getSnapDistance()
Availability
Dreamweaver 4.
Description
This function returns the snapping distance in pixels.
000_DW_API_Print.book Page 212 Wednesday, August 20, 2003 9:14 AM
Summary of Contents for DREAMWEAVER MX 2004-DREAMWEAVER API
Page 1: ...Dreamweaver API Reference...
Page 24: ...24 Contents...
Page 32: ......
Page 70: ...70 Chapter 5 Fireworks Integration...
Page 76: ...76 Chapter 6 Flash Integration...
Page 116: ...116 Chapter 9 The JavaBeans API...
Page 140: ......
Page 152: ...152 Chapter 11 Application...
Page 218: ...218 Chapter 12 Workspace...
Page 248: ...248 Chapter 13 Site...
Page 292: ...292 Chapter 14 Document...
Page 378: ...378 Chapter 17 Design...
Page 430: ...430 Chapter 18 Code...
Page 486: ...486 Index...