home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 79 / CDPowerplay79Disc1.iso / Demos / MobileForcesDemo_2002.05.07.exe / System / UWindow.u / UWindowWindow_UWindowPageControl_ScriptText.TextBuffer < prev    next >
Unknown  |  2002-05-07  |  4.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


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 | 70 46 63 6c 61 73 73 20 |........|pFclass |
|00000010| 55 57 69 6e 64 6f 77 50 | 61 67 65 43 6f 6e 74 72 |UWindowP|ageContr|
|00000020| 6f 6c 20 65 78 74 65 6e | 64 73 20 55 57 69 6e 64 |ol exten|ds UWind|
|00000030| 6f 77 54 61 62 43 6f 6e | 74 72 6f 6c 3b 0d 0a 0d |owTabCon|trol;...|
|00000040| 0a 66 75 6e 63 74 69 6f | 6e 20 52 65 73 6f 6c 75 |.functio|n Resolu|
|00000050| 74 69 6f 6e 43 68 61 6e | 67 65 64 28 66 6c 6f 61 |tionChan|ged(floa|
|00000060| 74 20 57 2c 20 66 6c 6f | 61 74 20 48 29 0d 0a 7b |t W, flo|at H)..{|
|00000070| 0d 0a 09 6c 6f 63 61 6c | 20 55 57 69 6e 64 6f 77 |...local| UWindow|
|00000080| 50 61 67 65 43 6f 6e 74 | 72 6f 6c 50 61 67 65 20 |PageCont|rolPage |
|00000090| 49 3b 0d 0a 0d 0a 09 66 | 6f 72 28 49 20 3d 20 55 |I;.....f|or(I = U|
|000000a0| 57 69 6e 64 6f 77 50 61 | 67 65 43 6f 6e 74 72 6f |WindowPa|geContro|
|000000b0| 6c 50 61 67 65 28 49 74 | 65 6d 73 2e 4e 65 78 74 |lPage(It|ems.Next|
|000000c0| 29 3b 20 49 20 21 3d 20 | 4e 6f 6e 65 3b 20 49 20 |); I != |None; I |
|000000d0| 3d 20 55 57 69 6e 64 6f | 77 50 61 67 65 43 6f 6e |= UWindo|wPageCon|
|000000e0| 74 72 6f 6c 50 61 67 65 | 28 49 2e 4e 65 78 74 29 |trolPage|(I.Next)|
|000000f0| 29 0d 0a 09 09 69 66 28 | 49 2e 50 61 67 65 20 21 |)....if(|I.Page !|
|00000100| 3d 20 4e 6f 6e 65 20 26 | 26 20 49 20 21 3d 20 53 |= None &|& I != S|
|00000110| 65 6c 65 63 74 65 64 54 | 61 62 20 29 0d 0a 09 09 |electedT|ab )....|
|00000120| 09 49 2e 50 61 67 65 2e | 52 65 73 6f 6c 75 74 69 |.I.Page.|Resoluti|
|00000130| 6f 6e 43 68 61 6e 67 65 | 64 28 57 2c 20 48 29 3b |onChange|d(W, H);|
|00000140| 0d 0a 09 0d 0a 09 69 66 | 28 53 65 6c 65 63 74 65 |......if|(Selecte|
|00000150| 64 54 61 62 20 21 3d 20 | 4e 6f 6e 65 29 0d 0a 09 |dTab != |None)...|
|00000160| 09 55 57 69 6e 64 6f 77 | 50 61 67 65 43 6f 6e 74 |.UWindow|PageCont|
|00000170| 72 6f 6c 50 61 67 65 28 | 53 65 6c 65 63 74 65 64 |rolPage(|Selected|
|00000180| 54 61 62 29 2e 50 61 67 | 65 2e 52 65 73 6f 6c 75 |Tab).Pag|e.Resolu|
|00000190| 74 69 6f 6e 43 68 61 6e | 67 65 64 28 57 2c 20 48 |tionChan|ged(W, H|
|000001a0| 29 3b 0d 0a 7d 0d 0a 0d | 0a 66 75 6e 63 74 69 6f |);..}...|.functio|
|000001b0| 6e 20 4e 6f 74 69 66 79 | 51 75 69 74 55 6e 72 65 |n Notify|QuitUnre|
|000001c0| 61 6c 28 29 0d 0a 7b 0d | 0a 09 6c 6f 63 61 6c 20 |al()..{.|..local |
|000001d0| 55 57 69 6e 64 6f 77 50 | 61 67 65 43 6f 6e 74 72 |UWindowP|ageContr|
|000001e0| 6f 6c 50 61 67 65 20 49 | 3b 0d 0a 0d 0a 09 66 6f |olPage I|;.....fo|
|000001f0| 72 28 49 20 3d 20 55 57 | 69 6e 64 6f 77 50 61 67 |r(I = UW|indowPag|
|00000200| 65 43 6f 6e 74 72 6f 6c | 50 61 67 65 28 49 74 65 |eControl|Page(Ite|
|00000210| 6d 73 2e 4e 65 78 74 29 | 3b 20 49 20 21 3d 20 4e |ms.Next)|; I != N|
|00000220| 6f 6e 65 3b 20 49 20 3d | 20 55 57 69 6e 64 6f 77 |one; I =| UWindow|
|00000230| 50 61 67 65 43 6f 6e 74 | 72 6f 6c 50 61 67 65 28 |PageCont|rolPage(|
|00000240| 49 2e 4e 65 78 74 29 29 | 0d 0a 09 09 69 66 28 49 |I.Next))|....if(I|
|00000250| 2e 50 61 67 65 20 21 3d | 20 4e 6f 6e 65 29 0d 0a |.Page !=| None)..|
|00000260| 09 09 09 49 2e 50 61 67 | 65 2e 4e 6f 74 69 66 79 |...I.Pag|e.Notify|
|00000270| 51 75 69 74 55 6e 72 65 | 61 6c 28 29 3b 0d 0a 7d |QuitUnre|al();..}|
|00000280| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 4e 6f 74 |....func|tion Not|
|00000290| 69 66 79 42 65 66 6f 72 | 65 4c 65 76 65 6c 43 68 |ifyBefor|eLevelCh|
|000002a0| 61 6e 67 65 28 29 0d 0a | 7b 0d 0a 09 6c 6f 63 61 |ange()..|{...loca|
|000002b0| 6c 20 55 57 69 6e 64 6f | 77 50 61 67 65 43 6f 6e |l UWindo|wPageCon|
|000002c0| 74 72 6f 6c 50 61 67 65 | 20 49 3b 0d 0a 0d 0a 09 |trolPage| I;.....|
|000002d0| 66 6f 72 28 49 20 3d 20 | 55 57 69 6e 64 6f 77 50 |for(I = |UWindowP|
|000002e0| 61 67 65 43 6f 6e 74 72 | 6f 6c 50 61 67 65 28 49 |ageContr|olPage(I|
|000002f0| 74 65 6d 73 2e 4e 65 78 | 74 29 3b 20 49 20 21 3d |tems.Nex|t); I !=|
|00000300| 20 4e 6f 6e 65 3b 20 49 | 20 3d 20 55 57 69 6e 64 | None; I| = UWind|
|00000310| 6f 77 50 61 67 65 43 6f | 6e 74 72 6f 6c 50 61 67 |owPageCo|ntrolPag|
|00000320| 65 28 49 2e 4e 65 78 74 | 29 29 0d 0a 09 09 69 66 |e(I.Next|))....if|
|00000330| 28 49 2e 50 61 67 65 20 | 21 3d 20 4e 6f 6e 65 29 |(I.Page |!= None)|
|00000340| 0d 0a 09 09 09 49 2e 50 | 61 67 65 2e 4e 6f 74 69 |.....I.P|age.Noti|
|00000350| 66 79 42 65 66 6f 72 65 | 4c 65 76 65 6c 43 68 61 |fyBefore|LevelCha|
|00000360| 6e 67 65 28 29 3b 0d 0a | 7d 0d 0a 0d 0a 66 75 6e |nge();..|}....fun|
|00000370| 63 74 69 6f 6e 20 4e 6f | 74 69 66 79 41 66 74 65 |ction No|tifyAfte|
|00000380| 72 4c 65 76 65 6c 43 68 | 61 6e 67 65 28 29 0d 0a |rLevelCh|ange()..|
|00000390| 7b 0d 0a 09 6c 6f 63 61 | 6c 20 55 57 69 6e 64 6f |{...loca|l UWindo|
|000003a0| 77 50 61 67 65 43 6f 6e | 74 72 6f 6c 50 61 67 65 |wPageCon|trolPage|
|000003b0| 20 49 3b 0d 0a 0d 0a 09 | 66 6f 72 28 49 20 3d 20 | I;.....|for(I = |
|000003c0| 55 57 69 6e 64 6f 77 50 | 61 67 65 43 6f 6e 74 72 |UWindowP|ageContr|
|000003d0| 6f 6c 50 61 67 65 28 49 | 74 65 6d 73 2e 4e 65 78 |olPage(I|tems.Nex|
|000003e0| 74 29 3b 20 49 20 21 3d | 20 4e 6f 6e 65 3b 20 49 |t); I !=| None; I|
|000003f0| 20 3d 20 55 57 69 6e 64 | 6f 77 50 61 67 65 43 6f | = UWind|owPageCo|
|00000400| 6e 74 72 6f 6c 50 61 67 | 65 28 49 2e 4e 65 78 74 |ntrolPag|e(I.Next|
|00000410| 29 29 0d 0a 09 09 69 66 | 28 49 2e 50 61 67 65 20 |))....if|(I.Page |
|00000420| 21 3d 20 4e 6f 6e 65 29 | 0d 0a 09 09 09 49 2e 50 |!= None)|.....I.P|
|00000430| 61 67 65 2e 4e 6f 74 69 | 66 79 41 66 74 65 72 4c |age.Noti|fyAfterL|
|00000440| 65 76 65 6c 43 68 61 6e | 67 65 28 29 3b 0d 0a 7d |evelChan|ge();..}|
|00000450| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 47 65 74 |....func|tion Get|
|00000460| 44 65 73 69 72 65 64 44 | 69 6d 65 6e 73 69 6f 6e |DesiredD|imension|
|00000470| 73 28 6f 75 74 20 66 6c | 6f 61 74 20 57 2c 20 6f |s(out fl|oat W, o|
|00000480| 75 74 20 66 6c 6f 61 74 | 20 48 29 0d 0a 7b 0d 0a |ut float| H)..{..|
|00000490| 09 6c 6f 63 61 6c 20 66 | 6c 6f 61 74 20 4d 61 78 |.local f|loat Max|
|000004a0| 57 2c 20 4d 61 78 48 2c | 20 54 57 2c 20 54 48 3b |W, MaxH,| TW, TH;|
|000004b0| 0d 0a 09 6c 6f 63 61 6c | 20 55 57 69 6e 64 6f 77 |...local| UWindow|
|000004c0| 50 61 67 65 43 6f 6e 74 | 72 6f 6c 50 61 67 65 20 |PageCont|rolPage |
|000004d0| 49 3b 0d 0a 09 0d 0a 09 | 4d 61 78 57 20 3d 20 30 |I;......|MaxW = 0|
|000004e0| 3b 0d 0a 09 4d 61 78 48 | 20 3d 20 30 3b 0d 0a 0d |;...MaxH| = 0;...|
|000004f0| 0a 09 66 6f 72 28 49 20 | 3d 20 55 57 69 6e 64 6f |..for(I |= UWindo|
|00000500| 77 50 61 67 65 43 6f 6e | 74 72 6f 6c 50 61 67 65 |wPageCon|trolPage|
|00000510| 28 49 74 65 6d 73 2e 4e | 65 78 74 29 3b 20 49 20 |(Items.N|ext); I |
|00000520| 21 3d 20 4e 6f 6e 65 3b | 20 49 20 3d 20 55 57 69 |!= None;| I = UWi|
|00000530| 6e 64 6f 77 50 61 67 65 | 43 6f 6e 74 72 6f 6c 50 |ndowPage|ControlP|
|00000540| 61 67 65 28 49 2e 4e 65 | 78 74 29 29 0d 0a 09 7b |age(I.Ne|xt))...{|
|00000550| 0d 0a 09 09 69 66 28 49 | 2e 50 61 67 65 20 21 3d |....if(I|.Page !=|
|00000560| 20 4e 6f 6e 65 29 0d 0a | 09 09 09 49 2e 50 61 67 | None)..|...I.Pag|
|00000570| 65 2e 47 65 74 44 65 73 | 69 72 65 64 44 69 6d 65 |e.GetDes|iredDime|
|00000580| 6e 73 69 6f 6e 73 28 54 | 57 2c 20 54 48 29 3b 0d |nsions(T|W, TH);.|
|00000590| 0a 0d 0a 09 09 69 66 28 | 54 57 20 3e 20 4d 61 78 |.....if(|TW > Max|
|000005a0| 57 29 20 4d 61 78 57 20 | 3d 20 54 57 3b 0d 0a 09 |W) MaxW |= TW;...|
|000005b0| 09 69 66 28 54 48 20 3e | 20 4d 61 78 48 29 20 4d |.if(TH >| MaxH) M|
|000005c0| 61 78 48 20 3d 20 54 48 | 3b 0d 0a 09 7d 0d 0a 09 |axH = TH|;...}...|
|000005d0| 57 20 3d 20 4d 61 78 57 | 3b 0d 0a 09 48 20 3d 20 |W = MaxW|;...H = |
|000005e0| 4d 61 78 48 20 2b 20 54 | 61 62 41 72 65 61 2e 57 |MaxH + T|abArea.W|
|000005f0| 69 6e 48 65 69 67 68 74 | 3b 0d 0a 7d 0d 0a 0d 0a |inHeight|;..}....|
|00000600| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 42 65 66 6f 72 |..functi|on Befor|
|00000610| 65 50 61 69 6e 74 28 43 | 61 6e 76 61 73 20 43 2c |ePaint(C|anvas C,|
|00000620| 20 66 6c 6f 61 74 20 58 | 2c 20 66 6c 6f 61 74 20 | float X|, float |
|00000630| 59 29 0d 0a 7b 0d 0a 09 | 6c 6f 63 61 6c 20 66 6c |Y)..{...|local fl|
|00000640| 6f 61 74 20 4f 6c 64 57 | 69 6e 48 65 69 67 68 74 |oat OldW|inHeight|
|00000650| 3b 0d 0a 09 6c 6f 63 61 | 6c 20 55 57 69 6e 64 6f |;...loca|l UWindo|
|00000660| 77 50 61 67 65 43 6f 6e | 74 72 6f 6c 50 61 67 65 |wPageCon|trolPage|
|00000670| 20 49 3b 0d 0a 0d 0a 09 | 4f 6c 64 57 69 6e 48 65 | I;.....|OldWinHe|
|00000680| 69 67 68 74 20 3d 20 57 | 69 6e 48 65 69 67 68 74 |ight = W|inHeight|
|00000690| 3b 0d 0a 09 53 75 70 65 | 72 2e 42 65 66 6f 72 65 |;...Supe|r.Before|
|000006a0| 50 61 69 6e 74 28 43 2c | 20 58 2c 20 59 29 3b 0d |Paint(C,| X, Y);.|
|000006b0| 0a 09 57 69 6e 48 65 69 | 67 68 74 20 3d 20 4f 6c |..WinHei|ght = Ol|
|000006c0| 64 57 69 6e 48 65 69 67 | 68 74 3b 0d 0a 0d 0a 09 |dWinHeig|ht;.....|
|000006d0| 66 6f 72 28 49 20 3d 20 | 55 57 69 6e 64 6f 77 50 |for(I = |UWindowP|
|000006e0| 61 67 65 43 6f 6e 74 72 | 6f 6c 50 61 67 65 28 49 |ageContr|olPage(I|
|000006f0| 74 65 6d 73 2e 4e 65 78 | 74 29 3b 20 49 20 21 3d |tems.Nex|t); I !=|
|00000700| 20 4e 6f 6e 65 3b 20 49 | 20 3d 20 55 57 69 6e 64 | None; I| = UWind|
|00000710| 6f 77 50 61 67 65 43 6f | 6e 74 72 6f 6c 50 61 67 |owPageCo|ntrolPag|
|00000720| 65 28 49 2e 4e 65 78 74 | 29 29 0d 0a 09 09 4c 6f |e(I.Next|))....Lo|
|00000730| 6f 6b 41 6e 64 46 65 65 | 6c 2e 54 61 62 5f 53 65 |okAndFee|l.Tab_Se|
|00000740| 74 54 61 62 50 61 67 65 | 53 69 7a 65 28 53 65 6c |tTabPage|Size(Sel|
|00000750| 66 2c 20 49 2e 50 61 67 | 65 29 3b 0d 0a 7d 0d 0a |f, I.Pag|e);..}..|
|00000760| 0d 0a 66 75 6e 63 74 69 | 6f 6e 20 50 61 69 6e 74 |..functi|on Paint|
|00000770| 28 43 61 6e 76 61 73 20 | 43 2c 20 66 6c 6f 61 74 |(Canvas |C, float|
|00000780| 20 58 2c 20 66 6c 6f 61 | 74 20 59 29 0d 0a 7b 0d | X, floa|t Y)..{.|
|00000790| 0a 09 53 75 70 65 72 2e | 50 61 69 6e 74 28 43 2c |..Super.|Paint(C,|
|000007a0| 20 58 2c 20 59 29 3b 0d | 0a 09 4c 6f 6f 6b 41 6e | X, Y);.|..LookAn|
|000007b0| 64 46 65 65 6c 2e 54 61 | 62 5f 44 72 61 77 54 61 |dFeel.Ta|b_DrawTa|
|000007c0| 62 50 61 67 65 41 72 65 | 61 28 53 65 6c 66 2c 20 |bPageAre|a(Self, |
|000007d0| 43 2c 20 55 57 69 6e 64 | 6f 77 50 61 67 65 43 6f |C, UWind|owPageCo|
|000007e0| 6e 74 72 6f 6c 50 61 67 | 65 28 53 65 6c 65 63 74 |ntrolPag|e(Select|
|000007f0| 65 64 54 61 62 29 2e 50 | 61 67 65 29 3b 0d 0a 7d |edTab).P|age);..}|
|00000800| 0d 0a 0d 0a 66 75 6e 63 | 74 69 6f 6e 20 55 57 69 |....func|tion UWi|
|00000810| 6e 64 6f 77 50 61 67 65 | 43 6f 6e 74 72 6f 6c 50 |ndowPage|ControlP|
|00000820| 61 67 65 20 41 64 64 50 | 61 67 65 28 73 74 72 69 |age AddP|age(stri|
|00000830| 6e 67 20 43 61 70 74 69 | 6f 6e 2c 20 63 6c 61 73 |ng Capti|on, clas|
|00000840| 73 3c 55 57 69 6e 64 6f | 77 50 61 67 65 57 69 6e |s<UWindo|wPageWin|
|00000850| 64 6f 77 3e 20 50 61 67 | 65 43 6c 61 73 73 2c 20 |dow> Pag|eClass, |
|00000860| 6f 70 74 69 6f 6e 61 6c | 20 6e 61 6d 65 20 4f 62 |optional| name Ob|
|00000870| 6a 65 63 74 4e 61 6d 65 | 29 0d 0a 7b 0d 0a 09 6c |jectName|)..{...l|
|00000880| 6f 63 61 6c 20 55 57 69 | 6e 64 6f 77 50 61 67 65 |ocal UWi|ndowPage|
|00000890| 43 6f 6e 74 72 6f 6c 50 | 61 67 65 20 50 3b 0d 0a |ControlP|age P;..|
|000008a0| 09 0d 0a 09 50 20 3d 20 | 55 57 69 6e 64 6f 77 50 |....P = |UWindowP|
|000008b0| 61 67 65 43 6f 6e 74 72 | 6f 6c 50 61 67 65 28 41 |ageContr|olPage(A|
|000008c0| 64 64 54 61 62 28 43 61 | 70 74 69 6f 6e 29 29 3b |ddTab(Ca|ption));|
|000008d0| 0d 0a 09 50 2e 50 61 67 | 65 20 3d 20 55 57 69 6e |...P.Pag|e = UWin|
|000008e0| 64 6f 77 50 61 67 65 57 | 69 6e 64 6f 77 28 43 72 |dowPageW|indow(Cr|
|000008f0| 65 61 74 65 57 69 6e 64 | 6f 77 28 50 61 67 65 43 |eateWind|ow(PageC|
|00000900| 6c 61 73 73 2c 20 30 2c | 20 30 2c 20 0d 0a 09 09 |lass, 0,| 0, ....|
|00000910| 09 09 57 69 6e 57 69 64 | 74 68 2c 20 57 69 6e 48 |..WinWid|th, WinH|
|00000920| 65 69 67 68 74 2c 2c 2c | 4f 62 6a 65 63 74 4e 61 |eight,,,|ObjectNa|
|00000930| 6d 65 29 29 3b 0d 0a 09 | 50 2e 50 61 67 65 2e 4f |me));...|P.Page.O|
|00000940| 77 6e 65 72 54 61 62 20 | 3d 20 50 3b 0d 0a 0d 0a |wnerTab |= P;....|
|00000950| 09 69 66 28 50 20 21 3d | 20 53 65 6c 65 63 74 65 |.if(P !=| Selecte|
|00000960| 64 54 61 62 29 20 0d 0a | 09 09 50 2e 50 61 67 65 |dTab) ..|..P.Page|
|00000970| 2e 48 69 64 65 57 69 6e | 64 6f 77 28 29 3b 0d 0a |.HideWin|dow();..|
|00000980| 09 65 6c 73 65 0d 0a 09 | 69 66 28 55 57 69 6e 64 |.else...|if(UWind|
|00000990| 6f 77 50 61 67 65 43 6f | 6e 74 72 6f 6c 50 61 67 |owPageCo|ntrolPag|
|000009a0| 65 28 53 65 6c 65 63 74 | 65 64 54 61 62 29 20 21 |e(Select|edTab) !|
|000009b0| 3d 20 4e 6f 6e 65 20 26 | 26 20 57 69 6e 64 6f 77 |= None &|& Window|
|000009c0| 49 73 56 69 73 69 62 6c | 65 28 29 29 0d 0a 09 7b |IsVisibl|e())...{|
|000009d0| 0d 0a 09 09 55 57 69 6e | 64 6f 77 50 61 67 65 43 |....UWin|dowPageC|
|000009e0| 6f 6e 74 72 6f 6c 50 61 | 67 65 28 53 65 6c 65 63 |ontrolPa|ge(Selec|
|000009f0| 74 65 64 54 61 62 29 2e | 50 61 67 65 2e 53 68 6f |tedTab).|Page.Sho|
|00000a00| 77 57 69 6e 64 6f 77 28 | 29 3b 0d 0a 09 09 55 57 |wWindow(|);....UW|
|00000a10| 69 6e 64 6f 77 50 61 67 | 65 43 6f 6e 74 72 6f 6c |indowPag|eControl|
|00000a20| 50 61 67 65 28 53 65 6c | 65 63 74 65 64 54 61 62 |Page(Sel|ectedTab|
|00000a30| 29 2e 50 61 67 65 2e 42 | 72 69 6e 67 54 6f 46 72 |).Page.B|ringToFr|
|00000a40| 6f 6e 74 28 29 3b 0d 0a | 09 7d 0d 0a 0d 0a 09 72 |ont();..|.}.....r|
|00000a50| 65 74 75 72 6e 20 50 3b | 0d 0a 7d 0d 0a 0d 0a 66 |eturn P;|..}....f|
|00000a60| 75 6e 63 74 69 6f 6e 20 | 55 57 69 6e 64 6f 77 50 |unction |UWindowP|
|00000a70| 61 67 65 43 6f 6e 74 72 | 6f 6c 50 61 67 65 20 49 |ageContr|olPage I|
|00000a80| 6e 73 65 72 74 50 61 67 | 65 28 55 57 69 6e 64 6f |nsertPag|e(UWindo|
|00000a90| 77 50 61 67 65 43 6f 6e | 74 72 6f 6c 50 61 67 65 |wPageCon|trolPage|
|00000aa0| 20 42 65 66 6f 72 65 50 | 61 67 65 2c 20 73 74 72 | BeforeP|age, str|
|00000ab0| 69 6e 67 20 43 61 70 74 | 69 6f 6e 2c 20 63 6c 61 |ing Capt|ion, cla|
|00000ac0| 73 73 3c 55 57 69 6e 64 | 6f 77 50 61 67 65 57 69 |ss<UWind|owPageWi|
|00000ad0| 6e 64 6f 77 3e 20 50 61 | 67 65 43 6c 61 73 73 2c |ndow> Pa|geClass,|
|00000ae0| 20 6f 70 74 69 6f 6e 61 | 6c 20 6e 61 6d 65 20 4f | optiona|l name O|
|00000af0| 62 6a 65 63 74 4e 61 6d | 65 29 0d 0a 7b 0d 0a 09 |bjectNam|e)..{...|
|00000b00| 6c 6f 63 61 6c 20 55 57 | 69 6e 64 6f 77 50 61 67 |local UW|indowPag|
|00000b10| 65 43 6f 6e 74 72 6f 6c | 50 61 67 65 20 50 3b 0d |eControl|Page P;.|
|00000b20| 0a 0d 0a 09 69 66 28 42 | 65 66 6f 72 65 50 61 67 |....if(B|eforePag|
|00000b30| 65 20 3d 3d 20 4e 6f 6e | 65 29 0d 0a 09 09 72 65 |e == Non|e)....re|
|00000b40| 74 75 72 6e 20 41 64 64 | 50 61 67 65 28 43 61 70 |turn Add|Page(Cap|
|00000b50| 74 69 6f 6e 2c 20 50 61 | 67 65 43 6c 61 73 73 29 |tion, Pa|geClass)|
|00000b60| 3b 0d 0a 0d 0a 09 50 20 | 3d 20 55 57 69 6e 64 6f |;.....P |= UWindo|
|00000b70| 77 50 61 67 65 43 6f 6e | 74 72 6f 6c 50 61 67 65 |wPageCon|trolPage|
|00000b80| 28 49 6e 73 65 72 74 54 | 61 62 28 42 65 66 6f 72 |(InsertT|ab(Befor|
|00000b90| 65 50 61 67 65 2c 20 43 | 61 70 74 69 6f 6e 29 29 |ePage, C|aption))|
|00000ba0| 3b 0d 0a 09 50 2e 50 61 | 67 65 20 3d 20 55 57 69 |;...P.Pa|ge = UWi|
|00000bb0| 6e 64 6f 77 50 61 67 65 | 57 69 6e 64 6f 77 28 43 |ndowPage|Window(C|
|00000bc0| 72 65 61 74 65 57 69 6e | 64 6f 77 28 50 61 67 65 |reateWin|dow(Page|
|00000bd0| 43 6c 61 73 73 2c 20 30 | 2c 20 0d 0a 09 09 09 09 |Class, 0|, ......|
|00000be0| 54 61 62 41 72 65 61 2e | 57 69 6e 48 65 69 67 68 |TabArea.|WinHeigh|
|00000bf0| 74 2d 28 4c 6f 6f 6b 41 | 6e 64 46 65 65 6c 2e 54 |t-(LookA|ndFeel.T|
|00000c00| 61 62 53 65 6c 65 63 74 | 65 64 4d 2e 48 2d 4c 6f |abSelect|edM.H-Lo|
|00000c10| 6f 6b 41 6e 64 46 65 65 | 6c 2e 54 61 62 55 6e 73 |okAndFee|l.TabUns|
|00000c20| 65 6c 65 63 74 65 64 4d | 2e 48 29 2c 20 0d 0a 09 |electedM|.H), ...|
|00000c30| 09 09 09 57 69 6e 57 69 | 64 74 68 2c 20 57 69 6e |...WinWi|dth, Win|
|00000c40| 48 65 69 67 68 74 2d 28 | 54 61 62 41 72 65 61 2e |Height-(|TabArea.|
|00000c50| 57 69 6e 48 65 69 67 68 | 74 2d 28 4c 6f 6f 6b 41 |WinHeigh|t-(LookA|
|00000c60| 6e 64 46 65 65 6c 2e 54 | 61 62 53 65 6c 65 63 74 |ndFeel.T|abSelect|
|00000c70| 65 64 4d 2e 48 2d 4c 6f | 6f 6b 41 6e 64 46 65 65 |edM.H-Lo|okAndFee|
|00000c80| 6c 2e 54 61 62 55 6e 73 | 65 6c 65 63 74 65 64 4d |l.TabUns|electedM|
|00000c90| 2e 48 29 29 2c 2c 2c 4f | 62 6a 65 63 74 4e 61 6d |.H)),,,O|bjectNam|
|00000ca0| 65 29 29 3b 0d 0a 09 50 | 2e 50 61 67 65 2e 4f 77 |e));...P|.Page.Ow|
|00000cb0| 6e 65 72 54 61 62 20 3d | 20 50 3b 0d 0a 0d 0a 09 |nerTab =| P;.....|
|00000cc0| 69 66 28 50 20 21 3d 20 | 53 65 6c 65 63 74 65 64 |if(P != |Selected|
|00000cd0| 54 61 62 29 20 0d 0a 09 | 09 50 2e 50 61 67 65 2e |Tab) ...|.P.Page.|
|00000ce0| 48 69 64 65 57 69 6e 64 | 6f 77 28 29 3b 0d 0a 09 |HideWind|ow();...|
|00000cf0| 65 6c 73 65 0d 0a 09 69 | 66 28 55 57 69 6e 64 6f |else...i|f(UWindo|
|00000d00| 77 50 61 67 65 43 6f 6e | 74 72 6f 6c 50 61 67 65 |wPageCon|trolPage|
|00000d10| 28 53 65 6c 65 63 74 65 | 64 54 61 62 29 20 21 3d |(Selecte|dTab) !=|
|00000d20| 20 4e 6f 6e 65 20 26 26 | 20 57 69 6e 64 6f 77 49 | None &&| WindowI|
|00000d30| 73 56 69 73 69 62 6c 65 | 28 29 29 0d 0a 09 7b 0d |sVisible|())...{.|
|00000d40| 0a 09 09 55 57 69 6e 64 | 6f 77 50 61 67 65 43 6f |...UWind|owPageCo|
|00000d50| 6e 74 72 6f 6c 50 61 67 | 65 28 53 65 6c 65 63 74 |ntrolPag|e(Select|
|00000d60| 65 64 54 61 62 29 2e 50 | 61 67 65 2e 53 68 6f 77 |edTab).P|age.Show|
|00000d70| 57 69 6e 64 6f 77 28 29 | 3b 0d 0a 09 09 55 57 69 |Window()|;....UWi|
|00000d80| 6e 64 6f 77 50 61 67 65 | 43 6f 6e 74 72 6f 6c 50 |ndowPage|ControlP|
|00000d90| 61 67 65 28 53 65 6c 65 | 63 74 65 64 54 61 62 29 |age(Sele|ctedTab)|
|00000da0| 2e 50 61 67 65 2e 42 72 | 69 6e 67 54 6f 46 72 6f |.Page.Br|ingToFro|
|00000db0| 6e 74 28 29 3b 0d 0a 09 | 7d 0d 0a 0d 0a 09 72 65 |nt();...|}.....re|
|00000dc0| 74 75 72 6e 20 50 3b 0d | 0a 7d 0d 0a 0d 0a 66 75 |turn P;.|.}....fu|
|00000dd0| 6e 63 74 69 6f 6e 20 55 | 57 69 6e 64 6f 77 50 61 |nction U|WindowPa|
|00000de0| 67 65 43 6f 6e 74 72 6f | 6c 50 61 67 65 20 47 65 |geContro|lPage Ge|
|00000df0| 74 50 61 67 65 28 73 74 | 72 69 6e 67 20 43 61 70 |tPage(st|ring Cap|
|00000e00| 74 69 6f 6e 29 0d 0a 7b | 0d 0a 09 72 65 74 75 72 |tion)..{|...retur|
|00000e10| 6e 20 55 57 69 6e 64 6f | 77 50 61 67 65 43 6f 6e |n UWindo|wPageCon|
|00000e20| 74 72 6f 6c 50 61 67 65 | 28 47 65 74 54 61 62 28 |trolPage|(GetTab(|
|00000e30| 43 61 70 74 69 6f 6e 29 | 29 3b 0d 0a 7d 0d 0a 0d |Caption)|);..}...|
|00000e40| 0a 66 75 6e 63 74 69 6f | 6e 20 44 65 6c 65 74 65 |.functio|n Delete|
|00000e50| 50 61 67 65 28 55 57 69 | 6e 64 6f 77 50 61 67 65 |Page(UWi|ndowPage|
|00000e60| 43 6f 6e 74 72 6f 6c 50 | 61 67 65 20 50 29 0d 0a |ControlP|age P)..|
|00000e70| 7b 0d 0a 09 50 2e 50 61 | 67 65 2e 43 6c 6f 73 65 |{...P.Pa|ge.Close|
|00000e80| 28 54 72 75 65 29 3b 0d | 0a 09 50 2e 50 61 67 65 |(True);.|..P.Page|
|00000e90| 2e 48 69 64 65 57 69 6e | 64 6f 77 28 29 3b 0d 0a |.HideWin|dow();..|
|00000ea0| 09 44 65 6c 65 74 65 54 | 61 62 28 50 29 3b 0d 0a |.DeleteT|ab(P);..|
|00000eb0| 7d 0d 0a 0d 0a 66 75 6e | 63 74 69 6f 6e 20 43 6c |}....fun|ction Cl|
|00000ec0| 6f 73 65 28 6f 70 74 69 | 6f 6e 61 6c 20 62 6f 6f |ose(opti|onal boo|
|00000ed0| 6c 20 62 42 79 50 61 72 | 65 6e 74 29 0d 0a 7b 0d |l bByPar|ent)..{.|
|00000ee0| 0a 09 6c 6f 63 61 6c 20 | 55 57 69 6e 64 6f 77 50 |..local |UWindowP|
|00000ef0| 61 67 65 43 6f 6e 74 72 | 6f 6c 50 61 67 65 20 49 |ageContr|olPage I|
|00000f00| 3b 0d 0a 0d 0a 09 66 6f | 72 28 49 20 3d 20 55 57 |;.....fo|r(I = UW|
|00000f10| 69 6e 64 6f 77 50 61 67 | 65 43 6f 6e 74 72 6f 6c |indowPag|eControl|
|00000f20| 50 61 67 65 28 49 74 65 | 6d 73 2e 4e 65 78 74 29 |Page(Ite|ms.Next)|
|00000f30| 3b 20 49 20 21 3d 20 4e | 6f 6e 65 3b 20 49 20 3d |; I != N|one; I =|
|00000f40| 20 55 57 69 6e 64 6f 77 | 50 61 67 65 43 6f 6e 74 | UWindow|PageCont|
|00000f50| 72 6f 6c 50 61 67 65 28 | 49 2e 4e 65 78 74 29 29 |rolPage(|I.Next))|
|00000f60| 0d 0a 09 09 69 66 28 49 | 2e 50 61 67 65 20 21 3d |....if(I|.Page !=|
|00000f70| 20 4e 6f 6e 65 29 0d 0a | 09 09 09 49 2e 50 61 67 | None)..|...I.Pag|
|00000f80| 65 2e 43 6c 6f 73 65 28 | 54 72 75 65 29 3b 0d 0a |e.Close(|True);..|
|00000f90| 0d 0a 09 53 75 70 65 72 | 2e 43 6c 6f 73 65 28 62 |...Super|.Close(b|
|00000fa0| 42 79 50 61 72 65 6e 74 | 29 3b 0d 0a 7d 0d 0a 0d |ByParent|);..}...|
|00000fb0| 0a 66 75 6e 63 74 69 6f | 6e 20 47 6f 74 6f 54 61 |.functio|n GotoTa|
|00000fc0| 62 28 55 57 69 6e 64 6f | 77 54 61 62 43 6f 6e 74 |b(UWindo|wTabCont|
|00000fd0| 72 6f 6c 49 74 65 6d 20 | 4e 65 77 53 65 6c 65 63 |rolItem |NewSelec|
|00000fe0| 74 65 64 2c 20 6f 70 74 | 69 6f 6e 61 6c 20 62 6f |ted, opt|ional bo|
|00000ff0| 6f 6c 20 62 42 79 55 73 | 65 72 29 0d 0a 7b 0d 0a |ol bByUs|er)..{..|
|00001000| 09 6c 6f 63 61 6c 20 55 | 57 69 6e 64 6f 77 50 61 |.local U|WindowPa|
|00001010| 67 65 43 6f 6e 74 72 6f | 6c 50 61 67 65 20 49 3b |geContro|lPage I;|
|00001020| 0d 0a 0d 0a 09 53 75 70 | 65 72 2e 47 6f 74 6f 54 |.....Sup|er.GotoT|
|00001030| 61 62 28 4e 65 77 53 65 | 6c 65 63 74 65 64 2c 20 |ab(NewSe|lected, |
|00001040| 62 42 79 55 73 65 72 29 | 3b 0d 0a 0d 0a 09 66 6f |bByUser)|;.....fo|
|00001050| 72 28 49 20 3d 20 55 57 | 69 6e 64 6f 77 50 61 67 |r(I = UW|indowPag|
|00001060| 65 43 6f 6e 74 72 6f 6c | 50 61 67 65 28 49 74 65 |eControl|Page(Ite|
|00001070| 6d 73 2e 4e 65 78 74 29 | 3b 49 20 21 3d 20 4e 6f |ms.Next)|;I != No|
|00001080| 6e 65 3b 49 20 3d 20 55 | 57 69 6e 64 6f 77 50 61 |ne;I = U|WindowPa|
|00001090| 67 65 43 6f 6e 74 72 6f | 6c 50 61 67 65 28 49 2e |geContro|lPage(I.|
|000010a0| 4e 65 78 74 29 29 0d 0a | 09 7b 0d 0a 09 09 69 66 |Next))..|.{....if|
|000010b0| 28 49 20 21 3d 20 4e 65 | 77 53 65 6c 65 63 74 65 |(I != Ne|wSelecte|
|000010c0| 64 29 0d 0a 09 09 09 49 | 2e 50 61 67 65 2e 48 69 |d).....I|.Page.Hi|
|000010d0| 64 65 57 69 6e 64 6f 77 | 28 29 3b 09 09 09 0d 0a |deWindow|();.....|
|000010e0| 09 7d 0d 0a 0d 0a 09 69 | 66 28 55 57 69 6e 64 6f |.}.....i|f(UWindo|
|000010f0| 77 50 61 67 65 43 6f 6e | 74 72 6f 6c 50 61 67 65 |wPageCon|trolPage|
|00001100| 28 4e 65 77 53 65 6c 65 | 63 74 65 64 29 20 21 3d |(NewSele|cted) !=|
|00001110| 20 4e 6f 6e 65 29 0d 0a | 09 09 55 57 69 6e 64 6f | None)..|..UWindo|
|00001120| 77 50 61 67 65 43 6f 6e | 74 72 6f 6c 50 61 67 65 |wPageCon|trolPage|
|00001130| 28 4e 65 77 53 65 6c 65 | 63 74 65 64 29 2e 50 61 |(NewSele|cted).Pa|
|00001140| 67 65 2e 53 68 6f 77 57 | 69 6e 64 6f 77 28 29 3b |ge.ShowW|indow();|
|00001150| 0d 0a 7d 0d 0a 0d 0a 66 | 75 6e 63 74 69 6f 6e 20 |..}....f|unction |
|00001160| 55 57 69 6e 64 6f 77 50 | 61 67 65 43 6f 6e 74 72 |UWindowP|ageContr|
|00001170| 6f 6c 50 61 67 65 20 46 | 69 72 73 74 50 61 67 65 |olPage F|irstPage|
|00001180| 28 29 0d 0a 7b 0d 0a 09 | 72 65 74 75 72 6e 20 55 |()..{...|return U|
|00001190| 57 69 6e 64 6f 77 50 61 | 67 65 43 6f 6e 74 72 6f |WindowPa|geContro|
|000011a0| 6c 50 61 67 65 28 49 74 | 65 6d 73 2e 4e 65 78 74 |lPage(It|ems.Next|
|000011b0| 29 3b 0d 0a 7d 0d 0a 0d | 0a 00 |);..}...|.. |
+--------+-------------------------+-------------------------+--------+--------+