isResizable()
Availability
Dreamweaver 4.
Description
Determines whether a user can resize a floating panel. If the function is not defined or returns a
value, the user can resize the floating panel. If the function returns a
true
cannot resize the floating panel.
Arguments
None.
Returns
Dreamweaver expects a Boolean value:
otherwise.
false
Example
The following example prevents the user from resizing the floating panel:
function isResizable()
{
return false;
}
selectionChanged()
Description
Called when the floating panel becomes visible and when the selection changes (when focus
switches to a new document or when the insertion pointer moves to a new location in the current
document). This function should be defined only if the floating panel must track the selection.
Note: Define
selectionChanged()
performance.
Arguments
None.
Returns
Dreamweaver expects nothing.
Example
The following example of
depending on whether the selection is a script marker. If the selection is a script marker,
Dreamweaver makes the script layer visible. Otherwise, Dreamweaver makes the blank
layer visible.
function selectionChanged(){
/* get the selected node */
var theDOM = dw.getDocumentDOM();
var theNode = theDOM.getSelectedNode();
228
Chapter 13: Floating Panels
if the user can resize the floating panel;
true
only if you absolutely require it because its existence impacts
selectionChanged()
shows a different layer in the floating panel,
value, the user
false
Need help?
Do you have a question about the DREAMWEAVER MX 2004-EXTENDING DREAMWEAVER and is the answer not in the manual?
Questions and answers