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 $" + \
"!");
}
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
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...