Changeset 18 for trunk/lingosource/castlib2/resizeWindowScripts.ls
- Timestamp:
- 10/24/08 12:12:09 (4 years ago)
- File:
-
- 1 edited
-
trunk/lingosource/castlib2/resizeWindowScripts.ls (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lingosource/castlib2/resizeWindowScripts.ls
r14 r18 1 1 -- resizeWindowScripts 2 ----------------------------------- 3 -- CREATED: 4 -- 2008-04-17 at 01:54 5 -- 6 -- PROPERTIES: 7 --!memberProperties: [#name: "resizeWindowScripts", #scripttype: #movie, #scriptSyntax: #lingo, #comments:"~/Documents/Scripts/lingo/resizeWindowScripts.ls"] 8 -- 9 -- DESCRIPTION: 10 -- moviescript to handle the resizeWindow event and send it to all sprites 11 -- the sprites can have the "newResizableStageBehavior" in order to act according 12 -- to their gpdl settings 13 -- 14 -- REQUIRES: 15 -- (Prerequisites) 16 -- 17 -- USAGE: 18 -- in order to make this script work initialize it as soon as possible (for example startmovie) 19 -- and set the minimum and maximum sizes for the window 20 -- 2 21 -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 3 22 -- xxxxxxxxxxxxxxxxxx add the following call to startmovie 4 5 23 -- 6 24 --on startmovie 7 25 -- ... 8 26 -- 9 27 -- xxxxxxxxxxxxxxxxxx 10 28 -- edit the min and max sizes for the window here: … … 13 31 -- mInitResizeWindowSystem minmaxSize 14 32 -- ... 15 33 -- 16 34 -- end 35 ----------------------------------- 36 17 37 18 38 … … 167 187 newRect = aw.rect 168 188 169 glob = call(#mGetGlobalList, [mGetXScript(#commonmoviescript)])189 glob = call(#mGetGlobalList, mGetXScript()) 170 190 oldar = glob.getaprop(#gCurrentStageRect) 171 191 … … 218 238 else 219 239 220 theRect = call(#mGetPrefValue, [mGetXScript(#GetSetPrefs)], #gWindowRect)240 theRect = call(#mGetPrefValue, mGetXScript(#GetSetPrefs), #gWindowRect) 221 241 222 242 if ilk(theRect) = #rect then
Note: See TracChangeset
for help on using the changeset viewer.
