EasyManua.ls Logo

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING - Page 393

MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING
1130 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
maximize() 393
-- Lingo syntax
on findWinner Bids
Winner = Bids.max()
member("Congratulations").text = \
"You have won, with a bid of $" & Winner &"!"
end
// JavaScript syntax
function findWinner(Bids) {
Winner = Bids.max();
member("Congratulations").text = "You have won, with a bid of $" + \
Winner + "!");
}
maximize()
Usage
-- Lingo syntax
windowObjRef.maximize()
// JavaScript syntax
windowObjRef.maximize();
Description
Window method; maximizes a window.
Use this method when making custom titlebars.
Parameters
None.
Example
These statements maximize the window named Artists if it is not already maximized.
-- Lingo syntax
if (window("Artists").sizeState <> #maximized) then
window("Artists").maximize()
end if
// JavaScript syntax
if (window("Artists").sizeState != symbol("maximized")) {
window("Artists").maximize();
}
See also
minimize(), Window