home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 June / Chip_06_2000.iso / games / WheelofTime / WoTDemo.exe / System / UWindow.u / UWindowWindow_UWindowLayoutControl_ScriptText.TextBuffer < prev    next >
Unknown  |  1999-11-02  |  1.4 KB

view JSON data     |     view as text     |     open on a Mac     |     open on a PC

This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 00 00 00 00 00 00 00 | 60 16 63 6c 61 73 73 20 |........|`.class |
|00000010| 55 57 69 6e 64 6f 77 4c | 61 79 6f 75 74 43 6f 6e |UWindowL|ayoutCon|
|00000020| 74 72 6f 6c 20 65 78 74 | 65 6e 64 73 20 55 57 69 |trol ext|ends UWi|
|00000030| 6e 64 6f 77 4c 61 79 6f | 75 74 42 61 73 65 3b 0d |ndowLayo|utBase;.|
|00000040| 0a 0d 0a 76 61 72 20 55 | 57 69 6e 64 6f 77 44 69 |...var U|WindowDi|
|00000050| 61 6c 6f 67 43 6c 69 65 | 6e 74 57 69 6e 64 6f 77 |alogClie|ntWindow|
|00000060| 09 4f 77 6e 65 72 57 69 | 6e 64 6f 77 3b 0d 0a 0d |.OwnerWi|ndow;...|
|00000070| 0a 76 61 72 20 66 6c 6f | 61 74 09 09 09 09 57 69 |.var flo|at....Wi|
|00000080| 6e 54 6f 70 3b 0d 0a 76 | 61 72 20 66 6c 6f 61 74 |nTop;..v|ar float|
|00000090| 09 09 09 09 57 69 6e 4c | 65 66 74 3b 0d 0a 76 61 |....WinL|eft;..va|
|000000a0| 72 20 66 6c 6f 61 74 09 | 09 09 09 57 69 6e 57 69 |r float.|...WinWi|
|000000b0| 64 74 68 3b 0d 0a 76 61 | 72 20 66 6c 6f 61 74 09 |dth;..va|r float.|
|000000c0| 09 09 09 57 69 6e 48 65 | 69 67 68 74 3b 0d 0a 0d |...WinHe|ight;...|
|000000d0| 0a 76 61 72 20 66 6c 6f | 61 74 09 09 09 09 4d 69 |.var flo|at....Mi|
|000000e0| 6e 69 6d 75 6d 57 69 64 | 74 68 3b 0d 0a 76 61 72 |nimumWid|th;..var|
|000000f0| 20 66 6c 6f 61 74 09 09 | 09 09 4d 69 6e 69 6d 75 | float..|..Minimu|
|00000100| 6d 48 65 69 67 68 74 3b | 0d 0a 0d 0a 0d 0a 76 61 |mHeight;|......va|
|00000110| 72 20 55 57 69 6e 64 6f | 77 4c 61 79 6f 75 74 52 |r UWindo|wLayoutR|
|00000120| 6f 77 09 52 6f 77 4c 69 | 73 74 3b 0d 0a 0d 0a 0d |ow.RowLi|st;.....|
|00000130| 0a 2f 2f 20 4d 65 74 68 | 6f 64 73 0d 0a 73 74 61 |.// Meth|ods..sta|
|00000140| 74 69 63 20 66 75 6e 63 | 74 69 6f 6e 20 55 57 69 |tic func|tion UWi|
|00000150| 6e 64 6f 77 4c 61 79 6f | 75 74 43 6f 6e 74 72 6f |ndowLayo|utContro|
|00000160| 6c 20 43 72 65 61 74 65 | 28 29 0d 0a 7b 0d 0a 09 |l Create|()..{...|
|00000170| 6c 6f 63 61 6c 20 55 57 | 69 6e 64 6f 77 4c 61 79 |local UW|indowLay|
|00000180| 6f 75 74 43 6f 6e 74 72 | 6f 6c 20 43 3b 0d 0a 0d |outContr|ol C;...|
|00000190| 0a 09 43 20 3d 20 6e 65 | 77 20 63 6c 61 73 73 27 |..C = ne|w class'|
|000001a0| 55 57 69 6e 64 6f 77 4c | 61 79 6f 75 74 43 6f 6e |UWindowL|ayoutCon|
|000001b0| 74 72 6f 6c 27 3b 0d 0a | 09 43 2e 52 6f 77 4c 69 |trol';..|.C.RowLi|
|000001c0| 73 74 20 3d 20 6e 65 77 | 20 63 6c 61 73 73 27 55 |st = new| class'U|
|000001d0| 57 69 6e 64 6f 77 4c 61 | 79 6f 75 74 52 6f 77 27 |WindowLa|youtRow'|
|000001e0| 3b 0d 0a 09 43 2e 52 6f | 77 4c 69 73 74 2e 53 65 |;...C.Ro|wList.Se|
|000001f0| 74 75 70 53 65 6e 74 69 | 6e 65 6c 28 29 3b 0d 0a |tupSenti|nel();..|
|00000200| 0d 0a 09 72 65 74 75 72 | 6e 20 43 3b 0d 0a 7d 0d |...retur|n C;..}.|
|00000210| 0a 0d 0a 0d 0a 2f 2a 0d | 0a 4c 61 79 6f 75 74 20 |...../*.|.Layout |
|00000220| 70 72 6f 63 65 64 75 72 | 65 0d 0a 0d 0a 31 2e 20 |procedur|e....1. |
|00000230| 20 43 61 6c 63 75 6c 61 | 74 65 20 6d 69 6e 69 6d | Calcula|te minim|
|00000240| 75 6d 20 28 64 65 73 69 | 72 65 64 29 20 72 6f 77 |um (desi|red) row|
|00000250| 20 68 65 69 67 68 74 20 | 62 79 20 61 73 6b 69 6e | height |by askin|
|00000260| 67 0d 0a 20 20 20 20 63 | 6f 6e 74 72 6f 6c 73 0d |g.. c|ontrols.|
|00000270| 0a 32 2e 20 20 46 6f 72 | 20 65 61 63 68 20 63 6f |.2. For| each co|
|00000280| 6c 75 6d 6e 2c 20 77 6f | 72 6b 20 6f 75 74 20 74 |lumn, wo|rk out t|
|00000290| 68 65 20 6d 69 6e 69 6d | 75 6d 20 28 64 65 73 69 |he minim|um (desi|
|000002a0| 72 65 64 29 20 77 69 64 | 74 68 20 66 6f 72 20 74 |red) wid|th for t|
|000002b0| 68 69 73 20 63 6f 6c 75 | 6d 6e 2e 0d 0a 20 20 20 |his colu|mn... |
|000002c0| 20 54 68 65 6e 20 61 64 | 64 20 74 68 65 73 65 20 | Then ad|d these |
|000002d0| 75 70 20 61 6e 64 20 0d | 0a 09 0d 0a 09 2e 0d 0a |up and .|........|
|000002e0| 32 2e 09 49 66 20 74 68 | 69 73 20 69 73 20 6c 65 |2..If th|is is le|
|000002f0| 73 73 20 74 68 61 6e 20 | 57 69 6e 48 65 69 67 68 |ss than |WinHeigh|
|00000300| 74 2c 20 73 70 61 63 65 | 20 63 65 6c 6c 73 20 74 |t, space| cells t|
|00000310| 6f 20 66 69 74 2e 0d 0a | 33 2e 09 49 66 20 74 68 |o fit...|3..If th|
|00000320| 69 73 20 69 73 20 6d 6f | 72 65 20 74 68 61 6e 20 |is is mo|re than |
|00000330| 57 69 6e 48 65 69 67 68 | 74 2c 20 61 64 6a 75 73 |WinHeigh|t, adjus|
|00000340| 74 20 70 61 72 65 6e 74 | 0d 0a 20 20 20 20 77 69 |t parent|.. wi|
|00000350| 6e 64 6f 77 27 73 20 44 | 65 73 69 72 65 64 57 69 |ndow's D|esiredWi|
|00000360| 64 74 68 2f 44 65 73 69 | 72 65 64 48 65 69 67 68 |dth/Desi|redHeigh|
|00000370| 74 20 76 61 72 69 61 62 | 6c 65 73 20 74 6f 20 63 |t variab|les to c|
|00000380| 61 75 73 65 20 73 63 72 | 6f 6c 6c 69 6e 67 2e 0d |ause scr|olling..|
|00000390| 0a 0d 0a 0d 0a 2a 2f 0d | 0a 0d 0a 66 75 6e 63 74 |.....*/.|...funct|
|000003a0| 69 6f 6e 20 50 65 72 66 | 6f 72 6d 4c 61 79 6f 75 |ion Perf|ormLayou|
|000003b0| 74 28 29 0d 0a 7b 0d 0a | 09 6c 6f 63 61 6c 20 55 |t()..{..|.local U|
|000003c0| 57 69 6e 64 6f 77 4c 61 | 79 6f 75 74 52 6f 77 20 |WindowLa|youtRow |
|000003d0| 52 3b 0d 0a 09 6c 6f 63 | 61 6c 20 66 6c 6f 61 74 |R;...loc|al float|
|000003e0| 20 54 6f 74 61 6c 57 69 | 64 74 68 3b 0d 0a 09 6c | TotalWi|dth;...l|
|000003f0| 6f 63 61 6c 20 66 6c 6f | 61 74 20 54 6f 74 61 6c |ocal flo|at Total|
|00000400| 48 65 69 67 68 74 3b 0d | 0a 0d 0a 09 66 6f 72 28 |Height;.|....for(|
|00000410| 52 20 3d 20 55 57 69 6e | 64 6f 77 4c 61 79 6f 75 |R = UWin|dowLayou|
|00000420| 74 52 6f 77 28 52 6f 77 | 4c 69 73 74 2e 4e 65 78 |tRow(Row|List.Nex|
|00000430| 74 29 3b 20 52 20 21 3d | 20 4e 6f 6e 65 3b 20 52 |t); R !=| None; R|
|00000440| 20 3d 20 55 57 69 6e 64 | 6f 77 4c 61 79 6f 75 74 | = UWind|owLayout|
|00000450| 52 6f 77 28 52 2e 4e 65 | 78 74 29 29 0d 0a 09 09 |Row(R.Ne|xt))....|
|00000460| 54 6f 74 61 6c 48 65 69 | 67 68 74 20 2b 3d 20 52 |TotalHei|ght += R|
|00000470| 2e 43 61 6c 63 4d 69 6e | 48 65 69 67 68 74 28 29 |.CalcMin|Height()|
|00000480| 3b 0d 0a 0d 0a 09 0d 0a | 09 09 54 6f 74 61 6c 57 |;.......|..TotalW|
|00000490| 69 64 74 68 20 2b 3d 20 | 52 2e 43 61 6c 63 4d 69 |idth += |R.CalcMi|
|000004a0| 6e 48 65 69 67 68 74 28 | 29 3b 0d 0a 0d 0a 0d 0a |nHeight(|);......|
|000004b0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 55 57 |}....fun|ction UW|
|000004c0| 69 6e 64 6f 77 4c 61 79 | 6f 75 74 52 6f 77 20 41 |indowLay|outRow A|
|000004d0| 64 64 52 6f 77 28 29 0d | 0a 7b 0d 0a 09 72 65 74 |ddRow().|.{...ret|
|000004e0| 75 72 6e 20 55 57 69 6e | 64 6f 77 4c 61 79 6f 75 |urn UWin|dowLayou|
|000004f0| 74 52 6f 77 28 52 6f 77 | 4c 69 73 74 2e 41 70 70 |tRow(Row|List.App|
|00000500| 65 6e 64 28 63 6c 61 73 | 73 27 55 57 69 6e 64 6f |end(clas|s'UWindo|
|00000510| 77 4c 61 79 6f 75 74 52 | 6f 77 27 29 29 3b 0d 0a |wLayoutR|ow'));..|
|00000520| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 55 57 |}....fun|ction UW|
|00000530| 69 6e 64 6f 77 4c 61 79 | 6f 75 74 43 65 6c 6c 20 |indowLay|outCell |
|00000540| 41 64 64 43 65 6c 6c 28 | 6f 70 74 69 6f 6e 61 6c |AddCell(|optional|
|00000550| 20 69 6e 74 20 43 6f 6c | 53 70 61 6e 2c 20 6f 70 | int Col|Span, op|
|00000560| 74 69 6f 6e 61 6c 20 69 | 6e 74 20 52 6f 77 53 70 |tional i|nt RowSp|
|00000570| 61 6e 29 0d 0a 7b 0d 0a | 09 72 65 74 75 72 6e 20 |an)..{..|.return |
|00000580| 52 6f 77 4c 69 73 74 2e | 41 64 64 43 65 6c 6c 28 |RowList.|AddCell(|
|00000590| 43 6f 6c 53 70 61 6e 2c | 20 52 6f 77 53 70 61 6e |ColSpan,| RowSpan|
|000005a0| 29 3b 0d 0a 7d 0d 0a 0d | 0a 00 |);..}...|.. |
+--------+-------------------------+-------------------------+--------+--------+