home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: LaTeX Document
(document/latex).
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| LaTeX Document (document/latex)
| magic
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| LaTeX document text
| default
| |
99%
| file
| LaTeX document, ASCII text
| default
| |
100%
| checkBytes
| Printable ASCII
| default
| |
100%
| perlTextCheck
| Likely Text (Perl)
| default
| |
100%
| siegfried
| fmt/281 LaTeX (Subdocument)
| default
| |
100%
| detectItEasy
| Format: plain text[LF]
| default (weak)
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 5c 73 65 63 74 69 6f 6e | 7b 4e 6f 74 69 66 79 2e |\section|{Notify.|
|00000010| 6d 75 69 7d 0a 0a 4e 6f | 74 69 66 79 20 63 6c 61 |mui}..No|tify cla|
|00000020| 73 73 20 69 73 20 73 75 | 70 65 72 63 6c 61 73 73 |ss is su|perclass|
|00000030| 20 6f 66 20 61 6c 6c 20 | 6f 74 68 65 72 20 4d 55 | of all |other MU|
|00000040| 49 20 63 6c 61 73 73 65 | 73 2e 0a 49 74 27 73 20 |I classe|s..It's |
|00000050| 6d 61 69 6e 20 70 75 72 | 70 6f 73 65 20 69 73 20 |main pur|pose is |
|00000060| 74 6f 20 68 61 6e 64 6c | 65 20 4d 55 49 27 73 20 |to handl|e MUI's |
|00000070| 6e 6f 74 69 66 69 63 61 | 74 69 6f 6e 0a 6d 65 63 |notifica|tion.mec|
|00000080| 68 61 6e 69 73 6d 2c 20 | 62 75 74 20 69 74 20 61 |hanism, |but it a|
|00000090| 6c 73 6f 20 63 6f 6e 74 | 61 69 6e 73 20 73 6f 6d |lso cont|ains som|
|000000a0| 65 20 6f 74 68 65 72 20 | 6d 65 74 68 6f 64 73 0a |e other |methods.|
|000000b0| 61 6e 64 20 61 74 74 72 | 69 62 75 74 65 73 20 75 |and attr|ibutes u|
|000000c0| 73 65 66 75 6c 20 66 6f | 72 20 65 76 65 72 79 20 |seful fo|r every |
|000000d0| 6f 62 6a 65 63 74 2e 0a | 0a 5c 73 75 62 73 65 63 |object..|.\subsec|
|000000e0| 74 69 6f 6e 5b 4d 55 49 | 4d 5c 5f 43 61 6c 6c 48 |tion[MUI|M\_CallH|
|000000f0| 6f 6f 6b 5d 7b 4d 55 49 | 4d 5c 5f 43 61 6c 6c 48 |ook]{MUI|M\_CallH|
|00000100| 6f 6f 6b 20 28 56 34 29 | 7d 0a 0a 5c 73 75 62 73 |ook (V4)|}..\subs|
|00000110| 75 62 73 65 63 74 69 6f | 6e 2a 7b 53 59 4e 4f 50 |ubsectio|n*{SYNOP|
|00000120| 53 49 53 7d 0a 44 6f 4d | 65 74 68 6f 64 28 6f 62 |SIS}.DoM|ethod(ob|
|00000130| 6a 2c 4d 55 49 4d 5c 5f | 43 61 6c 6c 48 6f 6f 6b |j,MUIM\_|CallHook|
|00000140| 2c 73 74 72 75 63 74 20 | 48 6f 6f 6b 20 24 5c 61 |,struct |Hook $\a|
|00000150| 73 74 24 48 6f 6f 6b 2c | 20 55 4c 4f 4e 47 20 70 |st$Hook,| ULONG p|
|00000160| 61 72 61 6d 31 2c 20 2f | 24 5c 61 73 74 24 20 2e |aram1, /|$\ast$ .|
|00000170| 2e 2e 20 24 5c 61 73 74 | 24 2f 29 3b 0a 0a 5c 73 |.. $\ast|$/);..\s|
|00000180| 75 62 73 75 62 73 65 63 | 74 69 6f 6e 2a 7b 46 55 |ubsubsec|tion*{FU|
|00000190| 4e 43 54 49 4f 4e 7d 0a | 43 61 6c 6c 20 61 20 73 |NCTION}.|Call a s|
|000001a0| 74 61 6e 64 61 72 64 20 | 61 6d 69 67 61 20 63 61 |tandard |amiga ca|
|000001b0| 6c 6c 62 61 63 6b 20 68 | 6f 6f 6b 2c 20 64 65 66 |llback h|ook, def|
|000001c0| 69 6e 65 64 20 62 79 20 | 61 20 48 6f 6f 6b 0a 73 |ined by |a Hook.s|
|000001d0| 74 72 75 63 74 75 72 65 | 2e 20 54 6f 67 65 74 68 |tructure|. Togeth|
|000001e0| 65 72 20 77 69 74 68 20 | 4d 55 49 4d 5c 5f 4e 6f |er with |MUIM\_No|
|000001f0| 74 69 66 79 2c 20 79 6f | 75 20 63 61 6e 20 65 61 |tify, yo|u can ea|
|00000200| 73 69 6c 79 0a 62 69 6e | 64 20 68 6f 6f 6b 73 20 |sily.bin|d hooks |
|00000210| 74 6f 20 62 75 74 74 6f | 6e 73 2c 20 79 6f 75 72 |to butto|ns, your|
|00000220| 20 68 6f 6f 6b 20 77 69 | 6c 6c 20 62 65 20 63 61 | hook wi|ll be ca|
|00000230| 6c 6c 65 64 20 77 68 65 | 6e 0a 74 68 65 20 62 75 |lled whe|n.the bu|
|00000240| 74 74 6f 6e 20 69 73 20 | 70 72 65 73 73 65 64 2e |tton is |pressed.|
|00000250| 0a 0a 54 68 65 20 68 6f | 6f 6b 20 77 69 6c 6c 20 |..The ho|ok will |
|00000260| 62 65 20 63 61 6c 6c 65 | 64 20 77 69 74 68 20 61 |be calle|d with a|
|00000270| 20 70 6f 69 6e 74 65 72 | 20 74 6f 20 74 68 65 20 | pointer| to the |
|00000280| 68 6f 6f 6b 0a 73 74 72 | 75 63 74 75 72 65 20 69 |hook.str|ucture i|
|00000290| 6e 20 61 30 2c 20 61 20 | 70 6f 69 6e 74 65 72 20 |n a0, a |pointer |
|000002a0| 74 6f 20 74 68 65 20 63 | 61 6c 6c 69 6e 67 20 6f |to the c|alling o|
|000002b0| 62 6a 65 63 74 20 69 6e | 20 61 32 0a 61 6e 64 20 |bject in| a2.and |
|000002c0| 61 20 70 6f 69 6e 74 65 | 72 20 74 6f 20 74 68 65 |a pointe|r to the|
|000002d0| 20 66 69 72 73 74 20 70 | 61 72 61 6d 65 74 65 72 | first p|arameter|
|000002e0| 20 69 6e 20 61 31 2e 0a | 0a 5c 73 75 62 73 75 62 | in a1..|.\subsub|
|000002f0| 73 65 63 74 69 6f 6e 2a | 7b 49 4e 50 55 54 53 7d |section*|{INPUTS}|
|00000300| 0a 5c 62 65 67 69 6e 7b | 64 65 73 63 72 69 70 74 |.\begin{|descript|
|00000310| 69 6f 6e 7d 0a 5c 69 74 | 65 6d 5b 48 6f 6f 6b 5d |ion}.\it|em[Hook]|
|00000320| 20 20 20 20 20 20 20 70 | 6f 69 6e 74 65 72 20 74 | p|ointer t|
|00000330| 6f 20 61 20 73 74 72 75 | 63 74 20 48 6f 6f 6b 2e |o a stru|ct Hook.|
|00000340| 0a 5c 69 74 65 6d 5b 70 | 61 72 61 6d 31 2c 2e 2e |.\item[p|aram1,..|
|00000350| 2e 5d 20 7a 65 72 6f 20 | 6f 72 20 6d 6f 72 65 20 |.] zero |or more |
|00000360| 70 61 72 61 6d 65 74 65 | 72 73 2e 20 54 68 65 20 |paramete|rs. The |
|00000370| 68 6f 6f 6b 20 66 75 6e | 63 74 69 6f 6e 20 77 69 |hook fun|ction wi|
|00000380| 6c 6c 0a 72 65 63 65 69 | 76 65 20 61 20 70 6f 69 |ll.recei|ve a poi|
|00000390| 6e 74 65 72 20 74 6f 20 | 74 68 65 20 66 69 72 73 |nter to |the firs|
|000003a0| 74 20 70 61 72 61 6d 65 | 74 65 72 20 69 6e 0a 72 |t parame|ter in.r|
|000003b0| 65 67 69 73 74 65 72 20 | 61 31 2e 0a 5c 65 6e 64 |egister |a1..\end|
|000003c0| 7b 64 65 73 63 72 69 70 | 74 69 6f 6e 7d 0a 0a 5c |{descrip|tion}..\|
|000003d0| 73 75 62 73 75 62 73 65 | 63 74 69 6f 6e 2a 7b 45 |subsubse|ction*{E|
|000003e0| 58 41 4d 50 4c 45 7d 0a | 5c 73 6d 61 6c 6c 0a 5c |XAMPLE}.|\small.\|
|000003f0| 62 65 67 69 6e 7b 76 65 | 72 62 61 74 69 6d 7d 0a |begin{ve|rbatim}.|
|00000400| 0a 73 74 61 6e 64 61 6c | 6f 6e 65 3a 0a 0a 44 6f |.standal|one:..Do|
|00000410| 4d 65 74 68 6f 64 28 6f | 62 6a 2c 4d 55 49 4d 5f |Method(o|bj,MUIM_|
|00000420| 43 61 6c 6c 48 6f 6f 6b | 2c 26 68 6f 6f 6b 73 74 |CallHook|,&hookst|
|00000430| 72 75 63 74 2c 31 33 2c | 34 32 2c 22 66 6f 6f 62 |ruct,13,|42,"foob|
|00000440| 61 72 22 2c 22 62 61 72 | 66 6f 6f 22 29 3b 0a 0a |ar","bar|foo");..|
|00000450| 77 69 74 68 69 6e 20 61 | 20 6e 6f 74 69 66 69 63 |within a| notific|
|00000460| 61 74 69 6f 6e 20 73 74 | 61 74 65 6d 65 6e 74 3a |ation st|atement:|
|00000470| 0a 0a 44 6f 4d 65 74 68 | 6f 64 28 70 72 6f 70 6f |..DoMeth|od(propo|
|00000480| 62 6a 2c 4d 55 49 4d 5f | 4e 6f 74 69 66 79 2c 4d |bj,MUIM_|Notify,M|
|00000490| 55 49 41 5f 50 72 6f 70 | 5f 46 69 72 73 74 2c 4d |UIA_Prop|_First,M|
|000004a0| 55 49 56 5f 45 76 65 72 | 79 54 69 6d 65 2c 0a 20 |UIV_Ever|yTime,. |
|000004b0| 20 20 20 20 20 20 20 20 | 70 72 6f 70 6f 62 6a 2c | |propobj,|
|000004c0| 33 2c 4d 55 49 4d 5f 43 | 61 6c 6c 48 6f 6f 6b 2c |3,MUIM_C|allHook,|
|000004d0| 26 70 72 6f 70 68 6f 6f | 6b 2c 4d 55 49 56 5f 54 |&prophoo|k,MUIV_T|
|000004e0| 72 69 67 67 65 72 56 61 | 6c 75 65 29 3b 0a 0a 70 |riggerVa|lue);..p|
|000004f0| 72 6f 70 68 6f 6f 6b 20 | 77 69 6c 6c 20 62 65 20 |rophook |will be |
|00000500| 63 61 6c 6c 65 64 20 65 | 76 65 72 79 20 74 69 6d |called e|very tim|
|00000510| 65 20 74 68 65 20 6b 6e | 6f 62 20 69 73 20 6d 6f |e the kn|ob is mo|
|00000520| 76 69 6e 67 20 61 6e 64 | 20 67 65 74 73 0a 61 20 |ving and| gets.a |
|00000530| 70 6f 69 6e 74 65 72 20 | 74 6f 20 74 68 65 20 6b |pointer |to the k|
|00000540| 6e 6f 62 73 20 63 75 72 | 72 65 6e 74 20 6c 65 76 |nobs cur|rent lev|
|00000550| 65 6c 20 69 6e 20 61 31 | 2e 0a 0a 5c 65 6e 64 7b |el in a1|...\end{|
|00000560| 76 65 72 62 61 74 69 6d | 7d 0a 5c 6e 6f 72 6d 61 |verbatim|}.\norma|
|00000570| 6c 73 69 7a 65 0a 5c 73 | 75 62 73 65 63 74 69 6f |lsize.\s|ubsectio|
|00000580| 6e 5b 4d 55 49 4d 5c 5f | 46 69 6e 64 55 44 61 74 |n[MUIM\_|FindUDat|
|00000590| 61 5d 7b 4d 55 49 4d 5c | 5f 46 69 6e 64 55 44 61 |a]{MUIM\|_FindUDa|
|000005a0| 74 61 20 28 56 38 29 7d | 0a 0a 5c 73 75 62 73 75 |ta (V8)}|..\subsu|
|000005b0| 62 73 65 63 74 69 6f 6e | 2a 7b 53 59 4e 4f 50 53 |bsection|*{SYNOPS|
|000005c0| 49 53 7d 0a 44 6f 4d 65 | 74 68 6f 64 28 6f 62 6a |IS}.DoMe|thod(obj|
|000005d0| 2c 4d 55 49 4d 5c 5f 46 | 69 6e 64 55 44 61 74 61 |,MUIM\_F|indUData|
|000005e0| 2c 55 4c 4f 4e 47 20 75 | 64 61 74 61 29 3b 0a 0a |,ULONG u|data);..|
|000005f0| 5c 73 75 62 73 75 62 73 | 65 63 74 69 6f 6e 2a 7b |\subsubs|ection*{|
|00000600| 46 55 4e 43 54 49 4f 4e | 7d 0a 54 68 69 73 20 6d |FUNCTION|}.This m|
|00000610| 65 74 68 6f 64 20 74 65 | 73 74 73 20 69 66 20 74 |ethod te|sts if t|
|00000620| 68 65 20 4d 55 49 41 5c | 5f 55 73 65 72 44 61 74 |he MUIA\|_UserDat|
|00000630| 61 20 6f 66 20 74 68 65 | 20 6f 62 6a 65 63 74 0a |a of the| object.|
|00000640| 63 6f 6e 74 61 69 6e 73 | 20 74 68 65 20 67 69 76 |contains| the giv|
|00000650| 65 6e 20 5c 66 6c 71 20 | 75 64 61 74 61 5c 66 72 |en \flq |udata\fr|
|00000660| 71 5c 20 20 61 6e 64 20 | 72 65 74 75 72 6e 73 20 |q\ and |returns |
|00000670| 74 68 65 20 6f 62 6a 65 | 63 74 0a 70 6f 69 6e 74 |the obje|ct.point|
|00000680| 65 72 20 69 6e 20 74 68 | 69 73 20 63 61 73 65 2e |er in th|is case.|
|00000690| 0a 0a 41 6c 74 68 6f 75 | 67 68 20 74 68 69 73 20 |..Althou|gh this |
|000006a0| 69 73 20 6e 6f 74 20 76 | 65 72 79 20 75 73 65 66 |is not v|ery usef|
|000006b0| 75 6c 20 66 6f 72 20 73 | 69 6e 67 6c 65 20 6f 62 |ul for s|ingle ob|
|000006c0| 6a 65 63 74 73 2c 0a 70 | 65 72 66 6f 72 6d 69 6e |jects,.p|erformin|
|000006d0| 67 20 74 68 69 73 20 6d | 65 74 68 6f 64 20 6f 6e |g this m|ethod on|
|000006e0| 20 6f 62 6a 65 63 74 73 | 20 74 68 61 74 20 68 61 | objects| that ha|
|000006f0| 6e 64 6c 65 20 63 68 69 | 6c 64 72 65 6e 0a 63 61 |ndle chi|ldren.ca|
|00000700| 6e 20 62 65 63 6f 6d 65 | 20 76 65 72 79 20 68 61 |n become| very ha|
|00000710| 6e 64 79 2e 20 49 6e 20 | 74 68 69 73 20 63 61 73 |ndy. In |this cas|
|00000720| 65 2c 20 61 6c 6c 20 74 | 68 65 20 63 68 69 6c 64 |e, all t|he child|
|00000730| 72 65 6e 0a 28 61 6e 79 | 20 6d 61 79 62 65 20 74 |ren.(any| maybe t|
|00000740| 68 65 69 72 20 63 68 69 | 6c 64 72 65 6e 29 20 61 |heir chi|ldren) a|
|00000750| 72 65 20 74 65 73 74 65 | 64 20 61 67 61 69 6e 73 |re teste|d agains|
|00000760| 74 20 5c 66 6c 71 20 75 | 64 61 74 61 5c 66 72 71 |t \flq u|data\frq|
|00000770| 20 0a 61 6e 64 20 74 68 | 65 20 66 69 72 73 74 20 | .and th|e first |
|00000780| 6d 61 74 63 68 69 6e 67 | 20 6f 62 6a 65 63 74 20 |matching| object |
|00000790| 69 73 20 72 65 74 75 72 | 6e 65 64 2e 0a 0a 54 68 |is retur|ned...Th|
|000007a0| 69 73 20 6d 65 74 68 6f | 64 20 69 73 20 65 73 70 |is metho|d is esp|
|000007b0| 65 63 69 61 6c 6c 79 20 | 75 73 65 66 75 6c 20 69 |ecially |useful i|
|000007c0| 66 20 79 6f 75 20 63 72 | 65 61 74 65 64 20 79 6f |f you cr|eated yo|
|000007d0| 75 72 0a 6d 65 6e 75 20 | 74 72 65 65 20 77 69 74 |ur.menu |tree wit|
|000007e0| 68 20 61 20 4e 65 77 4d | 65 6e 75 20 73 74 72 75 |h a NewM|enu stru|
|000007f0| 63 74 75 72 65 20 61 6e | 64 20 79 6f 75 20 77 61 |cture an|d you wa|
|00000800| 6e 74 20 74 6f 0a 66 69 | 6e 64 20 74 68 65 20 6f |nt to.fi|nd the o|
|00000810| 62 6a 65 63 74 20 70 6f | 69 6e 74 65 72 20 66 6f |bject po|inter fo|
|00000820| 72 20 61 20 73 69 6e 67 | 6c 65 20 6d 65 6e 75 20 |r a sing|le menu |
|00000830| 69 74 65 6d 2e 0a 0a 5c | 73 75 62 73 75 62 73 65 |item...\|subsubse|
|00000840| 63 74 69 6f 6e 2a 7b 49 | 4e 50 55 54 53 7d 0a 5c |ction*{I|NPUTS}.\|
|00000850| 62 65 67 69 6e 7b 64 65 | 73 63 72 69 70 74 69 6f |begin{de|scriptio|
|00000860| 6e 7d 0a 5c 69 74 65 6d | 5b 75 64 61 74 61 5d 20 |n}.\item|[udata] |
|00000870| 2d 20 75 73 65 72 64 61 | 74 61 20 74 6f 20 6c 6f |- userda|ta to lo|
|00000880| 6f 6b 20 66 6f 72 2e 0a | 5c 65 6e 64 7b 64 65 73 |ok for..|\end{des|
|00000890| 63 72 69 70 74 69 6f 6e | 7d 0a 0a 5c 73 75 62 73 |cription|}..\subs|
|000008a0| 75 62 73 65 63 74 69 6f | 6e 2a 7b 52 45 53 55 4c |ubsectio|n*{RESUL|
|000008b0| 54 7d 0a 41 20 70 6f 69 | 6e 74 65 72 20 74 6f 20 |T}.A poi|nter to |
|000008c0| 74 68 65 20 66 69 72 73 | 74 20 6f 62 6a 65 63 74 |the firs|t object|
|000008d0| 20 77 69 74 68 20 74 68 | 65 20 73 70 65 63 69 66 | with th|e specif|
|000008e0| 69 65 64 20 75 73 65 72 | 20 64 61 74 61 0a 6f 72 |ied user| data.or|
|000008f0| 20 4e 55 4c 4c 20 69 66 | 20 6e 6f 20 6f 62 6a 65 | NULL if| no obje|
|00000900| 63 74 20 69 73 20 66 6f | 75 6e 64 2e 0a 0a 5c 73 |ct is fo|und...\s|
|00000910| 75 62 73 75 62 73 65 63 | 74 69 6f 6e 2a 7b 4e 4f |ubsubsec|tion*{NO|
|00000920| 54 45 7d 0a 49 66 20 79 | 6f 75 20 68 61 76 65 20 |TE}.If y|ou have |
|00000930| 6d 61 6e 79 20 6f 62 6a | 65 63 74 73 20 69 6e 20 |many obj|ects in |
|00000940| 79 6f 75 72 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |your app|lication|
|00000950| 2c 20 4d 55 49 4d 5c 5f | 46 69 6e 64 55 44 61 74 |, MUIM\_|FindUDat|
|00000960| 61 0a 6d 61 79 20 74 61 | 6b 65 20 71 75 69 74 65 |a.may ta|ke quite|
|00000970| 20 6c 6f 6e 67 2e 20 59 | 6f 75 20 63 61 6e 20 6c | long. Y|ou can l|
|00000980| 69 6d 69 74 20 74 68 65 | 20 61 6d 6f 75 6e 74 20 |imit the| amount |
|00000990| 6f 66 20 74 69 6d 65 0a | 62 79 20 70 65 72 66 6f |of time.|by perfo|
|000009a0| 72 6d 69 6e 67 20 74 68 | 65 20 6d 65 74 68 6f 64 |rming th|e method|
|000009b0| 20 6e 6f 74 20 6f 6e 20 | 74 68 65 20 61 70 70 6c | not on |the appl|
|000009c0| 69 63 61 74 69 6f 6e 20 | 62 75 74 20 6f 6e 20 74 |ication |but on t|
|000009d0| 68 65 0a 77 69 6e 64 6f | 77 20 6f 72 20 65 76 65 |he.windo|w or eve|
|000009e0| 6e 20 6f 6e 20 74 68 65 | 20 67 72 6f 75 70 2f 66 |n on the| group/f|
|000009f0| 61 6d 69 6c 79 20 79 6f | 75 72 20 6f 62 6a 65 63 |amily yo|ur objec|
|00000a00| 74 20 69 73 20 70 6c 61 | 63 65 64 20 69 6e 2e 0a |t is pla|ced in..|
|00000a10| 0a 5c 73 75 62 73 75 62 | 73 65 63 74 69 6f 6e 2a |.\subsub|section*|
|00000a20| 7b 53 45 45 20 41 4c 53 | 4f 7d 0a 4d 55 49 4d 5c |{SEE ALS|O}.MUIM\|
|00000a30| 5f 47 65 74 55 44 61 74 | 61 2c 20 4d 55 49 4d 5c |_GetUDat|a, MUIM\|
|00000a40| 5f 53 65 74 55 44 61 74 | 61 0a 0a 5c 73 75 62 73 |_SetUDat|a..\subs|
|00000a50| 65 63 74 69 6f 6e 5b 4d | 55 49 4d 5c 5f 47 65 74 |ection[M|UIM\_Get|
|00000a60| 55 44 61 74 61 5d 7b 4d | 55 49 4d 5c 5f 47 65 74 |UData]{M|UIM\_Get|
|00000a70| 55 44 61 74 61 20 28 56 | 38 29 7d 0a 0a 5c 73 75 |UData (V|8)}..\su|
|00000a80| 62 73 75 62 73 65 63 74 | 69 6f 6e 2a 7b 53 59 4e |bsubsect|ion*{SYN|
|00000a90| 4f 50 53 49 53 7d 0a 44 | 6f 4d 65 74 68 6f 64 28 |OPSIS}.D|oMethod(|
|00000aa0| 6f 62 6a 2c 4d 55 49 4d | 5c 5f 47 65 74 55 44 61 |obj,MUIM|\_GetUDa|
|00000ab0| 74 61 2c 55 4c 4f 4e 47 | 20 75 64 61 74 61 2c 20 |ta,ULONG| udata, |
|00000ac0| 55 4c 4f 4e 47 20 61 74 | 74 72 2c 20 55 4c 4f 4e |ULONG at|tr, ULON|
|00000ad0| 47 20 24 5c 61 73 74 24 | 73 74 6f 72 61 67 65 29 |G $\ast$|storage)|
|00000ae0| 3b 0a 0a 5c 73 75 62 73 | 75 62 73 65 63 74 69 6f |;..\subs|ubsectio|
|00000af0| 6e 2a 7b 46 55 4e 43 54 | 49 4f 4e 7d 0a 54 68 69 |n*{FUNCT|ION}.Thi|
|00000b00| 73 20 6d 65 74 68 6f 64 | 20 74 65 73 74 73 20 69 |s method| tests i|
|00000b10| 66 20 74 68 65 20 4d 55 | 49 41 5c 5f 55 73 65 72 |f the MU|IA\_User|
|00000b20| 44 61 74 61 20 6f 66 20 | 74 68 65 20 6f 62 6a 65 |Data of |the obje|
|00000b30| 63 74 0a 63 6f 6e 74 61 | 69 6e 73 20 74 68 65 20 |ct.conta|ins the |
|00000b40| 67 69 76 65 6e 20 5c 66 | 6c 71 20 75 64 61 74 61 |given \f|lq udata|
|00000b50| 5c 66 72 71 5c 20 20 61 | 6e 64 20 67 65 74 73 20 |\frq\ a|nd gets |
|00000b60| 5c 66 6c 71 20 61 74 74 | 72 5c 66 72 71 5c 20 20 |\flq att|r\frq\ |
|00000b70| 74 6f 0a 5c 66 6c 71 20 | 73 74 6f 72 61 67 65 5c |to.\flq |storage\|
|00000b80| 66 72 71 5c 20 20 66 6f | 72 20 69 74 73 65 6c 66 |frq\ fo|r itself|
|00000b90| 20 69 6e 20 74 68 69 73 | 20 63 61 73 65 2e 0a 0a | in this| case...|
|00000ba0| 41 6c 74 68 6f 75 67 68 | 20 74 68 69 73 20 69 73 |Although| this is|
|00000bb0| 20 6e 6f 74 20 76 65 72 | 79 20 75 73 65 66 75 6c | not ver|y useful|
|00000bc0| 20 66 6f 72 20 73 69 6e | 67 6c 65 20 6f 62 6a 65 | for sin|gle obje|
|00000bd0| 63 74 73 2c 0a 70 65 72 | 66 6f 72 6d 69 6e 67 20 |cts,.per|forming |
|00000be0| 74 68 69 73 20 6d 65 74 | 68 6f 64 20 6f 6e 20 6f |this met|hod on o|
|00000bf0| 62 6a 65 63 74 73 20 74 | 68 61 74 20 68 61 6e 64 |bjects t|hat hand|
|00000c00| 6c 65 20 63 68 69 6c 64 | 72 65 6e 0a 63 61 6e 20 |le child|ren.can |
|00000c10| 62 65 63 6f 6d 65 20 76 | 65 72 79 20 68 61 6e 64 |become v|ery hand|
|00000c20| 79 2e 20 49 6e 20 74 68 | 69 73 20 63 61 73 65 2c |y. In th|is case,|
|00000c30| 20 61 6c 6c 20 74 68 65 | 20 63 68 69 6c 64 72 65 | all the| childre|
|00000c40| 6e 0a 28 61 6e 79 20 6d | 61 79 62 65 20 74 68 65 |n.(any m|aybe the|
|00000c50| 69 72 20 63 68 69 6c 64 | 72 65 6e 29 20 61 72 65 |ir child|ren) are|
|00000c60| 20 73 65 61 72 63 68 65 | 64 20 61 67 61 69 6e 73 | searche|d agains|
|00000c70| 74 20 5c 66 6c 71 20 75 | 64 61 74 61 5c 66 72 71 |t \flq u|data\frq|
|00000c80| 20 0a 61 6e 64 20 74 68 | 65 20 66 69 72 73 74 20 | .and th|e first |
|00000c90| 6d 61 74 63 68 69 6e 67 | 20 6f 62 6a 65 63 74 73 |matching| objects|
|00000ca0| 20 77 69 6c 6c 20 62 65 | 20 61 73 6b 65 64 20 66 | will be| asked f|
|00000cb0| 6f 72 20 74 68 65 0a 73 | 70 65 63 69 66 69 65 64 |or the.s|pecified|
|00000cc0| 20 61 74 74 72 69 62 75 | 74 65 2e 0a 0a 5c 73 75 | attribu|te...\su|
|00000cd0| 62 73 75 62 73 65 63 74 | 69 6f 6e 2a 7b 49 4e 50 |bsubsect|ion*{INP|
|00000ce0| 55 54 53 7d 0a 5c 62 65 | 67 69 6e 7b 64 65 73 63 |UTS}.\be|gin{desc|
|00000cf0| 72 69 70 74 69 6f 6e 7d | 0a 5c 69 74 65 6d 5b 75 |ription}|.\item[u|
|00000d00| 64 61 74 61 5d 20 20 20 | 2d 20 75 73 65 72 64 61 |data] |- userda|
|00000d10| 74 61 20 74 6f 20 6c 6f | 6f 6b 20 66 6f 72 2e 0a |ta to lo|ok for..|
|00000d20| 5c 69 74 65 6d 5b 61 74 | 74 72 5d 20 20 20 20 2d |\item[at|tr] -|
|00000d30| 20 61 74 74 72 69 62 75 | 74 65 20 74 6f 20 67 65 | attribu|te to ge|
|00000d40| 74 2e 0a 5c 69 74 65 6d | 5b 73 74 6f 72 61 67 65 |t..\item|[storage|
|00000d50| 5d 20 2d 20 70 6c 61 63 | 65 20 74 6f 20 73 74 6f |] - plac|e to sto|
|00000d60| 72 65 20 74 68 65 20 61 | 74 74 72 69 62 75 74 65 |re the a|ttribute|
|00000d70| 2e 0a 5c 65 6e 64 7b 64 | 65 73 63 72 69 70 74 69 |..\end{d|escripti|
|00000d80| 6f 6e 7d 0a 0a 5c 73 75 | 62 73 75 62 73 65 63 74 |on}..\su|bsubsect|
|00000d90| 69 6f 6e 2a 7b 4e 4f 54 | 45 7d 0a 49 66 20 79 6f |ion*{NOT|E}.If yo|
|00000da0| 75 20 68 61 76 65 20 6d | 61 6e 79 20 6f 62 6a 65 |u have m|any obje|
|00000db0| 63 74 73 20 69 6e 20 79 | 6f 75 72 20 61 70 70 6c |cts in y|our appl|
|00000dc0| 69 63 61 74 69 6f 6e 2c | 20 4d 55 49 4d 5c 5f 47 |ication,| MUIM\_G|
|00000dd0| 65 74 55 44 61 74 61 0a | 6d 61 79 20 74 61 6b 65 |etUData.|may take|
|00000de0| 20 71 75 69 74 65 20 6c | 6f 6e 67 2e 20 59 6f 75 | quite l|ong. You|
|00000df0| 20 63 61 6e 20 6c 69 6d | 69 74 20 74 68 65 20 61 | can lim|it the a|
|00000e00| 6d 6f 75 6e 74 20 6f 66 | 20 74 69 6d 65 0a 62 79 |mount of| time.by|
|00000e10| 20 70 65 72 66 6f 72 6d | 69 6e 67 20 74 68 65 20 | perform|ing the |
|00000e20| 6d 65 74 68 6f 64 20 6e | 6f 74 20 6f 6e 20 74 68 |method n|ot on th|
|00000e30| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 62 75 |e applic|ation bu|
|00000e40| 74 20 6f 6e 20 74 68 65 | 0a 77 69 6e 64 6f 77 20 |t on the|.window |
|00000e50| 6f 72 20 65 76 65 6e 20 | 6f 6e 20 74 68 65 20 67 |or even |on the g|
|00000e60| 72 6f 75 70 2f 66 61 6d | 69 6c 79 20 79 6f 75 72 |roup/fam|ily your|
|00000e70| 20 6f 62 6a 65 63 74 73 | 20 61 72 65 20 70 6c 61 | objects| are pla|
|00000e80| 63 65 20 69 6e 2e 0a 0a | 5c 73 75 62 73 75 62 73 |ce in...|\subsubs|
|00000e90| 65 63 74 69 6f 6e 2a 7b | 53 45 45 20 41 4c 53 4f |ection*{|SEE ALSO|
|00000ea0| 7d 0a 4d 55 49 4d 5c 5f | 53 65 74 55 44 61 74 61 |}.MUIM\_|SetUData|
|00000eb0| 2c 20 4d 55 49 4d 5c 5f | 46 69 6e 64 55 44 61 74 |, MUIM\_|FindUDat|
|00000ec0| 61 0a 0a 5c 73 75 62 73 | 65 63 74 69 6f 6e 5b 4d |a..\subs|ection[M|
|00000ed0| 55 49 4d 5c 5f 4b 69 6c | 6c 4e 6f 74 69 66 79 5d |UIM\_Kil|lNotify]|
|00000ee0| 7b 4d 55 49 4d 5c 5f 4b | 69 6c 6c 4e 6f 74 69 66 |{MUIM\_K|illNotif|
|00000ef0| 79 20 28 56 34 29 7d 0a | 0a 5c 73 75 62 73 75 62 |y (V4)}.|.\subsub|
|00000f00| 73 65 63 74 69 6f 6e 2a | 7b 53 59 4e 4f 50 53 49 |section*|{SYNOPSI|
|00000f10| 53 7d 0a 44 6f 4d 65 74 | 68 6f 64 28 6f 62 6a 2c |S}.DoMet|hod(obj,|
|00000f20| 4d 55 49 4d 5c 5f 4b 69 | 6c 6c 4e 6f 74 69 66 79 |MUIM\_Ki|llNotify|
|00000f30| 2c 55 4c 4f 4e 47 20 54 | 72 69 67 41 74 74 72 29 |,ULONG T|rigAttr)|
|00000f40| 3b 0a 0a 5c 73 75 62 73 | 75 62 73 65 63 74 69 6f |;..\subs|ubsectio|
|00000f50| 6e 2a 7b 46 55 4e 43 54 | 49 4f 4e 7d 0a 4d 55 49 |n*{FUNCT|ION}.MUI|
|00000f60| 4d 5c 5f 4b 69 6c 6c 4e | 6f 74 69 66 79 20 6b 69 |M\_KillN|otify ki|
|00000f70| 6c 6c 73 20 70 72 65 76 | 69 6f 75 73 6c 79 20 67 |lls prev|iously g|
|00000f80| 69 76 65 6e 20 6e 6f 74 | 69 66 69 63 61 74 69 6f |iven not|ificatio|
|00000f90| 6e 73 20 6f 6e 20 73 70 | 65 63 69 66 69 63 0a 61 |ns on sp|ecific.a|
|00000fa0| 74 74 72 69 62 75 74 65 | 73 2e 0a 0a 5c 73 75 62 |ttribute|s...\sub|
|00000fb0| 73 75 62 73 65 63 74 69 | 6f 6e 2a 7b 49 4e 50 55 |subsecti|on*{INPU|
|00000fc0| 54 53 7d 0a 5c 62 65 67 | 69 6e 7b 64 65 73 63 72 |TS}.\beg|in{descr|
|00000fd0| 69 70 74 69 6f 6e 7d 0a | 5c 69 74 65 6d 5b 54 72 |iption}.|\item[Tr|
|00000fe0| 69 67 41 74 74 72 5d 20 | 2d 20 41 74 74 72 69 62 |igAttr] |- Attrib|
|00000ff0| 75 74 65 20 66 6f 72 20 | 77 68 69 63 68 20 74 68 |ute for |which th|
|00001000| 65 20 6e 6f 74 69 66 79 | 20 77 61 73 20 73 70 65 |e notify| was spe|
|00001010| 63 69 66 69 65 64 2e 20 | 49 66 20 79 6f 75 0a 73 |cified. |If you.s|
|00001020| 65 74 20 75 70 20 6d 6f | 72 65 20 74 68 61 6e 20 |et up mo|re than |
|00001030| 6f 6e 65 20 6e 6f 74 69 | 66 79 20 66 6f 72 20 61 |one noti|fy for a|
|00001040| 6e 20 61 74 74 72 69 62 | 75 74 65 2c 20 6f 6e 6c |n attrib|ute, onl|
|00001050| 79 0a 74 68 65 20 66 69 | 72 73 74 20 6f 6e 65 20 |y.the fi|rst one |
|00001060| 77 69 6c 6c 20 62 65 20 | 6b 69 6c 6c 65 64 2e 0a |will be |killed..|
|00001070| 5c 65 6e 64 7b 64 65 73 | 63 72 69 70 74 69 6f 6e |\end{des|cription|
|00001080| 7d 0a 0a 5c 73 75 62 73 | 75 62 73 65 63 74 69 6f |}..\subs|ubsectio|
|00001090| 6e 2a 7b 45 58 41 4d 50 | 4c 45 7d 0a 5c 73 6d 61 |n*{EXAMP|LE}.\sma|
|000010a0| 6c 6c 0a 5c 62 65 67 69 | 6e 7b 76 65 72 62 61 74 |ll.\begi|n{verbat|
|000010b0| 69 6d 7d 0a 44 6f 4d 65 | 74 68 6f 64 28 62 75 74 |im}.DoMe|thod(but|
|000010c0| 74 6f 6e 2c 4d 55 49 4d | 5f 4b 69 6c 6c 4e 6f 74 |ton,MUIM|_KillNot|
|000010d0| 69 66 79 2c 4d 55 49 41 | 5f 50 72 65 73 73 65 64 |ify,MUIA|_Pressed|
|000010e0| 29 3b 0a 0a 5c 65 6e 64 | 7b 76 65 72 62 61 74 69 |);..\end|{verbati|
|000010f0| 6d 7d 0a 5c 6e 6f 72 6d | 61 6c 73 69 7a 65 0a 5c |m}.\norm|alsize.\|
|00001100| 73 75 62 73 75 62 73 65 | 63 74 69 6f 6e 2a 7b 53 |subsubse|ction*{S|
|00001110| 45 45 20 41 4c 53 4f 7d | 0a 4d 55 49 4d 5c 5f 4e |EE ALSO}|.MUIM\_N|
|00001120| 6f 74 69 66 79 0a 0a 5c | 73 75 62 73 65 63 74 69 |otify..\|subsecti|
|00001130| 6f 6e 5b 4d 55 49 4d 5c | 5f 4d 75 6c 74 69 53 65 |on[MUIM\|_MultiSe|
|00001140| 74 5d 7b 4d 55 49 4d 5c | 5f 4d 75 6c 74 69 53 65 |t]{MUIM\|_MultiSe|
|00001150| 74 20 28 56 37 29 7d 0a | 0a 5c 73 75 62 73 75 62 |t (V7)}.|.\subsub|
|00001160| 73 65 63 74 69 6f 6e 2a | 7b 53 59 4e 4f 50 53 49 |section*|{SYNOPSI|
|00001170| 53 7d 0a 44 6f 4d 65 74 | 68 6f 64 28 6f 62 6a 2c |S}.DoMet|hod(obj,|
|00001180| 4d 55 49 4d 5c 5f 4d 75 | 6c 74 69 53 65 74 2c 55 |MUIM\_Mu|ltiSet,U|
|00001190| 4c 4f 4e 47 20 61 74 74 | 72 2c 20 55 4c 4f 4e 47 |LONG att|r, ULONG|
|000011a0| 20 76 61 6c 2c 20 41 50 | 54 52 20 6f 62 6a 2c 20 | val, AP|TR obj, |
|000011b0| 2f 24 5c 61 73 74 24 20 | 2e 2e 2e 20 24 5c 61 73 |/$\ast$ |... $\as|
|000011c0| 74 24 2f 29 3b 0a 0a 5c | 73 75 62 73 75 62 73 65 |t$/);..\|subsubse|
|000011d0| 63 74 69 6f 6e 2a 7b 46 | 55 4e 43 54 49 4f 4e 7d |ction*{F|UNCTION}|
|000011e0| 0a 53 65 74 20 61 6e 20 | 61 74 74 72 69 62 75 74 |.Set an |attribut|
|000011f0| 65 20 66 6f 72 20 6d 75 | 6c 74 69 70 6c 65 20 6f |e for mu|ltiple o|
|00001200| 62 6a 65 63 74 73 2e 0a | 52 65 63 65 69 76 69 6e |bjects..|Receivin|
|00001210| 67 20 61 6e 20 61 74 74 | 72 69 62 75 74 65 2f 76 |g an att|ribute/v|
|00001220| 61 6c 75 65 20 70 61 69 | 72 20 61 6e 64 20 61 20 |alue pai|r and a |
|00001230| 6c 69 73 74 20 6f 66 20 | 6f 62 6a 65 63 74 73 2c |list of |objects,|
|00001240| 0a 74 68 69 73 20 6d 65 | 74 68 6f 64 20 73 65 74 |.this me|thod set|
|00001250| 73 20 74 68 65 20 6e 65 | 77 20 76 61 6c 75 65 20 |s the ne|w value |
|00001260| 66 6f 72 20 61 6c 6c 20 | 74 68 65 20 6f 62 6a 65 |for all |the obje|
|00001270| 63 74 73 20 69 6e 20 74 | 68 65 20 6c 69 73 74 2e |cts in t|he list.|
|00001280| 0a 54 68 69 73 20 69 73 | 20 65 73 70 65 63 69 61 |.This is| especia|
|00001290| 6c 6c 79 20 75 73 65 66 | 75 6c 20 66 6f 72 20 64 |lly usef|ul for d|
|000012a0| 69 73 61 62 6c 69 6e 67 | 2f 65 6e 61 62 6c 69 6e |isabling|/enablin|
|000012b0| 67 20 6c 6f 74 73 20 6f | 66 0a 6f 62 6a 65 63 74 |g lots o|f.object|
|000012c0| 73 20 77 69 74 68 20 6f | 6e 65 20 73 69 6e 67 65 |s with o|ne singe|
|000012d0| 20 66 75 6e 63 74 69 6f | 6e 20 63 61 6c 6c 2e 0a | functio|n call..|
|000012e0| 0a 54 68 65 20 6f 62 6a | 65 63 74 20 74 68 61 74 |.The obj|ect that|
|000012f0| 20 65 78 65 63 75 74 65 | 73 20 74 68 69 73 20 6d | execute|s this m|
|00001300| 65 74 68 6f 64 20 69 73 | 6e 27 74 20 61 66 66 65 |ethod is|n't affe|
|00001310| 63 74 65 64 21 0a 0a 5c | 73 75 62 73 75 62 73 65 |cted!..\|subsubse|
|00001320| 63 74 69 6f 6e 2a 7b 4e | 4f 54 45 7d 0a 54 68 69 |ction*{N|OTE}.Thi|
|00001330| 73 20 6d 65 74 68 6f 64 | 20 77 61 73 20 69 6d 70 |s method| was imp|
|00001340| 6c 65 6d 65 6e 74 65 64 | 20 69 6e 20 76 65 72 73 |lemented| in vers|
|00001350| 69 6f 6e 20 37 20 6f 66 | 20 6e 6f 74 69 66 79 20 |ion 7 of| notify |
|00001360| 63 6c 61 73 73 2e 0a 0a | 5c 73 75 62 73 75 62 73 |class...|\subsubs|
|00001370| 65 63 74 69 6f 6e 2a 7b | 49 4e 50 55 54 53 7d 0a |ection*{|INPUTS}.|
|00001380| 5c 62 65 67 69 6e 7b 64 | 65 73 63 72 69 70 74 69 |\begin{d|escripti|
|00001390| 6f 6e 7d 0a 5c 69 74 65 | 6d 5b 61 74 74 72 5d 20 |on}.\ite|m[attr] |
|000013a0| 20 20 20 20 61 74 74 72 | 69 62 75 74 65 20 74 6f | attr|ibute to|
|000013b0| 20 73 65 74 2e 0a 5c 69 | 74 65 6d 5b 76 61 6c 75 | set..\i|tem[valu|
|000013c0| 65 5d 20 20 20 20 6e 65 | 77 20 76 61 6c 75 65 20 |e] ne|w value |
|000013d0| 66 6f 72 20 74 68 65 20 | 61 74 74 72 69 62 75 74 |for the |attribut|
|000013e0| 65 2e 0a 5c 69 74 65 6d | 5b 6f 62 6a 2c 20 2e 2e |e..\item|[obj, ..|
|000013f0| 2e 5d 20 6c 69 73 74 20 | 6f 66 20 4d 55 49 20 6f |.] list |of MUI o|
|00001400| 62 6a 65 63 74 73 2c 20 | 74 65 72 6d 69 6e 61 74 |bjects, |terminat|
|00001410| 65 64 20 77 69 74 68 20 | 61 20 4e 55 4c 4c 20 70 |ed with |a NULL p|
|00001420| 6f 69 6e 74 65 72 2e 0a | 5c 65 6e 64 7b 64 65 73 |ointer..|\end{des|
|00001430| 63 72 69 70 74 69 6f 6e | 7d 0a 0a 5c 73 75 62 73 |cription|}..\subs|
|00001440| 75 62 73 65 63 74 69 6f | 6e 2a 7b 45 58 41 4d 50 |ubsectio|n*{EXAMP|
|00001450| 4c 45 7d 0a 5c 73 6d 61 | 6c 6c 0a 5c 62 65 67 69 |LE}.\sma|ll.\begi|
|00001460| 6e 7b 76 65 72 62 61 74 | 69 6d 7d 0a 2f 2a 20 64 |n{verbat|im}./* d|
|00001470| 69 73 61 62 6c 65 20 61 | 6c 6c 20 74 68 65 20 61 |isable a|ll the a|
|00001480| 64 64 72 65 73 73 20 72 | 65 6c 61 74 65 64 20 67 |ddress r|elated g|
|00001490| 61 64 67 65 74 73 2e 2e | 2e 20 2a 2f 0a 0a 44 6f |adgets..|. */..Do|
|000014a0| 4d 65 74 68 6f 64 28 78 | 78 78 2c 20 4d 55 49 4d |Method(x|xx, MUIM|
|000014b0| 5f 4d 75 6c 74 69 53 65 | 74 2c 20 4d 55 49 41 5f |_MultiSe|t, MUIA_|
|000014c0| 44 69 73 61 62 6c 65 64 | 2c 20 54 52 55 45 2c 0a |Disabled|, TRUE,.|
|000014d0| 20 20 20 53 54 5f 4e 61 | 6d 65 2c 20 53 54 5f 53 | ST_Na|me, ST_S|
|000014e0| 74 72 65 65 74 2c 20 53 | 54 5f 43 69 74 79 2c 20 |treet, S|T_City, |
|000014f0| 53 54 5f 43 6f 75 6e 74 | 72 79 2c 20 53 54 5f 50 |ST_Count|ry, ST_P|
|00001500| 68 6f 6e 65 2c 20 4e 55 | 4c 4c 29 3b 0a 0a 2f 2a |hone, NU|LL);../*|
|00001510| 20 6e 6f 74 65 20 74 68 | 61 74 20 74 68 65 20 78 | note th|at the x|
|00001520| 78 78 20 6f 62 6a 65 63 | 74 20 64 6f 65 73 6e 27 |xx objec|t doesn'|
|00001530| 74 20 67 65 74 20 64 69 | 73 61 62 6c 65 64 21 20 |t get di|sabled! |
|00001540| 2a 2f 0a 0a 5c 65 6e 64 | 7b 76 65 72 62 61 74 69 |*/..\end|{verbati|
|00001550| 6d 7d 0a 5c 6e 6f 72 6d | 61 6c 73 69 7a 65 0a 5c |m}.\norm|alsize.\|
|00001560| 73 75 62 73 75 62 73 65 | 63 74 69 6f 6e 2a 7b 53 |subsubse|ction*{S|
|00001570| 45 45 20 41 4c 53 4f 7d | 0a 4d 55 49 4d 5c 5f 53 |EE ALSO}|.MUIM\_S|
|00001580| 65 74 2c 20 4d 55 49 4d | 5c 5f 4e 6f 74 69 66 79 |et, MUIM|\_Notify|
|00001590| 0a 0a 5c 73 75 62 73 65 | 63 74 69 6f 6e 5b 4d 55 |..\subse|ction[MU|
|000015a0| 49 4d 5c 5f 4e 6f 4e 6f | 74 69 66 79 53 65 74 5d |IM\_NoNo|tifySet]|
|000015b0| 7b 4d 55 49 4d 5c 5f 4e | 6f 4e 6f 74 69 66 79 53 |{MUIM\_N|oNotifyS|
|000015c0| 65 74 20 28 56 39 29 7d | 0a 0a 5c 73 75 62 73 75 |et (V9)}|..\subsu|
|000015d0| 62 73 65 63 74 69 6f 6e | 2a 7b 53 59 4e 4f 50 53 |bsection|*{SYNOPS|
|000015e0| 49 53 7d 0a 44 6f 4d 65 | 74 68 6f 64 28 6f 62 6a |IS}.DoMe|thod(obj|
|000015f0| 2c 4d 55 49 4d 5c 5f 4e | 6f 4e 6f 74 69 66 79 53 |,MUIM\_N|oNotifyS|
|00001600| 65 74 2c 55 4c 4f 4e 47 | 20 61 74 74 72 2c 20 63 |et,ULONG| attr, c|
|00001610| 68 61 72 20 24 5c 61 73 | 74 24 66 6f 72 6d 61 74 |har $\as|t$format|
|00001620| 2c 20 55 4c 4f 4e 47 20 | 76 61 6c 2c 20 2f 24 5c |, ULONG |val, /$\|
|00001630| 61 73 74 24 20 2e 2e 2e | 20 24 5c 61 73 74 24 2f |ast$ ...| $\ast$/|
|00001640| 29 3b 0a 0a 5c 73 75 62 | 73 75 62 73 65 63 74 69 |);..\sub|subsecti|
|00001650| 6f 6e 2a 7b 46 55 4e 43 | 54 49 4f 4e 7d 0a 41 63 |on*{FUNC|TION}.Ac|
|00001660| 74 73 20 6c 69 6b 65 20 | 4d 55 49 4d 5c 5f 53 65 |ts like |MUIM\_Se|
|00001670| 74 20 62 75 74 20 64 6f | 65 73 6e 27 74 20 74 72 |t but do|esn't tr|
|00001680| 69 67 67 65 72 20 61 6e | 79 20 6e 6f 74 69 66 69 |igger an|y notifi|
|00001690| 63 61 74 69 6f 6e 2e 0a | 54 68 69 73 20 63 61 6e |cation..|This can|
|000016a0| 20 62 65 63 6f 6d 65 20 | 75 73 65 66 75 6c 20 74 | become |useful t|
|000016b0| 6f 20 61 76 6f 69 64 20 | 64 65 61 64 6c 6f 63 6b |o avoid |deadlock|
|000016c0| 73 20 77 69 74 68 20 62 | 69 2d 64 69 72 65 63 74 |s with b|i-direct|
|000016d0| 69 6f 6e 61 6c 0a 63 6f | 6e 6e 65 63 74 69 6f 6e |ional.co|nnection|
|000016e0| 73 2e 0a 0a 5c 73 75 62 | 73 75 62 73 65 63 74 69 |s...\sub|subsecti|
|000016f0| 6f 6e 2a 7b 49 4e 50 55 | 54 53 7d 0a 5c 62 65 67 |on*{INPU|TS}.\beg|
|00001700| 69 6e 7b 64 65 73 63 72 | 69 70 74 69 6f 6e 7d 0a |in{descr|iption}.|
|00001710| 5c 69 74 65 6d 5b 61 74 | 74 72 5d 20 20 61 74 74 |\item[at|tr] att|
|00001720| 72 69 62 75 74 65 20 79 | 6f 75 20 77 61 6e 74 20 |ribute y|ou want |
|00001730| 74 6f 20 73 65 74 2e 0a | 5c 69 74 65 6d 5b 76 61 |to set..|\item[va|
|00001740| 6c 5d 20 20 20 76 61 6c | 75 65 20 74 6f 20 73 65 |l] val|ue to se|
|00001750| 74 20 74 68 65 20 61 74 | 74 72 69 62 75 74 65 20 |t the at|tribute |
|00001760| 74 6f 2e 0a 5c 65 6e 64 | 7b 64 65 73 63 72 69 70 |to..\end|{descrip|
|00001770| 74 69 6f 6e 7d 0a 0a 5c | 73 75 62 73 75 62 73 65 |tion}..\|subsubse|
|00001780| 63 74 69 6f 6e 2a 7b 45 | 58 41 4d 50 4c 45 7d 0a |ction*{E|XAMPLE}.|
|00001790| 5c 73 6d 61 6c 6c 0a 5c | 62 65 67 69 6e 7b 76 65 |\small.\|begin{ve|
|000017a0| 72 62 61 74 69 6d 7d 0a | 44 6f 4d 65 74 68 6f 64 |rbatim}.|DoMethod|
|000017b0| 28 65 64 69 74 6f 72 2c | 4d 55 49 4d 5f 4e 6f 74 |(editor,|MUIM_Not|
|000017c0| 69 66 79 2c 45 44 49 54 | 5f 54 6f 70 2c 4d 55 49 |ify,EDIT|_Top,MUI|
|000017d0| 56 5f 45 76 65 72 79 54 | 69 6d 65 2c 0a 20 20 20 |V_EveryT|ime,. |
|000017e0| 73 62 61 72 2c 33 2c 4d | 55 49 4d 5f 4e 6f 4e 6f |sbar,3,M|UIM_NoNo|
|000017f0| 74 69 66 79 53 65 74 2c | 4d 55 49 41 5f 50 72 6f |tifySet,|MUIA_Pro|
|00001800| 70 5f 46 69 72 73 74 2c | 4d 55 49 56 5f 54 72 69 |p_First,|MUIV_Tri|
|00001810| 67 67 65 72 56 61 6c 75 | 65 29 3b 0a 0a 44 6f 4d |ggerValu|e);..DoM|
|00001820| 65 74 68 6f 64 28 73 62 | 61 72 2c 4d 55 49 4d 5f |ethod(sb|ar,MUIM_|
|00001830| 4e 6f 74 69 66 79 2c 4d | 55 49 41 5f 50 72 6f 70 |Notify,M|UIA_Prop|
|00001840| 5f 46 69 72 73 74 2c 4d | 55 49 56 5f 45 76 65 72 |_First,M|UIV_Ever|
|00001850| 79 54 69 6d 65 2c 0a 20 | 20 20 65 64 69 74 6f 72 |yTime,. | editor|
|00001860| 2c 33 2c 4d 55 49 4d 5f | 4e 6f 4e 6f 74 69 66 79 |,3,MUIM_|NoNotify|
|00001870| 53 65 74 2c 45 44 49 54 | 5f 54 6f 70 2c 4d 55 49 |Set,EDIT|_Top,MUI|
|00001880| 56 5f 54 72 69 67 67 65 | 72 56 61 6c 75 65 29 3b |V_Trigge|rValue);|
|00001890| 0a 0a 5c 65 6e 64 7b 76 | 65 72 62 61 74 69 6d 7d |..\end{v|erbatim}|
|000018a0| 0a 5c 6e 6f 72 6d 61 6c | 73 69 7a 65 0a 5c 73 75 |.\normal|size.\su|
|000018b0| 62 73 75 62 73 65 63 74 | 69 6f 6e 2a 7b 53 45 45 |bsubsect|ion*{SEE|
|000018c0| 20 41 4c 53 4f 7d 0a 4d | 55 49 4d 5c 5f 53 65 74 | ALSO}.M|UIM\_Set|
|000018d0| 0a 0a 5c 73 75 62 73 65 | 63 74 69 6f 6e 5b 4d 55 |..\subse|ction[MU|
|000018e0| 49 4d 5c 5f 4e 6f 74 69 | 66 79 5d 7b 4d 55 49 4d |IM\_Noti|fy]{MUIM|
|000018f0| 5c 5f 4e 6f 74 69 66 79 | 20 28 56 34 29 7d 0a 0a |\_Notify| (V4)}..|
|00001900| 5c 73 75 62 73 75 62 73 | 65 63 74 69 6f 6e 2a 7b |\subsubs|ection*{|
|00001910| 53 59 4e 4f 50 53 49 53 | 7d 0a 44 6f 4d 65 74 68 |SYNOPSIS|}.DoMeth|
|00001920| 6f 64 28 6f 62 6a 2c 4d | 55 49 4d 5c 5f 4e 6f 74 |od(obj,M|UIM\_Not|
|00001930| 69 66 79 2c 55 4c 4f 4e | 47 20 54 72 69 67 41 74 |ify,ULON|G TrigAt|
|00001940| 74 72 2c 20 55 4c 4f 4e | 47 20 54 72 69 67 56 61 |tr, ULON|G TrigVa|
|00001950| 6c 2c 20 41 50 54 52 20 | 44 65 73 74 4f 62 6a 2c |l, APTR |DestObj,|
|00001960| 20 55 4c 4f 4e 47 20 46 | 6f 6c 6c 6f 77 50 61 72 | ULONG F|ollowPar|
|00001970| 61 6d 73 2c 20 2f 24 5c | 61 73 74 24 20 2e 2e 2e |ams, /$\|ast$ ...|
|00001980| 20 24 5c 61 73 74 24 2f | 29 3b 0a 0a 5c 73 75 62 | $\ast$/|);..\sub|
|00001990| 73 75 62 73 65 63 74 69 | 6f 6e 2a 7b 46 55 4e 43 |subsecti|on*{FUNC|
|000019a0| 54 49 4f 4e 7d 0a 41 64 | 64 20 61 20 6e 6f 74 69 |TION}.Ad|d a noti|
|000019b0| 66 69 63 61 74 69 6f 6e | 20 65 76 65 6e 74 20 68 |fication| event h|
|000019c0| 61 6e 64 6c 65 72 20 74 | 6f 20 61 6e 20 6f 62 6a |andler t|o an obj|
|000019d0| 65 63 74 2e 20 4e 6f 74 | 69 66 69 63 61 74 69 6f |ect. Not|ificatio|
|000019e0| 6e 0a 69 73 20 65 73 73 | 65 6e 74 69 61 6c 20 66 |n.is ess|ential f|
|000019f0| 6f 72 20 65 76 65 72 79 | 20 4d 55 49 20 61 70 70 |or every| MUI app|
|00001a00| 6c 69 63 61 74 69 6f 6e | 2e 0a 0a 41 20 6e 6f 74 |lication|...A not|
|00001a10| 69 66 69 63 61 74 69 6f | 6e 20 73 74 61 74 65 6d |ificatio|n statem|
|00001a20| 65 6e 74 20 63 6f 6e 73 | 69 73 74 73 20 6f 66 20 |ent cons|ists of |
|00001a30| 61 20 73 6f 75 72 63 65 | 20 6f 62 6a 65 63 74 2c |a source| object,|
|00001a40| 0a 61 6e 20 61 74 74 72 | 69 62 75 74 65 2f 76 61 |.an attr|ibute/va|
|00001a50| 6c 75 65 20 70 61 69 72 | 2c 20 61 20 64 65 73 74 |lue pair|, a dest|
|00001a60| 69 6e 61 74 69 6f 6e 20 | 6f 62 6a 65 63 74 20 61 |ination |object a|
|00001a70| 6e 64 20 61 0a 6e 6f 74 | 69 66 69 63 61 74 69 6f |nd a.not|ificatio|
|00001a80| 6e 20 6d 65 74 68 6f 64 | 2e 20 54 68 65 20 61 74 |n method|. The at|
|00001a90| 74 72 69 62 75 74 65 2f | 76 61 6c 75 65 20 70 61 |tribute/|value pa|
|00001aa0| 69 72 20 62 65 6c 6f 6e | 67 73 0a 74 6f 20 74 68 |ir belon|gs.to th|
|00001ab0| 65 20 73 6f 75 72 63 65 | 20 6f 62 6a 65 63 74 20 |e source| object |
|00001ac0| 61 6e 64 20 64 65 74 65 | 72 6d 69 6e 65 73 20 77 |and dete|rmines w|
|00001ad0| 68 65 6e 20 74 68 65 20 | 6e 6f 74 69 66 69 63 61 |hen the |notifica|
|00001ae0| 74 69 6f 6e 0a 6d 65 74 | 68 6f 64 20 77 69 6c 6c |tion.met|hod will|
|00001af0| 20 62 65 20 65 78 65 63 | 75 74 65 64 20 6f 6e 20 | be exec|uted on |
|00001b00| 74 68 65 20 64 65 73 74 | 69 6e 61 74 69 6f 6e 20 |the dest|ination |
|00001b10| 6f 62 6a 65 63 74 2e 0a | 0a 57 68 65 6e 65 76 65 |object..|.Wheneve|
|00001b20| 72 20 74 68 65 20 73 6f | 75 72 63 65 20 6f 62 6a |r the so|urce obj|
|00001b30| 65 63 74 20 67 65 74 73 | 20 74 68 65 20 67 69 76 |ect gets| the giv|
|00001b40| 65 6e 20 61 74 74 72 69 | 62 75 74 65 20 73 65 74 |en attri|bute set|
|00001b50| 20 74 6f 0a 74 68 65 20 | 67 69 76 65 6e 20 76 61 | to.the |given va|
|00001b60| 6c 75 65 20 28 74 68 69 | 73 20 63 61 6e 20 68 61 |lue (thi|s can ha|
|00001b70| 70 70 65 6e 20 62 65 63 | 61 75 73 65 20 6f 66 20 |ppen bec|ause of |
|00001b80| 74 68 65 20 75 73 65 72 | 0a 70 72 65 73 73 69 6e |the user|.pressin|
|00001b90| 67 20 73 6f 6d 65 20 67 | 61 64 67 65 74 73 20 6f |g some g|adgets o|
|00001ba0| 72 20 62 65 63 61 75 73 | 65 20 6f 66 20 79 6f 75 |r becaus|e of you|
|00001bb0| 72 20 70 72 6f 67 72 61 | 6d 20 65 78 70 6c 69 63 |r progra|m explic|
|00001bc0| 69 74 6c 79 0a 73 65 74 | 74 69 6e 67 20 74 68 65 |itly.set|ting the|
|00001bd0| 20 61 74 74 72 69 62 75 | 74 65 20 77 69 74 68 20 | attribu|te with |
|00001be0| 53 65 74 41 74 74 72 73 | 28 29 29 2c 20 74 68 65 |SetAttrs|()), the|
|00001bf0| 20 64 65 73 74 69 6e 61 | 74 69 6f 6e 0a 6f 62 6a | destina|tion.obj|
|00001c00| 65 63 74 20 77 69 6c 6c | 20 65 78 65 63 75 74 65 |ect will| execute|
|00001c10| 20 74 68 65 20 6e 6f 74 | 69 66 69 63 61 74 69 6f | the not|ificatio|
|00001c20| 6e 20 6d 65 74 68 6f 64 | 2e 0a 0a 57 69 74 68 20 |n method|...With |
|00001c30| 73 6f 6d 65 20 73 70 65 | 63 69 61 6c 20 76 61 6c |some spe|cial val|
|00001c40| 75 65 73 2c 20 79 6f 75 | 20 63 61 6e 20 74 72 69 |ues, you| can tri|
|00001c50| 67 67 65 72 20 74 68 65 | 20 6e 6f 74 69 66 69 63 |gger the| notific|
|00001c60| 61 74 69 6f 6e 0a 65 76 | 65 72 79 20 74 69 6d 65 |ation.ev|ery time|
|00001c70| 20 74 68 65 20 61 74 74 | 72 69 62 75 74 65 20 69 | the att|ribute i|
|00001c80| 73 20 63 68 61 6e 67 69 | 6e 67 2e 20 49 6e 20 74 |s changi|ng. In t|
|00001c90| 68 69 73 20 63 61 73 65 | 2c 20 79 6f 75 0a 63 61 |his case|, you.ca|
|00001ca0| 6e 20 69 6e 63 6c 75 64 | 65 20 74 68 65 20 74 72 |n includ|e the tr|
|00001cb0| 69 67 67 65 72 69 6e 67 | 20 61 74 74 72 69 62 75 |iggering| attribu|
|00001cc0| 74 65 73 20 76 61 6c 75 | 65 20 77 69 74 68 69 6e |tes valu|e within|
|00001cd0| 20 74 68 65 0a 6e 6f 74 | 69 66 69 63 61 74 69 6f | the.not|ificatio|
|00001ce0| 6e 20 6d 65 74 68 6f 64 | 2e 20 53 65 65 20 62 65 |n method|. See be|
|00001cf0| 6c 6f 77 2e 0a 0a 4f 6e | 65 20 62 69 67 20 70 72 |low...On|e big pr|
|00001d00| 6f 62 6c 65 6d 20 77 69 | 74 68 20 6e 6f 74 69 66 |oblem wi|th notif|
|00001d10| 69 63 61 74 69 6f 6e 20 | 61 72 65 20 65 6e 64 6c |ication |are endl|
|00001d20| 65 73 73 20 6c 6f 6f 70 | 73 2e 0a 49 6d 61 67 69 |ess loop|s..Imagi|
|00001d30| 6e 65 20 79 6f 75 20 68 | 61 76 65 20 61 20 70 72 |ne you h|ave a pr|
|00001d40| 6f 70 20 67 61 64 67 65 | 74 20 61 6e 64 20 77 61 |op gadge|t and wa|
|00001d50| 6e 74 20 74 6f 20 73 68 | 6f 77 20 69 74 73 0a 73 |nt to sh|ow its.s|
|00001d60| 74 61 74 65 20 77 69 74 | 68 20 61 20 67 61 75 67 |tate wit|h a gaug|
|00001d70| 65 20 6f 62 6a 65 63 74 | 2e 20 59 6f 75 20 63 6f |e object|. You co|
|00001d80| 6e 6e 65 63 74 20 4d 55 | 49 41 5c 5f 50 72 6f 70 |nnect MU|IA\_Prop|
|00001d90| 5c 5f 46 69 72 73 74 0a | 77 69 74 68 20 4d 55 49 |\_First.|with MUI|
|00001da0| 41 5c 5f 47 61 75 67 65 | 5c 5f 4d 61 78 20 61 6e |A\_Gauge|\_Max an|
|00001db0| 64 20 65 76 65 72 79 74 | 68 69 6e 67 20 69 73 20 |d everyt|hing is |
|00001dc0| 66 69 6e 65 2c 20 74 68 | 65 20 67 61 75 67 65 0a |fine, th|e gauge.|
|00001dd0| 67 65 74 73 20 75 70 64 | 61 74 65 64 20 77 68 65 |gets upd|ated whe|
|00001de0| 6e 20 74 68 65 20 75 73 | 65 72 20 64 72 61 67 73 |n the us|er drags|
|00001df0| 20 61 72 6f 75 6e 64 20 | 74 68 65 20 67 61 64 67 | around |the gadg|
|00001e00| 65 74 2e 20 4f 6e 0a 74 | 68 65 20 6f 74 68 65 72 |et. On.t|he other|
|00001e10| 20 68 61 6e 64 2c 20 69 | 66 20 79 6f 75 72 20 70 | hand, i|f your p|
|00001e20| 72 6f 67 72 61 6d 20 73 | 65 74 73 20 74 68 65 20 |rogram s|ets the |
|00001e30| 67 61 75 67 65 20 74 6f | 20 61 20 6e 65 77 0a 76 |gauge to| a new.v|
|00001e40| 61 6c 75 65 2c 20 79 6f | 75 20 6d 69 67 68 74 20 |alue, yo|u might |
|00001e50| 77 61 6e 74 20 79 6f 75 | 72 20 70 72 6f 70 20 67 |want you|r prop g|
|00001e60| 61 64 67 65 74 20 74 6f | 20 69 6d 6d 65 64 69 61 |adget to| immedia|
|00001e70| 74 65 6c 79 0a 73 68 6f | 77 20 74 68 69 73 20 63 |tely.sho|w this c|
|00001e80| 68 61 6e 67 65 20 61 6e | 64 20 63 6f 6e 6e 65 63 |hange an|d connec|
|00001e90| 74 20 4d 55 49 41 5c 5f | 47 61 75 67 65 5c 5f 4d |t MUIA\_|Gauge\_M|
|00001ea0| 61 78 20 77 69 64 74 68 | 0a 4d 55 49 41 5c 5f 50 |ax width|.MUIA\_P|
|00001eb0| 72 6f 70 5c 5f 46 69 72 | 73 74 2e 20 56 6f 69 6c |rop\_Fir|st. Voil|
|00001ec0| 61 2c 20 61 20 70 65 72 | 66 65 63 74 20 65 6e 64 |a, a per|fect end|
|00001ed0| 6c 65 73 73 20 6c 6f 6f | 70 2e 0a 0a 54 6f 20 61 |less loo|p...To a|
|00001ee0| 76 6f 69 64 20 74 68 65 | 73 65 20 63 6f 6e 64 69 |void the|se condi|
|00001ef0| 74 69 6f 6e 73 2c 20 4d | 55 49 20 61 6c 77 61 79 |tions, M|UI alway|
|00001f00| 73 20 63 68 65 63 6b 73 | 20 6e 65 77 0a 61 74 74 |s checks| new.att|
|00001f10| 72 69 62 75 74 65 20 76 | 61 6c 75 65 73 20 61 67 |ribute v|alues ag|
|00001f20| 61 69 6e 73 74 20 74 68 | 65 20 63 75 72 72 65 6e |ainst th|e curren|
|00001f30| 74 20 73 74 61 74 65 20 | 61 6e 64 0a 63 61 6e 63 |t state |and.canc|
|00001f40| 65 6c 73 20 6e 6f 74 69 | 66 69 63 61 74 69 6f 6e |els noti|fication|
|00001f50| 20 77 68 65 6e 20 62 6f | 74 68 20 76 61 6c 75 65 | when bo|th value|
|00001f60| 73 20 61 72 65 20 65 71 | 75 61 6c 2e 0a 54 68 75 |s are eq|ual..Thu|
|00001f70| 73 2c 20 73 65 74 74 69 | 6e 67 20 4d 55 49 41 5c |s, setti|ng MUIA\|
|00001f80| 5f 50 72 6f 70 5c 5f 46 | 69 72 73 74 20 74 6f 20 |_Prop\_F|irst to |
|00001f90| 34 32 20 69 66 20 74 68 | 65 20 70 72 6f 70 0a 67 |42 if th|e prop.g|
|00001fa0| 61 64 67 65 74 73 20 66 | 69 72 73 74 20 70 6f 73 |adgets f|irst pos|
|00001fb0| 69 74 69 6f 6e 20 69 73 | 20 61 6c 72 65 61 64 79 |ition is| already|
|00001fc0| 20 34 32 20 77 6f 6e 27 | 74 20 74 72 69 67 67 65 | 42 won'|t trigge|
|00001fd0| 72 0a 61 6e 79 20 6e 6f | 74 69 66 69 63 61 74 69 |r.any no|tificati|
|00001fe0| 6f 6e 20 65 76 65 6e 74 | 2e 0a 0a 5c 73 75 62 73 |on event|...\subs|
|00001ff0| 75 62 73 65 63 74 69 6f | 6e 2a 7b 49 4e 50 55 54 |ubsectio|n*{INPUT|
|00002000| 53 7d 0a 5c 62 65 67 69 | 6e 7b 64 65 73 63 72 69 |S}.\begi|n{descri|
|00002010| 70 74 69 6f 6e 7d 0a 5c | 69 74 65 6d 5b 54 72 69 |ption}.\|item[Tri|
|00002020| 67 41 74 74 72 5d 20 20 | 20 20 20 61 74 74 72 69 |gAttr] | attri|
|00002030| 62 75 74 65 20 74 68 61 | 74 20 74 72 69 67 67 65 |bute tha|t trigge|
|00002040| 72 73 20 74 68 65 20 6e | 6f 74 69 66 69 63 61 74 |rs the n|otificat|
|00002050| 69 6f 6e 2e 0a 0a 5c 69 | 74 65 6d 5b 54 72 69 67 |ion...\i|tem[Trig|
|00002060| 56 61 6c 75 65 5d 20 20 | 20 20 76 61 6c 75 65 20 |Value] | value |
|00002070| 74 68 61 74 20 74 72 69 | 67 67 65 72 73 20 74 68 |that tri|ggers th|
|00002080| 65 20 6e 6f 74 69 66 69 | 63 61 74 69 6f 6e 2e 20 |e notifi|cation. |
|00002090| 54 68 65 0a 73 70 65 63 | 69 61 6c 20 76 61 6c 75 |The.spec|ial valu|
|000020a0| 65 20 4d 55 49 56 5c 5f | 45 76 65 72 79 54 69 6d |e MUIV\_|EveryTim|
|000020b0| 65 20 6d 61 6b 65 73 20 | 4d 55 49 20 65 78 65 63 |e makes |MUI exec|
|000020c0| 75 74 65 0a 74 68 65 20 | 6e 6f 74 69 66 69 63 61 |ute.the |notifica|
|000020d0| 74 69 6f 6e 20 6d 65 74 | 68 6f 64 20 65 76 65 72 |tion met|hod ever|
|000020e0| 79 20 74 69 6d 65 20 77 | 68 65 6e 0a 54 72 69 67 |y time w|hen.Trig|
|000020f0| 41 74 74 72 20 63 68 61 | 6e 67 65 73 2e 20 49 6e |Attr cha|nges. In|
|00002100| 20 74 68 69 73 20 63 61 | 73 65 2c 20 74 68 65 20 | this ca|se, the |
|00002110| 73 70 65 63 69 61 6c 0a | 76 61 6c 75 65 20 4d 55 |special.|value MU|
|00002120| 49 56 5c 5f 54 72 69 67 | 67 65 72 56 61 6c 75 65 |IV\_Trig|gerValue|
|00002130| 20 69 6e 20 74 68 65 20 | 6e 6f 74 69 66 69 63 61 | in the |notifica|
|00002140| 74 69 6f 6e 0a 6d 65 74 | 68 6f 64 20 77 69 6c 6c |tion.met|hod will|
|00002150| 20 62 65 20 72 65 70 6c | 61 63 65 64 20 77 69 74 | be repl|aced wit|
|00002160| 68 20 74 68 65 20 76 61 | 6c 75 65 0a 74 68 61 74 |h the va|lue.that|
|00002170| 20 54 72 69 67 41 74 74 | 72 20 68 61 73 20 62 65 | TrigAtt|r has be|
|00002180| 65 6e 20 73 65 74 20 74 | 6f 2e 20 59 6f 75 20 63 |en set t|o. You c|
|00002190| 61 6e 20 75 73 65 0a 4d | 55 49 56 5c 5f 54 72 69 |an use.M|UIV\_Tri|
|000021a0| 67 67 65 72 56 61 6c 75 | 65 20 75 70 20 74 6f 20 |ggerValu|e up to |
|000021b0| 66 6f 75 72 20 74 69 6d | 65 73 20 69 6e 20 6f 6e |four tim|es in on|
|000021c0| 65 0a 6e 6f 74 69 66 69 | 63 61 74 69 6f 6e 20 6d |e.notifi|cation m|
|000021d0| 65 74 68 6f 64 2e 20 53 | 69 6e 63 65 20 76 65 72 |ethod. S|ince ver|
|000021e0| 73 69 6f 6e 20 38 20 6f | 66 0a 6d 75 69 6d 61 73 |sion 8 o|f.muimas|
|000021f0| 74 65 72 2e 6c 69 62 72 | 61 72 79 2c 20 79 6f 75 |ter.libr|ary, you|
|00002200| 20 63 61 6e 20 61 6c 73 | 6f 20 75 73 65 0a 4d 55 | can als|o use.MU|
|00002210| 49 56 5c 5f 4e 6f 74 54 | 72 69 67 67 65 72 56 61 |IV\_NotT|riggerVa|
|00002220| 6c 75 65 20 68 65 72 65 | 2e 20 49 6e 20 74 68 69 |lue here|. In thi|
|00002230| 73 20 63 61 73 65 2c 0a | 4d 55 49 20 77 69 6c 6c |s case,.|MUI will|
|00002240| 20 72 65 70 6c 61 63 65 | 20 54 52 55 45 20 76 61 | replace| TRUE va|
|00002250| 6c 75 65 73 20 77 69 74 | 68 20 46 41 4c 53 45 0a |lues wit|h FALSE.|
|00002260| 61 6e 64 20 46 41 4c 53 | 45 20 76 61 6c 75 65 73 |and FALS|E values|
|00002270| 20 77 69 74 68 20 54 52 | 55 45 2e 20 54 68 69 73 | with TR|UE. This|
|00002280| 0a 63 61 6e 20 62 65 63 | 6f 6d 65 20 71 75 69 74 |.can bec|ome quit|
|00002290| 65 20 75 73 65 66 75 6c | 20 77 68 65 6e 20 79 6f |e useful| when yo|
|000022a0| 75 20 74 72 79 20 74 6f | 20 73 65 74 0a 27 27 6e |u try to| set.''n|
|000022b0| 65 67 61 74 69 76 65 27 | 27 20 61 74 74 72 69 62 |egative'|' attrib|
|000022c0| 75 74 65 73 20 6c 69 6b | 65 20 4d 55 49 41 5c 5f |utes lik|e MUIA\_|
|000022d0| 44 69 73 61 62 6c 65 64 | 2e 0a 0a 5c 69 74 65 6d |Disabled|...\item|
|000022e0| 5b 44 65 73 74 4f 62 6a | 5d 20 20 20 20 20 20 6f |[DestObj|] o|
|000022f0| 62 6a 65 63 74 20 6f 6e | 20 77 68 69 63 68 20 74 |bject on| which t|
|00002300| 6f 20 70 65 72 66 6f 72 | 6d 20 74 68 65 20 6e 6f |o perfor|m the no|
|00002310| 74 69 66 69 63 61 74 69 | 6f 6e 0a 6d 65 74 68 6f |tificati|on.metho|
|00002320| 64 2e 20 45 69 74 68 65 | 72 20 73 75 70 70 6c 79 |d. Eithe|r supply|
|00002330| 20 61 20 76 61 6c 69 64 | 20 6f 62 6a 65 63 74 20 | a valid| object |
|00002340| 70 6f 69 6e 74 65 72 20 | 6f 72 0a 6f 6e 65 20 6f |pointer |or.one o|
|00002350| 66 20 74 68 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |f the fo|llowing |
|00002360| 73 70 65 63 69 61 6c 20 | 76 61 6c 75 65 73 20 28 |special |values (|
|00002370| 56 31 30 29 20 77 68 69 | 63 68 0a 77 69 6c 6c 20 |V10) whi|ch.will |
|00002380| 62 65 20 72 65 73 6f 6c | 76 65 64 20 61 74 20 74 |be resol|ved at t|
|00002390| 68 65 20 74 69 6d 65 20 | 74 68 65 20 65 76 65 6e |he time |the even|
|000023a0| 74 20 6f 63 63 75 72 73 | 3a 0a 5c 62 65 67 69 6e |t occurs|:.\begin|
|000023b0| 7b 64 65 73 63 72 69 70 | 74 69 6f 6e 7d 0a 5c 69 |{descrip|tion}.\i|
|000023c0| 74 65 6d 5b 4d 55 49 56 | 5c 5f 4e 6f 74 69 66 79 |tem[MUIV|\_Notify|
|000023d0| 5c 5f 53 65 6c 66 5d 20 | 20 20 20 20 20 20 20 2d |\_Self] | -|
|000023e0| 20 6e 6f 74 69 66 69 65 | 73 20 74 68 65 20 6f 62 | notifie|s the ob|
|000023f0| 6a 65 63 74 20 69 74 73 | 65 6c 66 2e 0a 5c 69 74 |ject its|elf..\it|
|00002400| 65 6d 5b 4d 55 49 56 5c | 5f 4e 6f 74 69 66 79 5c |em[MUIV\|_Notify\|
|00002410| 5f 57 69 6e 64 6f 77 5d | 20 20 20 20 20 20 2d 20 |_Window]| - |
|00002420| 6e 6f 74 69 66 69 65 73 | 20 74 68 65 20 6f 62 6a |notifies| the obj|
|00002430| 65 63 74 27 73 20 70 61 | 72 65 6e 74 20 77 69 6e |ect's pa|rent win|
|00002440| 64 6f 77 2e 0a 5c 69 74 | 65 6d 5b 4d 55 49 56 5c |dow..\it|em[MUIV\|
|00002450| 5f 4e 6f 74 69 66 79 5c | 5f 41 70 70 6c 69 63 61 |_Notify\|_Applica|
|00002460| 74 69 6f 6e 5d 20 2d 20 | 6e 6f 74 69 66 69 65 73 |tion] - |notifies|
|00002470| 20 74 68 65 20 6f 62 6a | 65 63 74 27 73 20 61 70 | the obj|ect's ap|
|00002480| 70 6c 69 63 61 74 69 6f | 6e 2e 0a 5c 65 6e 64 7b |plicatio|n..\end{|
|00002490| 64 65 73 63 72 69 70 74 | 69 6f 6e 7d 0a 0a 5c 69 |descript|ion}..\i|
|000024a0| 74 65 6d 5b 46 6f 6c 6c | 6f 77 50 61 72 61 6d 73 |tem[Foll|owParams|
|000024b0| 5d 20 6e 75 6d 62 65 72 | 20 6f 66 20 66 6f 6c 6c |] number| of foll|
|000024c0| 6f 77 69 6e 67 20 70 61 | 72 61 6d 65 74 65 72 73 |owing pa|rameters|
|000024d0| 2e 20 49 66 20 79 6f 75 | 20 65 2e 67 2e 0a 68 61 |. If you| e.g..ha|
|000024e0| 76 65 20 61 20 6e 6f 74 | 69 66 69 63 61 74 69 6f |ve a not|ificatio|
|000024f0| 6e 20 6d 65 74 68 6f 64 | 20 77 69 74 68 20 74 68 |n method| with th|
|00002500| 72 65 65 20 70 61 72 74 | 73 0a 28 6d 61 79 62 65 |ree part|s.(maybe|
|00002510| 20 4d 55 49 4d 5c 5f 53 | 65 74 2c 61 74 74 72 2c | MUIM\_S|et,attr,|
|00002520| 76 61 6c 29 2c 20 79 6f | 75 20 68 61 76 65 20 74 |val), yo|u have t|
|00002530| 6f 20 73 65 74 0a 46 6f | 6c 6c 6f 77 50 61 72 61 |o set.Fo|llowPara|
|00002540| 6d 73 20 74 6f 20 33 2e | 20 54 68 69 73 20 61 6c |ms to 3.| This al|
|00002550| 6c 6f 77 73 20 4d 55 49 | 20 74 6f 20 63 6f 70 79 |lows MUI| to copy|
|00002560| 0a 74 68 65 20 63 6f 6d | 70 6c 65 74 65 20 6e 6f |.the com|plete no|
|00002570| 74 69 66 69 63 61 74 69 | 6f 6e 20 6d 65 74 68 6f |tificati|on metho|
|00002580| 64 20 69 6e 74 6f 20 61 | 0a 70 72 69 76 61 74 65 |d into a|.private|
|00002590| 20 62 75 66 66 65 72 20 | 66 6f 72 20 6c 61 74 65 | buffer |for late|
|000025a0| 72 20 75 73 65 2e 0a 0a | 5c 69 74 65 6d 5b 2e 2e |r use...|\item[..|
|000025b0| 2e 5d 20 20 20 20 20 20 | 20 20 20 20 66 6f 6c 6c |.] | foll|
|000025c0| 6f 77 69 6e 67 20 69 73 | 20 74 68 65 20 6e 6f 74 |owing is| the not|
|000025d0| 69 66 69 63 61 74 69 6f | 6e 20 6d 65 74 68 6f 64 |ificatio|n method|
|000025e0| 2e 0a 5c 65 6e 64 7b 64 | 65 73 63 72 69 70 74 69 |..\end{d|escripti|
|000025f0| 6f 6e 7d 0a 0a 5c 73 75 | 62 73 75 62 73 65 63 74 |on}..\su|bsubsect|
|00002600| 69 6f 6e 2a 7b 45 58 41 | 4d 50 4c 45 7d 0a 5c 73 |ion*{EXA|MPLE}.\s|
|00002610| 6d 61 6c 6c 0a 5c 62 65 | 67 69 6e 7b 76 65 72 62 |mall.\be|gin{verb|
|00002620| 61 74 69 6d 7d 0a 0a 2f | 2a 0a 2a 2a 20 45 76 65 |atim}../|*.** Eve|
|00002630| 72 79 20 74 69 6d 65 20 | 77 68 65 6e 20 74 68 65 |ry time |when the|
|00002640| 20 75 73 65 72 20 72 65 | 6c 65 61 73 65 73 20 61 | user re|leases a|
|00002650| 20 62 75 74 74 6f 6e 0a | 2a 2a 20 28 61 6e 64 20 | button.|** (and |
|00002660| 74 68 65 20 6d 6f 75 73 | 65 20 69 73 20 73 74 69 |the mous|e is sti|
|00002670| 6c 6c 20 6f 76 65 72 20 | 69 74 29 2c 20 74 68 65 |ll over |it), the|
|00002680| 20 62 75 74 74 6f 6e 20 | 6f 62 6a 65 63 74 0a 2a | button |object.*|
|00002690| 2a 20 67 65 74 73 20 69 | 74 73 20 4d 55 49 41 5f |* gets i|ts MUIA_|
|000026a0| 50 72 65 73 73 65 64 20 | 61 74 74 72 69 62 75 74 |Pressed |attribut|
|000026b0| 65 20 73 65 74 20 74 6f | 20 46 41 4c 53 45 2e 0a |e set to| FALSE..|
|000026c0| 2a 2a 20 54 68 61 74 73 | 20 77 68 61 74 20 61 20 |** Thats| what a |
|000026d0| 70 72 6f 67 72 61 6d 20 | 63 61 6e 20 72 65 61 63 |program |can reac|
|000026e0| 74 20 6f 6e 20 77 69 74 | 68 20 6e 6f 74 69 66 69 |t on wit|h notifi|
|000026f0| 63 61 74 69 6f 6e 2c 0a | 2a 2a 20 65 2e 67 2e 20 |cation,.|** e.g. |
|00002700| 62 79 20 6f 70 65 6e 65 | 6e 69 6e 67 20 61 6e 6f |by opene|ning ano|
|00002710| 74 68 65 72 20 77 69 6e | 64 6f 77 2e 0a 2a 2f 0a |ther win|dow..*/.|
|00002720| 0a 44 6f 4d 65 74 68 6f | 64 28 62 75 74 74 6f 6e |.DoMetho|d(button|
|00002730| 6f 62 6a 2c 4d 55 49 4d | 5f 4e 6f 74 69 66 79 2c |obj,MUIM|_Notify,|
|00002740| 0a 20 20 20 4d 55 49 41 | 5f 50 72 65 73 73 65 64 |. MUIA|_Pressed|
|00002750| 2c 20 46 41 4c 53 45 2c | 20 20 20 20 20 20 20 20 |, FALSE,| |
|00002760| 20 20 20 20 20 20 20 20 | 2f 2a 20 61 74 74 72 69 | |/* attri|
|00002770| 62 75 74 65 2f 76 61 6c | 75 65 20 70 61 69 72 20 |bute/val|ue pair |
|00002780| 2a 2f 0a 20 20 20 77 69 | 6e 64 6f 77 6f 62 6a 2c |*/. wi|ndowobj,|
|00002790| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027a0| 20 20 20 20 20 20 20 20 | 20 20 2f 2a 20 64 65 73 | | /* des|
|000027b0| 74 69 6e 61 74 69 6f 6e | 20 6f 62 6a 65 63 74 20 |tination| object |
|000027c0| 20 20 2a 2f 0a 20 20 20 | 33 2c 20 20 20 20 20 20 | */. |3, |
|000027d0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000027e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 2f 2a 20 33 | | /* 3|
|000027f0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 77 6f 72 64 73 | followi|ng words|
|00002800| 20 20 20 20 2a 2f 0a 20 | 20 20 4d 55 49 4d 5f 53 | */. | MUIM_S|
|00002810| 65 74 2c 20 4d 55 49 41 | 5f 57 69 6e 64 6f 77 5f |et, MUIA|_Window_|
|00002820| 4f 70 65 6e 2c 20 54 52 | 55 45 29 3b 20 20 2f 2a |Open, TR|UE); /*|
|00002830| 20 6e 6f 74 69 66 69 63 | 61 74 69 6f 6e 20 6d 65 | notific|ation me|
|00002840| 74 68 6f 64 20 20 2a 2f | 0a 0a 2f 2a 0a 2a 2a 20 |thod */|../*.** |
|00002850| 4c 65 74 73 20 73 61 79 | 20 77 65 20 77 61 6e 74 |Lets say| we want|
|00002860| 20 74 6f 20 73 68 6f 77 | 20 74 68 65 20 63 75 72 | to show| the cur|
|00002870| 72 65 6e 74 20 76 61 6c | 75 65 20 6f 66 20 61 0a |rent val|ue of a.|
|00002880| 2a 2a 20 70 72 6f 70 20 | 67 61 64 67 65 74 20 73 |** prop |gadget s|
|00002890| 6f 6d 65 77 68 65 72 65 | 20 69 6e 20 61 20 74 65 |omewhere| in a te|
|000028a0| 78 74 20 66 69 65 6c 64 | 3a 0a 2a 2f 0a 0a 44 6f |xt field|:.*/..Do|
|000028b0| 4d 65 74 68 6f 64 28 70 | 72 6f 70 6f 62 6a 2c 4d |Method(p|ropobj,M|
|000028c0| 55 49 4d 5f 4e 6f 74 69 | 66 79 2c 20 20 20 20 20 |UIM_Noti|fy, |
|000028d0| 20 2f 2a 20 6e 6f 74 69 | 66 69 63 61 74 69 6f 6e | /* noti|fication|
|000028e0| 20 69 73 20 74 72 69 67 | 67 65 72 65 64 20 20 20 | is trig|gered |
|000028f0| 2a 2f 0a 20 20 20 4d 55 | 49 41 5f 50 72 6f 70 5f |*/. MU|IA_Prop_|
|00002900| 46 69 72 73 74 2c 20 4d | 55 49 56 5f 45 76 65 72 |First, M|UIV_Ever|
|00002910| 79 54 69 6d 65 20 2f 2a | 20 65 76 65 72 79 20 74 |yTime /*| every t|
|00002920| 69 6d 65 20 74 68 65 20 | 61 74 74 72 20 63 68 61 |ime the |attr cha|
|00002930| 6e 67 65 73 20 2a 2f 0a | 20 20 20 74 65 78 74 6f |nges */.| texto|
|00002940| 62 6a 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |bj | |
|00002950| 20 20 20 20 20 20 20 20 | 20 20 20 2f 2a 20 64 65 | | /* de|
|00002960| 73 74 69 6e 61 74 69 6f | 6e 20 6f 62 6a 65 63 74 |stinatio|n object|
|00002970| 20 2a 2f 0a 20 20 20 34 | 2c 20 20 20 20 20 20 20 | */. 4|, |
|00002980| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00002990| 20 20 20 20 20 20 20 2f | 2a 20 34 20 66 6f 6c 6c | /|* 4 foll|
|000029a0| 6f 77 69 6e 67 20 77 6f | 72 64 73 20 20 2a 2f 0a |owing wo|rds */.|
|000029b0| 20 20 20 4d 55 49 4d 5f | 53 65 74 41 73 53 74 72 | MUIM_|SetAsStr|
|000029c0| 69 6e 67 2c 20 4d 55 49 | 41 5f 54 65 78 74 5f 43 |ing, MUI|A_Text_C|
|000029d0| 6f 6e 74 65 6e 74 73 2c | 0a 20 20 20 22 76 61 6c |ontents,|. "val|
|000029e0| 75 65 20 69 73 20 25 6c | 64 20 21 22 2c 20 4d 55 |ue is %l|d !", MU|
|000029f0| 49 56 5f 54 72 69 67 67 | 65 72 56 61 6c 75 65 29 |IV_Trigg|erValue)|
|00002a00| 3b 0a 20 20 20 2f 2a 20 | 4d 55 49 56 5f 54 72 69 |;. /* |MUIV_Tri|
|00002a10| 67 67 65 72 56 61 6c 75 | 65 20 77 69 6c 6c 20 62 |ggerValu|e will b|
|00002a20| 65 20 72 65 70 6c 61 63 | 65 64 20 77 69 74 68 20 |e replac|ed with |
|00002a30| 74 68 65 0a 20 20 20 20 | 20 20 63 75 72 72 65 6e |the. | curren|
|00002a40| 74 20 76 61 6c 75 65 20 | 6f 66 20 4d 55 49 41 5f |t value |of MUIA_|
|00002a50| 50 72 6f 70 5f 46 69 72 | 73 74 20 2a 2f 0a 0a 2f |Prop_Fir|st */../|
|00002a60| 2a 0a 2a 2a 20 49 6e 66 | 6f 72 6d 20 6f 75 72 20 |*.** Inf|orm our |
|00002a70| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 77 68 65 6e |applicat|ion when|
|00002a80| 20 74 68 65 20 75 73 65 | 72 20 68 69 74 73 20 72 | the use|r hits r|
|00002a90| 65 74 75 72 6e 0a 2a 2a | 20 69 6e 20 61 20 73 74 |eturn.**| in a st|
|00002aa0| 72 69 6e 67 20 67 61 64 | 67 65 74 3a 0a 2a 2f 0a |ring gad|get:.*/.|
|00002ab0| 0a 44 6f 4d 65 74 68 6f | 64 28 73 74 72 69 6e 67 |.DoMetho|d(string|
|00002ac0| 6f 62 6a 2c 4d 55 49 4d | 5f 4e 6f 74 69 66 79 2c |obj,MUIM|_Notify,|
|00002ad0| 0a 20 20 20 4d 55 49 41 | 5f 53 74 72 69 6e 67 5f |. MUIA|_String_|
|00002ae0| 41 63 6b 6e 6f 77 6c 65 | 64 67 65 2c 20 4d 55 49 |Acknowle|dge, MUI|
|00002af0| 56 5f 45 76 65 72 79 54 | 69 6d 65 2c 0a 20 20 20 |V_EveryT|ime,. |
|00002b00| 4d 55 49 56 5f 4e 6f 74 | 69 66 79 5f 41 70 70 6c |MUIV_Not|ify_Appl|
|00002b10| 69 63 61 74 69 6f 6e 2c | 20 32 2c 20 4d 55 49 4d |ication,| 2, MUIM|
|00002b20| 5f 41 70 70 6c 69 63 61 | 74 69 6f 6e 5f 52 65 74 |_Applica|tion_Ret|
|00002b30| 75 72 6e 49 44 2c 20 49 | 44 5f 46 4f 4f 42 41 52 |urnID, I|D_FOOBAR|
|00002b40| 29 3b 0a 0a 5c 65 6e 64 | 7b 76 65 72 62 61 74 69 |);..\end|{verbati|
|00002b50| 6d 7d 0a 5c 6e 6f 72 6d | 61 6c 73 69 7a 65 0a 5c |m}.\norm|alsize.\|
|00002b60| 73 75 62 73 65 63 74 69 | 6f 6e 5b 4d 55 49 4d 5c |subsecti|on[MUIM\|
|00002b70| 5f 53 65 74 5d 7b 4d 55 | 49 4d 5c 5f 53 65 74 20 |_Set]{MU|IM\_Set |
|00002b80| 28 56 34 29 7d 0a 0a 5c | 73 75 62 73 75 62 73 65 |(V4)}..\|subsubse|
|00002b90| 63 74 69 6f 6e 2a 7b 53 | 59 4e 4f 50 53 49 53 7d |ction*{S|YNOPSIS}|
|00002ba0| 0a 44 6f 4d 65 74 68 6f | 64 28 6f 62 6a 2c 4d 55 |.DoMetho|d(obj,MU|
|00002bb0| 49 4d 5c 5f 53 65 74 2c | 55 4c 4f 4e 47 20 61 74 |IM\_Set,|ULONG at|
|00002bc0| 74 72 2c 20 55 4c 4f 4e | 47 20 76 61 6c 29 3b 0a |tr, ULON|G val);.|
|00002bd0| 0a 5c 73 75 62 73 75 62 | 73 65 63 74 69 6f 6e 2a |.\subsub|section*|
|00002be0| 7b 46 55 4e 43 54 49 4f | 4e 7d 0a 53 65 74 20 61 |{FUNCTIO|N}.Set a|
|00002bf0| 6e 20 61 74 74 72 69 62 | 75 74 65 20 74 6f 20 61 |n attrib|ute to a|
|00002c00| 20 76 61 6c 75 65 2e 20 | 4e 6f 72 6d 61 6c 6c 79 | value. |Normally|
|00002c10| 2c 20 79 6f 75 20 77 6f | 75 6c 64 20 73 65 74 0a |, you wo|uld set.|
|00002c20| 61 74 74 72 69 62 75 74 | 65 73 20 77 69 74 68 20 |attribut|es with |
|00002c30| 69 6e 74 75 69 74 69 6f | 6e 2e 6c 69 62 72 61 72 |intuitio|n.librar|
|00002c40| 79 20 53 65 74 41 74 74 | 72 73 28 29 20 6f 72 20 |y SetAtt|rs() or |
|00002c50| 77 69 74 68 0a 74 68 65 | 20 4f 4d 5c 5f 53 45 54 |with.the| OM\_SET|
|00002c60| 20 6d 65 74 68 6f 64 20 | 61 73 20 77 69 74 68 20 | method |as with |
|00002c70| 61 6e 79 20 6f 74 68 65 | 72 20 62 6f 6f 70 73 69 |any othe|r boopsi|
|00002c80| 20 6f 62 6a 65 63 74 73 | 2e 0a 42 75 74 20 73 69 | objects|..But si|
|00002c90| 6e 63 65 20 74 68 65 73 | 65 20 63 61 6c 6c 73 20 |nce thes|e calls |
|00002ca0| 6e 65 65 64 20 61 20 63 | 6f 6d 70 6c 65 74 65 20 |need a c|omplete |
|00002cb0| 74 61 67 20 6c 69 73 74 | 2c 20 6e 6f 74 0a 6a 75 |tag list|, not.ju|
|00002cc0| 73 74 20 61 20 73 69 6e | 67 6c 65 20 61 74 74 72 |st a sin|gle attr|
|00002cd0| 69 62 75 74 65 2f 76 61 | 6c 75 65 20 70 61 69 72 |ibute/va|lue pair|
|00002ce0| 2c 20 74 68 65 79 20 61 | 72 65 20 6e 6f 74 0a 75 |, they a|re not.u|
|00002cf0| 73 65 66 75 6c 20 77 69 | 74 68 69 6e 20 61 20 4d |seful wi|thin a M|
|00002d00| 55 49 4d 5c 5f 4e 6f 74 | 69 66 79 20 6d 65 74 68 |UIM\_Not|ify meth|
|00002d10| 6f 64 2e 0a 0a 5c 73 75 | 62 73 75 62 73 65 63 74 |od...\su|bsubsect|
|00002d20| 69 6f 6e 2a 7b 49 4e 50 | 55 54 53 7d 0a 5c 62 65 |ion*{INP|UTS}.\be|
|00002d30| 67 69 6e 7b 64 65 73 63 | 72 69 70 74 69 6f 6e 7d |gin{desc|ription}|
|00002d40| 0a 5c 69 74 65 6d 5b 61 | 74 74 72 5d 20 20 61 74 |.\item[a|ttr] at|
|00002d50| 74 72 69 62 75 74 65 20 | 79 6f 75 20 77 61 6e 74 |tribute |you want|
|00002d60| 20 74 6f 20 73 65 74 2e | 0a 5c 69 74 65 6d 5b 76 | to set.|.\item[v|
|00002d70| 61 6c 5d 20 20 20 76 61 | 6c 75 65 20 74 6f 20 73 |al] va|lue to s|
|00002d80| 65 74 20 74 68 65 20 61 | 74 74 72 69 62 75 74 65 |et the a|ttribute|
|00002d90| 20 74 6f 2e 0a 5c 65 6e | 64 7b 64 65 73 63 72 69 | to..\en|d{descri|
|00002da0| 70 74 69 6f 6e 7d 0a 0a | 5c 73 75 62 73 75 62 73 |ption}..|\subsubs|
|00002db0| 65 63 74 69 6f 6e 2a 7b | 45 58 41 4d 50 4c 45 7d |ection*{|EXAMPLE}|
|00002dc0| 0a 5c 73 6d 61 6c 6c 0a | 5c 62 65 67 69 6e 7b 76 |.\small.|\begin{v|
|00002dd0| 65 72 62 61 74 69 6d 7d | 0a 44 6f 4d 65 74 68 6f |erbatim}|.DoMetho|
|00002de0| 64 28 73 74 72 6f 62 6a | 2c 4d 55 49 4d 5f 53 65 |d(strobj|,MUIM_Se|
|00002df0| 74 2c 4d 55 49 41 5f 53 | 74 72 69 6e 67 5f 43 6f |t,MUIA_S|tring_Co|
|00002e00| 6e 74 65 6e 74 73 2c 22 | 66 6f 6f 62 61 72 22 29 |ntents,"|foobar")|
|00002e10| 3b 0a 0a 61 6e 64 0a 0a | 53 65 74 41 74 74 72 73 |;..and..|SetAttrs|
|00002e20| 28 73 74 72 6f 62 6a 2c | 4d 55 49 41 5f 53 74 72 |(strobj,|MUIA_Str|
|00002e30| 69 6e 67 5f 43 6f 6e 74 | 65 6e 74 73 2c 22 66 6f |ing_Cont|ents,"fo|
|00002e40| 6f 62 61 72 22 2c 54 41 | 47 5f 44 4f 4e 45 29 3b |obar",TA|G_DONE);|
|00002e50| 0a 0a 61 72 65 20 65 71 | 75 61 6c 2e 0a 5c 65 6e |..are eq|ual..\en|
|00002e60| 64 7b 76 65 72 62 61 74 | 69 6d 7d 0a 5c 6e 6f 72 |d{verbat|im}.\nor|
|00002e70| 6d 61 6c 73 69 7a 65 0a | 5c 73 75 62 73 75 62 73 |malsize.|\subsubs|
|00002e80| 65 63 74 69 6f 6e 2a 7b | 53 45 45 20 41 4c 53 4f |ection*{|SEE ALSO|
|00002e90| 7d 0a 4d 55 49 4d 5c 5f | 53 65 74 41 73 53 74 72 |}.MUIM\_|SetAsStr|
|00002ea0| 69 6e 67 2c 20 4d 55 49 | 4d 5c 5f 4e 6f 74 69 66 |ing, MUI|M\_Notif|
|00002eb0| 79 2c 20 4d 55 49 4d 5c | 5f 4e 6f 4e 6f 74 69 66 |y, MUIM\|_NoNotif|
|00002ec0| 79 53 65 74 0a 0a 5c 73 | 75 62 73 65 63 74 69 6f |ySet..\s|ubsectio|
|00002ed0| 6e 5b 4d 55 49 4d 5c 5f | 53 65 74 41 73 53 74 72 |n[MUIM\_|SetAsStr|
|00002ee0| 69 6e 67 5d 7b 4d 55 49 | 4d 5c 5f 53 65 74 41 73 |ing]{MUI|M\_SetAs|
|00002ef0| 53 74 72 69 6e 67 20 28 | 56 34 29 7d 0a 0a 5c 73 |String (|V4)}..\s|
|00002f00| 75 62 73 75 62 73 65 63 | 74 69 6f 6e 2a 7b 53 59 |ubsubsec|tion*{SY|
|00002f10| 4e 4f 50 53 49 53 7d 0a | 44 6f 4d 65 74 68 6f 64 |NOPSIS}.|DoMethod|
|00002f20| 28 6f 62 6a 2c 4d 55 49 | 4d 5c 5f 53 65 74 41 73 |(obj,MUI|M\_SetAs|
|00002f30| 53 74 72 69 6e 67 2c 55 | 4c 4f 4e 47 20 61 74 74 |String,U|LONG att|
|00002f40| 72 2c 20 63 68 61 72 20 | 24 5c 61 73 74 24 66 6f |r, char |$\ast$fo|
|00002f50| 72 6d 61 74 2c 20 55 4c | 4f 4e 47 20 76 61 6c 2c |rmat, UL|ONG val,|
|00002f60| 20 2f 24 5c 61 73 74 24 | 20 2e 2e 2e 20 24 5c 61 | /$\ast$| ... $\a|
|00002f70| 73 74 24 2f 29 3b 0a 0a | 5c 73 75 62 73 75 62 73 |st$/);..|\subsubs|
|00002f80| 65 63 74 69 6f 6e 2a 7b | 46 55 4e 43 54 49 4f 4e |ection*{|FUNCTION|
|00002f90| 7d 0a 53 65 74 20 61 20 | 28 74 65 78 74 20 6b 69 |}.Set a |(text ki|
|00002fa0| 6e 64 29 20 61 74 74 72 | 69 62 75 74 65 20 74 6f |nd) attr|ibute to|
|00002fb0| 20 61 20 73 74 72 69 6e | 67 2e 20 54 68 69 73 20 | a strin|g. This |
|00002fc0| 63 61 6e 20 62 65 20 75 | 73 65 66 75 6c 0a 69 66 |can be u|seful.if|
|00002fd0| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 63 6f 6e | you wan|t to con|
|00002fe0| 6e 65 63 74 20 61 20 6e | 75 6d 65 72 69 63 20 61 |nect a n|umeric a|
|00002ff0| 74 74 72 69 62 75 74 65 | 20 6f 66 20 61 6e 20 6f |ttribute| of an o|
|00003000| 62 6a 65 63 74 20 77 69 | 74 68 0a 61 20 74 65 78 |bject wi|th.a tex|
|00003010| 74 20 61 74 74 72 69 62 | 75 74 65 20 6f 66 20 61 |t attrib|ute of a|
|00003020| 6e 6f 74 68 65 72 20 6f | 62 6a 65 63 74 2e 0a 0a |nother o|bject...|
|00003030| 5c 73 75 62 73 75 62 73 | 65 63 74 69 6f 6e 2a 7b |\subsubs|ection*{|
|00003040| 49 4e 50 55 54 53 7d 0a | 5c 62 65 67 69 6e 7b 64 |INPUTS}.|\begin{d|
|00003050| 65 73 63 72 69 70 74 69 | 6f 6e 7d 0a 5c 69 74 65 |escripti|on}.\ite|
|00003060| 6d 5b 61 74 74 72 5d 20 | 20 20 20 61 74 74 72 69 |m[attr] | attri|
|00003070| 62 75 74 65 20 74 6f 20 | 73 65 74 2e 0a 5c 69 74 |bute to |set..\it|
|00003080| 65 6d 5b 66 6f 72 6d 61 | 74 5d 20 20 43 20 6c 69 |em[forma|t] C li|
|00003090| 6b 65 20 66 6f 72 6d 61 | 74 74 69 6e 67 20 73 74 |ke forma|tting st|
|000030a0| 72 69 6e 67 2c 20 72 65 | 6d 65 6d 62 65 72 20 74 |ring, re|member t|
|000030b0| 6f 20 75 73 65 20 27 27 | 5c 25 6c 64 27 27 20 21 |o use ''|\%ld'' !|
|000030c0| 0a 5c 69 74 65 6d 5b 76 | 61 6c 2c 20 2e 2e 2e 5d |.\item[v|al, ...]|
|000030d0| 20 6f 6e 65 20 6f 72 20 | 6d 6f 72 65 20 70 61 72 | one or |more par|
|000030e0| 65 6d 65 74 65 72 73 20 | 66 6f 72 20 74 68 65 20 |emeters |for the |
|000030f0| 66 6f 72 6d 61 74 20 73 | 74 72 69 6e 67 2e 0a 5c |format s|tring..\|
|00003100| 65 6e 64 7b 64 65 73 63 | 72 69 70 74 69 6f 6e 7d |end{desc|ription}|
|00003110| 0a 0a 5c 73 75 62 73 75 | 62 73 65 63 74 69 6f 6e |..\subsu|bsection|
|00003120| 2a 7b 45 58 41 4d 50 4c | 45 7d 0a 5c 73 6d 61 6c |*{EXAMPL|E}.\smal|
|00003130| 6c 0a 5c 62 65 67 69 6e | 7b 76 65 72 62 61 74 69 |l.\begin|{verbati|
|00003140| 6d 7d 0a 0a 73 74 61 6e | 64 20 61 6c 6f 6e 65 3a |m}..stan|d alone:|
|00003150| 0a 0a 44 6f 4d 65 74 68 | 6f 64 28 74 78 6f 62 6a |..DoMeth|od(txobj|
|00003160| 2c 4d 55 49 4d 5f 53 65 | 74 41 73 53 74 72 69 6e |,MUIM_Se|tAsStrin|
|00003170| 67 2c 4d 55 49 41 5f 54 | 65 78 74 5f 43 6f 6e 74 |g,MUIA_T|ext_Cont|
|00003180| 65 6e 74 73 2c 0a 20 20 | 20 20 20 20 20 20 20 22 |ents,. | "|
|00003190| 4d 79 20 6e 61 6d 65 20 | 69 73 20 25 73 20 61 6e |My name |is %s an|
|000031a0| 64 20 49 20 61 6d 20 25 | 6c 64 20 79 65 61 72 73 |d I am %|ld years|
|000031b0| 20 6f 6c 64 2e 22 2c 6e | 61 6d 65 2c 61 67 65 29 | old.",n|ame,age)|
|000031c0| 3b 0a 0a 77 69 74 68 69 | 6e 20 61 20 6e 6f 74 69 |;..withi|n a noti|
|000031d0| 66 69 63 61 74 69 6f 6e | 20 73 74 61 74 65 6d 65 |fication| stateme|
|000031e0| 6e 74 3a 0a 0a 44 6f 4d | 65 74 68 6f 64 28 70 72 |nt:..DoM|ethod(pr|
|000031f0| 6f 70 6f 62 6a 2c 4d 55 | 49 4d 5f 4e 6f 74 69 66 |opobj,MU|IM_Notif|
|00003200| 79 2c 4d 55 49 41 5f 50 | 72 6f 70 5f 46 69 72 73 |y,MUIA_P|rop_Firs|
|00003210| 74 2c 4d 55 49 56 5f 45 | 76 65 72 79 54 69 6d 65 |t,MUIV_E|veryTime|
|00003220| 2c 0a 20 20 20 20 20 20 | 20 20 20 74 78 6f 62 6a |,. | txobj|
|00003230| 2c 34 2c 4d 55 49 4d 5f | 53 65 74 41 73 53 74 72 |,4,MUIM_|SetAsStr|
|00003240| 69 6e 67 2c 4d 55 49 41 | 5f 54 65 78 74 5f 43 6f |ing,MUIA|_Text_Co|
|00003250| 6e 74 65 6e 74 73 2c 0a | 20 20 20 20 20 20 20 20 |ntents,.| |
|00003260| 20 22 70 72 6f 70 20 67 | 61 64 67 65 74 20 73 68 | "prop g|adget sh|
|00003270| 6f 77 73 20 25 6c 64 2e | 22 2c 4d 55 49 56 5f 54 |ows %ld.|",MUIV_T|
|00003280| 72 69 67 67 65 72 56 61 | 6c 75 65 29 3b 0a 0a 5c |riggerVa|lue);..\|
|00003290| 65 6e 64 7b 76 65 72 62 | 61 74 69 6d 7d 0a 5c 6e |end{verb|atim}.\n|
|000032a0| 6f 72 6d 61 6c 73 69 7a | 65 0a 5c 73 75 62 73 75 |ormalsiz|e.\subsu|
|000032b0| 62 73 65 63 74 69 6f 6e | 2a 7b 53 45 45 20 41 4c |bsection|*{SEE AL|
|000032c0| 53 4f 7d 0a 4d 55 49 4d | 5c 5f 53 65 74 2c 20 4d |SO}.MUIM|\_Set, M|
|000032d0| 55 49 4d 5c 5f 4e 6f 74 | 69 66 79 0a 0a 5c 73 75 |UIM\_Not|ify..\su|
|000032e0| 62 73 65 63 74 69 6f 6e | 5b 4d 55 49 4d 5c 5f 53 |bsection|[MUIM\_S|
|000032f0| 65 74 55 44 61 74 61 5d | 7b 4d 55 49 4d 5c 5f 53 |etUData]|{MUIM\_S|
|00003300| 65 74 55 44 61 74 61 20 | 28 56 38 29 7d 0a 0a 5c |etUData |(V8)}..\|
|00003310| 73 75 62 73 75 62 73 65 | 63 74 69 6f 6e 2a 7b 53 |subsubse|ction*{S|
|00003320| 59 4e 4f 50 53 49 53 7d | 0a 44 6f 4d 65 74 68 6f |YNOPSIS}|.DoMetho|
|00003330| 64 28 6f 62 6a 2c 4d 55 | 49 4d 5c 5f 53 65 74 55 |d(obj,MU|IM\_SetU|
|00003340| 44 61 74 61 2c 55 4c 4f | 4e 47 20 75 64 61 74 61 |Data,ULO|NG udata|
|00003350| 2c 20 55 4c 4f 4e 47 20 | 61 74 74 72 2c 20 55 4c |, ULONG |attr, UL|
|00003360| 4f 4e 47 20 76 61 6c 29 | 3b 0a 0a 5c 73 75 62 73 |ONG val)|;..\subs|
|00003370| 75 62 73 65 63 74 69 6f | 6e 2a 7b 46 55 4e 43 54 |ubsectio|n*{FUNCT|
|00003380| 49 4f 4e 7d 0a 54 68 69 | 73 20 6d 65 74 68 6f 64 |ION}.Thi|s method|
|00003390| 20 74 65 73 74 73 20 69 | 66 20 74 68 65 20 4d 55 | tests i|f the MU|
|000033a0| 49 41 5c 5f 55 73 65 72 | 44 61 74 61 20 6f 66 20 |IA\_User|Data of |
|000033b0| 74 68 65 20 6f 62 6a 65 | 63 74 0a 63 6f 6e 74 61 |the obje|ct.conta|
|000033c0| 69 6e 73 20 74 68 65 20 | 67 69 76 65 6e 20 5c 66 |ins the |given \f|
|000033d0| 6c 71 20 75 64 61 74 61 | 5c 66 72 71 5c 20 20 61 |lq udata|\frq\ a|
|000033e0| 6e 64 20 73 65 74 73 20 | 5c 66 6c 71 20 61 74 74 |nd sets |\flq att|
|000033f0| 72 5c 66 72 71 5c 20 20 | 74 6f 0a 5c 66 6c 71 20 |r\frq\ |to.\flq |
|00003400| 76 61 6c 5c 66 72 71 5c | 20 20 66 6f 72 20 69 74 |val\frq\| for it|
|00003410| 73 65 6c 66 20 69 6e 20 | 74 68 69 73 20 63 61 73 |self in |this cas|
|00003420| 65 2e 0a 0a 41 6c 74 6f | 75 67 68 20 74 68 69 73 |e...Alto|ugh this|
|00003430| 20 69 73 20 6e 6f 74 20 | 76 65 72 79 20 75 73 65 | is not |very use|
|00003440| 66 75 6c 20 66 6f 72 20 | 73 69 6e 67 6c 65 20 6f |ful for |single o|
|00003450| 62 6a 65 63 74 73 2c 0a | 70 65 72 66 6f 72 6d 69 |bjects,.|performi|
|00003460| 6e 67 20 74 68 69 73 20 | 6d 65 74 68 6f 64 20 6f |ng this |method o|
|00003470| 6e 20 6f 62 6a 65 63 74 | 73 20 74 68 61 74 20 68 |n object|s that h|
|00003480| 61 6e 64 6c 65 20 63 68 | 69 6c 64 72 65 6e 0a 63 |andle ch|ildren.c|
|00003490| 61 6e 20 62 65 63 6f 6d | 65 20 76 65 72 79 20 68 |an becom|e very h|
|000034a0| 61 6e 64 79 2e 20 49 6e | 20 74 68 69 73 20 63 61 |andy. In| this ca|
|000034b0| 73 65 2c 20 61 6c 6c 20 | 74 68 65 20 63 68 69 6c |se, all |the chil|
|000034c0| 64 72 65 6e 0a 28 61 6e | 79 20 6d 61 79 62 65 20 |dren.(an|y maybe |
|000034d0| 74 68 65 69 72 20 63 68 | 69 6c 64 72 65 6e 29 20 |their ch|ildren) |
|000034e0| 61 72 65 20 74 65 73 74 | 65 64 20 61 67 61 69 6e |are test|ed again|
|000034f0| 73 74 20 5c 66 6c 71 20 | 75 64 61 74 61 5c 66 72 |st \flq |udata\fr|
|00003500| 71 20 0a 61 6e 64 20 61 | 6c 6c 20 6d 61 74 63 68 |q .and a|ll match|
|00003510| 69 6e 67 20 6f 62 6a 65 | 63 74 73 20 77 69 6c 6c |ing obje|cts will|
|00003520| 20 67 65 74 20 74 68 65 | 20 61 74 74 72 69 62 75 | get the| attribu|
|00003530| 74 65 20 73 65 74 2e 0a | 0a 49 66 20 79 6f 75 20 |te set..|.If you |
|00003540| 65 2e 67 2e 20 77 61 6e | 74 20 74 6f 20 63 6c 65 |e.g. wan|t to cle|
|00003550| 61 72 20 73 65 76 65 72 | 61 6c 20 73 74 72 69 6e |ar sever|al strin|
|00003560| 67 20 67 61 64 67 65 74 | 73 20 69 6e 0a 79 6f 75 |g gadget|s in.you|
|00003570| 72 20 61 70 70 6c 63 69 | 61 74 69 6f 6e 20 61 74 |r applci|ation at|
|00003580| 20 6f 6e 63 65 2c 20 79 | 6f 75 20 73 69 6d 70 6c | once, y|ou simpl|
|00003590| 79 20 67 69 76 65 20 74 | 68 65 6d 20 74 68 65 0a |y give t|hem the.|
|000035a0| 73 61 6d 65 20 4d 55 49 | 41 5c 5f 55 73 65 72 44 |same MUI|A\_UserD|
|000035b0| 61 74 61 20 61 6e 64 20 | 75 73 65 0a 0a 44 6f 4d |ata and |use..DoM|
|000035c0| 65 74 68 6f 64 28 61 70 | 70 2c 4d 55 49 4d 5c 5f |ethod(ap|p,MUIM\_|
|000035d0| 53 65 74 55 44 61 74 61 | 2c 4d 79 55 44 41 54 41 |SetUData|,MyUDATA|
|000035e0| 2c 4d 55 49 41 5c 5f 53 | 74 72 69 6e 67 5c 5f 43 |,MUIA\_S|tring\_C|
|000035f0| 6f 6e 74 65 6e 74 73 2c | 4e 55 4c 4c 29 3b 0a 0a |ontents,|NULL);..|
|00003600| 5c 73 75 62 73 75 62 73 | 65 63 74 69 6f 6e 2a 7b |\subsubs|ection*{|
|00003610| 49 4e 50 55 54 53 7d 0a | 5c 62 65 67 69 6e 7b 64 |INPUTS}.|\begin{d|
|00003620| 65 73 63 72 69 70 74 69 | 6f 6e 7d 0a 5c 69 74 65 |escripti|on}.\ite|
|00003630| 6d 5b 75 64 61 74 61 5d | 20 2d 20 75 73 65 72 64 |m[udata]| - userd|
|00003640| 61 74 61 20 74 6f 20 6c | 6f 6f 6b 20 66 6f 72 2e |ata to l|ook for.|
|00003650| 0a 5c 69 74 65 6d 5b 61 | 74 74 72 5d 20 20 2d 20 |.\item[a|ttr] - |
|00003660| 61 74 74 72 69 62 75 74 | 65 20 74 6f 20 73 65 74 |attribut|e to set|
|00003670| 2e 0a 5c 69 74 65 6d 5b | 76 61 6c 5d 20 20 20 2d |..\item[|val] -|
|00003680| 20 76 61 6c 75 65 20 74 | 6f 20 73 65 74 20 61 74 | value t|o set at|
|00003690| 74 72 69 62 75 74 65 20 | 74 6f 2e 0a 5c 65 6e 64 |tribute |to..\end|
|000036a0| 7b 64 65 73 63 72 69 70 | 74 69 6f 6e 7d 0a 0a 5c |{descrip|tion}..\|
|000036b0| 73 75 62 73 75 62 73 65 | 63 74 69 6f 6e 2a 7b 4e |subsubse|ction*{N|
|000036c0| 4f 54 45 7d 0a 49 66 20 | 79 6f 75 20 68 61 76 65 |OTE}.If |you have|
|000036d0| 20 6d 61 6e 79 20 6f 62 | 6a 65 63 74 73 20 69 6e | many ob|jects in|
|000036e0| 20 79 6f 75 72 20 61 70 | 70 6c 69 63 61 74 69 6f | your ap|plicatio|
|000036f0| 6e 2c 20 4d 55 49 4d 5c | 5f 53 65 74 55 44 61 74 |n, MUIM\|_SetUDat|
|00003700| 61 0a 6d 61 79 20 74 61 | 6b 65 20 71 75 69 74 65 |a.may ta|ke quite|
|00003710| 20 6c 6f 6e 67 2e 20 59 | 6f 75 20 63 61 6e 20 6c | long. Y|ou can l|
|00003720| 69 6d 69 74 20 74 68 65 | 20 61 6d 6f 75 6e 74 20 |imit the| amount |
|00003730| 6f 66 20 74 69 6d 65 0a | 62 79 20 70 65 72 66 6f |of time.|by perfo|
|00003740| 72 6d 69 6e 67 20 74 68 | 65 20 6d 65 74 68 6f 64 |rming th|e method|
|00003750| 20 6e 6f 74 20 6f 6e 20 | 74 68 65 20 61 70 70 6c | not on |the appl|
|00003760| 69 63 61 74 69 6f 6e 20 | 62 75 74 20 6f 6e 20 74 |ication |but on t|
|00003770| 68 65 0a 77 69 6e 64 6f | 77 20 6f 72 20 65 76 65 |he.windo|w or eve|
|00003780| 6e 20 6f 6e 20 74 68 65 | 20 67 72 6f 75 70 20 79 |n on the| group y|
|00003790| 6f 75 72 20 67 61 64 67 | 65 74 73 20 61 72 65 20 |our gadg|ets are |
|000037a0| 70 6c 61 63 65 20 69 6e | 2e 0a 0a 5c 73 75 62 73 |place in|...\subs|
|000037b0| 75 62 73 65 63 74 69 6f | 6e 2a 7b 53 45 45 20 41 |ubsectio|n*{SEE A|
|000037c0| 4c 53 4f 7d 0a 4d 55 49 | 4d 5c 5f 47 65 74 55 44 |LSO}.MUI|M\_GetUD|
|000037d0| 61 74 61 2c 20 4d 55 49 | 4d 5c 5f 46 69 6e 64 55 |ata, MUI|M\_FindU|
|000037e0| 44 61 74 61 0a 0a 5c 73 | 75 62 73 65 63 74 69 6f |Data..\s|ubsectio|
|000037f0| 6e 5b 4d 55 49 4d 5c 5f | 57 72 69 74 65 4c 6f 6e |n[MUIM\_|WriteLon|
|00003800| 67 5d 7b 4d 55 49 4d 5c | 5f 57 72 69 74 65 4c 6f |g]{MUIM\|_WriteLo|
|00003810| 6e 67 20 28 56 36 29 7d | 0a 0a 5c 73 75 62 73 75 |ng (V6)}|..\subsu|
|00003820| 62 73 65 63 74 69 6f 6e | 2a 7b 53 59 4e 4f 50 53 |bsection|*{SYNOPS|
|00003830| 49 53 7d 0a 44 6f 4d 65 | 74 68 6f 64 28 6f 62 6a |IS}.DoMe|thod(obj|
|00003840| 2c 4d 55 49 4d 5c 5f 57 | 72 69 74 65 4c 6f 6e 67 |,MUIM\_W|riteLong|
|00003850| 2c 55 4c 4f 4e 47 20 76 | 61 6c 2c 20 55 4c 4f 4e |,ULONG v|al, ULON|
|00003860| 47 20 24 5c 61 73 74 24 | 6d 65 6d 6f 72 79 29 3b |G $\ast$|memory);|
|00003870| 0a 0a 5c 73 75 62 73 75 | 62 73 65 63 74 69 6f 6e |..\subsu|bsection|
|00003880| 2a 7b 46 55 4e 43 54 49 | 4f 4e 7d 0a 54 68 69 73 |*{FUNCTI|ON}.This|
|00003890| 20 6d 65 74 68 6f 64 20 | 73 69 6d 70 6c 79 20 77 | method |simply w|
|000038a0| 72 69 74 65 73 20 61 20 | 6c 6f 6e 67 77 6f 72 64 |rites a |longword|
|000038b0| 20 73 6f 6d 65 77 68 65 | 72 65 20 74 6f 20 6d 65 | somewhe|re to me|
|000038c0| 6d 6f 72 79 2e 0a 41 6c | 74 68 6f 75 67 68 20 74 |mory..Al|though t|
|000038d0| 68 69 73 20 73 65 65 6d | 73 20 71 75 69 74 65 20 |his seem|s quite |
|000038e0| 75 73 65 6c 65 73 73 2c | 20 69 74 20 6d 69 67 68 |useless,| it migh|
|000038f0| 74 20 62 65 63 6f 6d 65 | 20 68 61 6e 64 79 0a 69 |t become| handy.i|
|00003900| 66 20 75 73 65 64 20 77 | 69 74 68 69 6e 20 61 20 |f used w|ithin a |
|00003910| 6e 6f 74 69 66 79 20 73 | 74 61 74 65 6d 65 6e 74 |notify s|tatement|
|00003920| 2e 20 46 6f 72 20 69 6e | 73 74 61 6e 63 65 2c 20 |. For in|stance, |
|00003930| 79 6f 75 20 63 6f 75 6c | 64 0a 65 61 73 69 6c 79 |you coul|d.easily|
|00003940| 20 63 6f 6e 6e 65 63 74 | 20 74 68 65 20 63 75 72 | connect| the cur|
|00003950| 72 65 6e 74 20 6c 65 76 | 65 6c 20 6f 66 20 61 20 |rent lev|el of a |
|00003960| 73 6c 69 64 65 72 20 77 | 69 74 68 20 73 6f 6d 65 |slider w|ith some|
|00003970| 0a 6d 65 6d 62 65 72 20 | 6f 66 20 79 6f 75 72 20 |.member |of your |
|00003980| 70 72 6f 67 72 61 6d 73 | 20 64 61 74 61 20 73 74 |programs| data st|
|00003990| 72 75 63 74 75 72 65 73 | 2e 0a 0a 5c 73 75 62 73 |ructures|...\subs|
|000039a0| 75 62 73 65 63 74 69 6f | 6e 2a 7b 49 4e 50 55 54 |ubsectio|n*{INPUT|
|000039b0| 53 7d 0a 5c 62 65 67 69 | 6e 7b 64 65 73 63 72 69 |S}.\begi|n{descri|
|000039c0| 70 74 69 6f 6e 7d 0a 5c | 69 74 65 6d 5b 76 61 6c |ption}.\|item[val|
|000039d0| 5d 20 20 20 20 2d 20 76 | 61 6c 75 65 20 74 6f 20 |] - v|alue to |
|000039e0| 77 72 69 74 65 0a 5c 69 | 74 65 6d 5b 6d 65 6d 6f |write.\i|tem[memo|
|000039f0| 72 79 5d 20 2d 20 6c 6f | 63 61 74 69 6f 6e 20 74 |ry] - lo|cation t|
|00003a00| 6f 20 77 72 69 74 65 20 | 74 68 65 20 76 61 6c 75 |o write |the valu|
|00003a10| 65 20 74 6f 0a 5c 65 6e | 64 7b 64 65 73 63 72 69 |e to.\en|d{descri|
|00003a20| 70 74 69 6f 6e 7d 0a 0a | 5c 73 75 62 73 75 62 73 |ption}..|\subsubs|
|00003a30| 65 63 74 69 6f 6e 2a 7b | 45 58 41 4d 50 4c 45 7d |ection*{|EXAMPLE}|
|00003a40| 0a 5c 73 6d 61 6c 6c 0a | 5c 62 65 67 69 6e 7b 76 |.\small.|\begin{v|
|00003a50| 65 72 62 61 74 69 6d 7d | 0a 0a 2f 2a 20 4c 65 74 |erbatim}|../* Let|
|00003a60| 20 74 68 65 20 73 6c 69 | 64 65 72 20 61 75 74 6f | the sli|der auto|
|00003a70| 6d 61 67 69 63 61 6c 6c | 79 20 77 72 69 74 65 20 |magicall|y write |
|00003a80| 69 74 73 20 6c 65 76 65 | 6c 20 74 6f 20 61 20 76 |its leve|l to a v|
|00003a90| 61 72 69 61 62 6c 65 20 | 2a 2f 0a 0a 73 74 61 74 |ariable |*/..stat|
|00003aa0| 69 63 20 4c 4f 4e 47 20 | 6c 65 76 65 6c 3b 0a 0a |ic LONG |level;..|
|00003ab0| 44 6f 4d 65 74 68 6f 64 | 28 73 6c 69 64 65 72 2c |DoMethod|(slider,|
|00003ac0| 4d 55 49 4d 5f 4e 6f 74 | 69 66 79 2c 4d 55 49 41 |MUIM_Not|ify,MUIA|
|00003ad0| 5f 53 6c 69 64 65 72 5f | 4c 65 76 65 6c 2c 4d 55 |_Slider_|Level,MU|
|00003ae0| 49 56 5f 45 76 65 72 79 | 54 69 6d 65 2c 0a 20 20 |IV_Every|Time,. |
|00003af0| 20 73 6c 69 64 65 72 2c | 33 2c 4d 55 49 4d 5f 57 | slider,|3,MUIM_W|
|00003b00| 72 69 74 65 4c 6f 6e 67 | 2c 4d 55 49 56 5f 54 72 |riteLong|,MUIV_Tr|
|00003b10| 69 67 67 65 72 56 61 6c | 75 65 2c 26 6c 65 76 65 |iggerVal|ue,&leve|
|00003b20| 6c 29 3b 0a 0a 5c 65 6e | 64 7b 76 65 72 62 61 74 |l);..\en|d{verbat|
|00003b30| 69 6d 7d 0a 5c 6e 6f 72 | 6d 61 6c 73 69 7a 65 0a |im}.\nor|malsize.|
|00003b40| 5c 73 75 62 73 75 62 73 | 65 63 74 69 6f 6e 2a 7b |\subsubs|ection*{|
|00003b50| 53 45 45 20 41 4c 53 4f | 7d 0a 4d 55 49 4d 5c 5f |SEE ALSO|}.MUIM\_|
|00003b60| 57 72 69 74 65 53 74 72 | 69 6e 67 2c 20 4d 55 49 |WriteStr|ing, MUI|
|00003b70| 4d 5c 5f 4e 6f 74 69 66 | 79 0a 0a 5c 73 75 62 73 |M\_Notif|y..\subs|
|00003b80| 65 63 74 69 6f 6e 5b 4d | 55 49 4d 5c 5f 57 72 69 |ection[M|UIM\_Wri|
|00003b90| 74 65 53 74 72 69 6e 67 | 5d 7b 4d 55 49 4d 5c 5f |teString|]{MUIM\_|
|00003ba0| 57 72 69 74 65 53 74 72 | 69 6e 67 20 28 56 36 29 |WriteStr|ing (V6)|
|00003bb0| 7d 0a 0a 5c 73 75 62 73 | 75 62 73 65 63 74 69 6f |}..\subs|ubsectio|
|00003bc0| 6e 2a 7b 53 59 4e 4f 50 | 53 49 53 7d 0a 44 6f 4d |n*{SYNOP|SIS}.DoM|
|00003bd0| 65 74 68 6f 64 28 6f 62 | 6a 2c 4d 55 49 4d 5c 5f |ethod(ob|j,MUIM\_|
|00003be0| 57 72 69 74 65 53 74 72 | 69 6e 67 2c 63 68 61 72 |WriteStr|ing,char|
|00003bf0| 20 24 5c 61 73 74 24 73 | 74 72 2c 20 63 68 61 72 | $\ast$s|tr, char|
|00003c00| 20 24 5c 61 73 74 24 6d | 65 6d 6f 72 79 29 3b 0a | $\ast$m|emory);.|
|00003c10| 0a 5c 73 75 62 73 75 62 | 73 65 63 74 69 6f 6e 2a |.\subsub|section*|
|00003c20| 7b 46 55 4e 43 54 49 4f | 4e 7d 0a 54 68 69 73 20 |{FUNCTIO|N}.This |
|00003c30| 6d 65 74 68 6f 64 20 73 | 69 6d 70 6c 79 20 63 6f |method s|imply co|
|00003c40| 70 69 65 73 20 61 20 73 | 74 72 69 6e 67 20 73 6f |pies a s|tring so|
|00003c50| 6d 65 77 68 65 72 65 20 | 74 6f 20 6d 65 6d 6f 72 |mewhere |to memor|
|00003c60| 79 2e 0a 41 6c 74 68 6f | 75 67 68 20 74 68 69 73 |y..Altho|ugh this|
|00003c70| 20 73 65 65 6d 73 20 71 | 75 69 74 65 20 75 73 65 | seems q|uite use|
|00003c80| 6c 65 73 73 2c 20 69 74 | 20 6d 69 67 68 74 20 62 |less, it| might b|
|00003c90| 65 63 6f 6d 65 20 68 61 | 6e 64 79 0a 69 66 20 75 |ecome ha|ndy.if u|
|00003ca0| 73 65 64 20 77 69 74 68 | 69 6e 20 61 20 6e 6f 74 |sed with|in a not|
|00003cb0| 69 66 79 20 73 74 61 74 | 65 6d 65 6e 74 2e 20 46 |ify stat|ement. F|
|00003cc0| 6f 72 20 69 6e 73 74 61 | 6e 63 65 2c 20 79 6f 75 |or insta|nce, you|
|00003cd0| 20 63 6f 75 6c 64 0a 65 | 61 73 69 6c 79 20 63 6f | could.e|asily co|
|00003ce0| 6e 6e 65 63 74 20 74 68 | 65 20 63 75 72 72 65 6e |nnect th|e curren|
|00003cf0| 74 20 63 6f 6e 74 65 6e | 74 73 20 6f 66 20 61 20 |t conten|ts of a |
|00003d00| 73 74 72 69 6e 67 20 67 | 61 64 67 65 74 0a 77 69 |string g|adget.wi|
|00003d10| 74 68 20 73 6f 6d 65 20 | 6d 65 6d 62 65 72 20 6f |th some |member o|
|00003d20| 66 20 79 6f 75 72 20 70 | 72 6f 67 72 61 6d 73 20 |f your p|rograms |
|00003d30| 64 61 74 61 20 73 74 72 | 75 63 74 75 72 65 73 2e |data str|uctures.|
|00003d40| 0a 0a 5c 73 75 62 73 75 | 62 73 65 63 74 69 6f 6e |..\subsu|bsection|
|00003d50| 2a 7b 4e 4f 54 45 7d 0a | 54 68 65 20 73 74 72 69 |*{NOTE}.|The stri|
|00003d60| 6e 67 20 69 73 20 63 6f | 70 69 65 64 20 77 69 74 |ng is co|pied wit|
|00003d70| 68 20 73 74 72 63 70 79 | 28 29 2c 20 79 6f 75 20 |h strcpy|(), you |
|00003d80| 6d 75 73 74 20 61 73 73 | 75 72 65 0a 74 68 61 74 |must ass|ure.that|
|00003d90| 20 74 68 65 20 64 65 73 | 74 69 6e 61 74 69 6f 6e | the des|tination|
|00003da0| 20 70 6f 69 6e 74 73 20 | 74 6f 20 65 6e 6f 75 67 | points |to enoug|
|00003db0| 68 20 6d 65 6d 6f 72 79 | 2e 0a 0a 5c 73 75 62 73 |h memory|...\subs|
|00003dc0| 75 62 73 65 63 74 69 6f | 6e 2a 7b 49 4e 50 55 54 |ubsectio|n*{INPUT|
|00003dd0| 53 7d 0a 5c 62 65 67 69 | 6e 7b 64 65 73 63 72 69 |S}.\begi|n{descri|
|00003de0| 70 74 69 6f 6e 7d 0a 5c | 69 74 65 6d 5b 73 74 72 |ption}.\|item[str|
|00003df0| 5d 20 20 20 20 2d 20 73 | 74 72 69 6e 67 20 74 6f |] - s|tring to|
|00003e00| 20 63 6f 70 79 0a 5c 69 | 74 65 6d 5b 6d 65 6d 6f | copy.\i|tem[memo|
|00003e10| 72 79 5d 20 2d 20 6c 6f | 63 61 74 69 6f 6e 20 74 |ry] - lo|cation t|
|00003e20| 6f 20 77 72 69 74 65 20 | 74 68 65 20 76 61 6c 75 |o write |the valu|
|00003e30| 65 20 74 6f 0a 5c 65 6e | 64 7b 64 65 73 63 72 69 |e to.\en|d{descri|
|00003e40| 70 74 69 6f 6e 7d 0a 0a | 5c 73 75 62 73 75 62 73 |ption}..|\subsubs|
|00003e50| 65 63 74 69 6f 6e 2a 7b | 45 58 41 4d 50 4c 45 7d |ection*{|EXAMPLE}|
|00003e60| 0a 5c 73 6d 61 6c 6c 0a | 5c 62 65 67 69 6e 7b 76 |.\small.|\begin{v|
|00003e70| 65 72 62 61 74 69 6d 7d | 0a 0a 73 74 61 74 69 63 |erbatim}|..static|
|00003e80| 20 63 68 61 72 20 62 75 | 66 66 65 72 5b 32 35 36 | char bu|ffer[256|
|00003e90| 5d 3b 0a 0a 44 6f 4d 65 | 74 68 6f 64 28 73 74 72 |];..DoMe|thod(str|
|00003ea0| 69 6e 67 2c 4d 55 49 4d | 5f 4e 6f 74 69 66 79 2c |ing,MUIM|_Notify,|
|00003eb0| 4d 55 49 41 5f 53 74 72 | 69 6e 67 5f 43 6f 6e 74 |MUIA_Str|ing_Cont|
|00003ec0| 65 6e 74 73 2c 4d 55 49 | 56 5f 45 76 65 72 79 54 |ents,MUI|V_EveryT|
|00003ed0| 69 6d 65 2c 0a 20 20 20 | 73 74 72 69 6e 67 2c 33 |ime,. |string,3|
|00003ee0| 2c 4d 55 49 4d 5f 57 72 | 69 74 65 53 74 72 69 6e |,MUIM_Wr|iteStrin|
|00003ef0| 67 2c 4d 55 49 56 5f 54 | 72 69 67 67 65 72 56 61 |g,MUIV_T|riggerVa|
|00003f00| 6c 75 65 2c 62 75 66 66 | 65 72 29 3b 0a 0a 5c 65 |lue,buff|er);..\e|
|00003f10| 6e 64 7b 76 65 72 62 61 | 74 69 6d 7d 0a 5c 6e 6f |nd{verba|tim}.\no|
|00003f20| 72 6d 61 6c 73 69 7a 65 | 0a 5c 73 75 62 73 75 62 |rmalsize|.\subsub|
|00003f30| 73 65 63 74 69 6f 6e 2a | 7b 53 45 45 20 41 4c 53 |section*|{SEE ALS|
|00003f40| 4f 7d 0a 4d 55 49 4d 5c | 5f 57 72 69 74 65 4c 6f |O}.MUIM\|_WriteLo|
|00003f50| 6e 67 2c 20 4d 55 49 4d | 5c 5f 4e 6f 74 69 66 79 |ng, MUIM|\_Notify|
|00003f60| 0a 0a 5c 73 75 62 73 65 | 63 74 69 6f 6e 5b 4d 55 |..\subse|ction[MU|
|00003f70| 49 41 5c 5f 41 70 70 4d | 65 73 73 61 67 65 5d 7b |IA\_AppM|essage]{|
|00003f80| 4d 55 49 41 5c 5f 41 70 | 70 4d 65 73 73 61 67 65 |MUIA\_Ap|pMessage|
|00003f90| 20 2d 2d 20 28 56 35 29 | 20 5b 2e 2e 47 5d 2c 20 | -- (V5)| [..G], |
|00003fa0| 73 74 72 75 63 74 20 41 | 70 70 4d 65 73 73 61 67 |struct A|ppMessag|
|00003fb0| 65 20 24 5c 61 73 74 24 | 7d 0a 0a 5c 73 75 62 73 |e $\ast$|}..\subs|
|00003fc0| 75 62 73 65 63 74 69 6f | 6e 2a 7b 46 55 4e 43 54 |ubsectio|n*{FUNCT|
|00003fd0| 49 4f 4e 7d 0a 57 68 65 | 6e 20 79 6f 75 72 20 77 |ION}.Whe|n your w|
|00003fe0| 69 6e 64 6f 77 20 69 73 | 20 61 6e 20 41 70 70 57 |indow is| an AppW|
|00003ff0| 69 6e 64 6f 77 2c 20 69 | 2e 65 2e 20 79 6f 75 20 |indow, i|.e. you |
|00004000| 68 61 76 65 20 73 65 74 | 20 74 68 65 20 5c 6c 69 |have set| the \li|
|00004010| 6e 65 62 72 65 61 6b 0a | 4d 55 49 41 5c 5f 57 69 |nebreak.|MUIA\_Wi|
|00004020| 6e 64 6f 77 5c 5f 41 70 | 70 57 69 6e 64 6f 77 20 |ndow\_Ap|pWindow |
|00004030| 61 74 74 72 69 62 75 74 | 65 20 74 6f 20 54 52 55 |attribut|e to TRU|
|00004040| 45 2c 20 79 6f 75 20 77 | 69 6c 6c 20 62 65 20 61 |E, you w|ill be a|
|00004050| 62 6c 65 0a 74 6f 20 67 | 65 74 20 41 70 70 4d 65 |ble.to g|et AppMe|
|00004060| 73 73 61 67 65 73 20 62 | 79 20 6c 69 73 74 65 6e |ssages b|y listen|
|00004070| 69 6e 67 20 74 6f 20 4d | 55 49 41 5c 5f 41 70 70 |ing to M|UIA\_App|
|00004080| 4d 65 73 73 61 67 65 2e | 0a 57 68 65 6e 65 76 65 |Message.|.Wheneve|
|00004090| 72 20 61 6e 20 41 70 70 | 4d 65 73 73 61 67 65 20 |r an App|Message |
|000040a0| 61 72 72 69 76 65 73 2c | 20 74 68 69 73 20 61 74 |arrives,| this at|
|000040b0| 74 72 69 62 75 74 65 20 | 77 69 6c 6c 0a 62 65 20 |tribute |will.be |
|000040c0| 73 65 74 20 74 6f 20 61 | 20 70 6f 69 6e 74 65 72 |set to a| pointer|
|000040d0| 20 74 6f 20 74 68 61 74 | 20 6d 65 73 73 61 67 65 | to that| message|
|000040e0| 2e 0a 0a 4d 55 49 41 5c | 5f 41 70 70 4d 65 73 73 |...MUIA\|_AppMess|
|000040f0| 61 67 65 20 69 73 20 6f | 62 6a 65 63 74 20 73 70 |age is o|bject sp|
|00004100| 65 63 69 66 69 63 2e 20 | 59 6f 75 20 63 61 6e 20 |ecific. |You can |
|00004110| 65 2e 67 2e 20 73 65 74 | 20 75 70 0a 64 69 66 66 |e.g. set| up.diff|
|00004120| 65 72 65 6e 74 20 6e 6f | 74 69 66 69 63 61 74 69 |erent no|tificati|
|00004130| 6f 6e 73 20 66 6f 72 20 | 64 69 66 66 65 72 65 6e |ons for |differen|
|00004140| 74 20 6f 62 6a 65 63 74 | 73 20 69 6e 20 79 6f 75 |t object|s in you|
|00004150| 72 20 77 69 6e 64 6f 77 | 2c 0a 74 68 65 79 20 77 |r window|,.they w|
|00004160| 69 6c 6c 20 6f 6e 6c 79 | 20 67 65 74 20 65 78 65 |ill only| get exe|
|00004170| 63 74 75 65 64 20 77 68 | 65 6e 20 69 63 6f 6e 73 |ctued wh|en icons|
|00004180| 20 61 72 65 20 64 72 6f | 70 70 65 64 20 6f 76 65 | are dro|pped ove|
|00004190| 72 20 74 68 65 0a 73 70 | 65 63 69 66 69 63 20 6f |r the.sp|ecific o|
|000041a0| 62 6a 65 63 74 2e 0a 0a | 49 66 20 79 6f 75 20 77 |bject...|If you w|
|000041b0| 61 69 74 20 6f 6e 20 4d | 55 49 41 5c 5f 41 70 70 |ait on M|UIA\_App|
|000041c0| 4d 65 73 73 61 67 65 20 | 77 69 74 68 20 61 20 77 |Message |with a w|
|000041d0| 69 6e 64 6f 77 20 6f 62 | 6a 65 63 74 2c 20 79 6f |indow ob|ject, yo|
|000041e0| 75 72 0a 6e 6f 74 69 66 | 79 20 77 69 6c 6c 20 61 |ur.notif|y will a|
|000041f0| 6c 77 61 79 73 20 67 65 | 74 20 65 78 65 63 75 74 |lways ge|t execut|
|00004200| 65 64 20 77 68 65 6e 20 | 69 63 6f 6e 73 20 61 72 |ed when |icons ar|
|00004210| 65 20 64 72 6f 70 70 65 | 64 20 6f 6e 0a 74 68 65 |e droppe|d on.the|
|00004220| 20 77 69 6e 64 6f 77 2e | 0a 0a 5c 73 75 62 73 75 | window.|..\subsu|
|00004230| 62 73 65 63 74 69 6f 6e | 2a 7b 4e 4f 54 45 7d 0a |bsection|*{NOTE}.|
|00004240| 5c 62 65 67 69 6e 7b 69 | 74 65 6d 69 7a 65 7d 0a |\begin{i|temize}.|
|00004250| 5c 69 74 65 6d 20 59 6f | 75 20 73 68 6f 75 6c 64 |\item Yo|u should|
|00004260| 20 75 73 65 20 74 68 65 | 20 4d 55 49 4d 5c 5f 43 | use the| MUIM\_C|
|00004270| 61 6c 6c 48 6f 6f 6b 20 | 6d 65 74 68 6f 64 20 74 |allHook |method t|
|00004280| 6f 20 63 61 6c 6c 20 61 | 0a 68 6f 6f 6b 20 66 75 |o call a|.hook fu|
|00004290| 6e 63 74 69 6f 6e 20 77 | 68 65 6e 20 61 6e 20 41 |nction w|hen an A|
|000042a0| 70 70 4d 65 73 73 61 67 | 65 20 61 72 72 69 76 65 |ppMessag|e arrive|
|000042b0| 73 20 28 73 65 65 20 62 | 65 6c 6f 77 29 2e 0a 54 |s (see b|elow)..T|
|000042c0| 68 65 20 70 6f 69 6e 74 | 65 72 20 74 6f 20 74 68 |he point|er to th|
|000042d0| 65 20 41 70 70 4d 65 73 | 73 61 67 65 20 69 73 20 |e AppMes|sage is |
|000042e0| 76 61 6c 69 64 20 6f 6e | 6c 79 20 61 73 20 6c 6f |valid on|ly as lo|
|000042f0| 6e 67 20 61 73 0a 74 68 | 65 20 6e 6f 74 69 66 69 |ng as.th|e notifi|
|00004300| 63 61 74 69 6f 6e 20 6d | 65 74 68 6f 64 20 69 73 |cation m|ethod is|
|00004310| 20 65 78 65 63 75 74 65 | 64 2e 0a 0a 5c 69 74 65 | execute|d...\ite|
|00004320| 6d 20 41 70 70 57 69 6e | 64 6f 77 73 20 61 72 65 |m AppWin|dows are|
|00004330| 20 6f 6e 6c 79 20 70 6f | 73 73 69 62 6c 65 20 6f | only po|ssible o|
|00004340| 6e 20 74 68 65 20 77 6f | 72 6b 65 6e 63 68 20 73 |n the wo|rkench s|
|00004350| 63 72 65 65 6e 2e 0a 5c | 65 6e 64 7b 69 74 65 6d |creen..\|end{item|
|00004360| 69 7a 65 7d 0a 0a 5c 73 | 75 62 73 75 62 73 65 63 |ize}..\s|ubsubsec|
|00004370| 74 69 6f 6e 2a 7b 45 58 | 41 4d 50 4c 45 7d 0a 5c |tion*{EX|AMPLE}.\|
|00004380| 73 6d 61 6c 6c 0a 5c 62 | 65 67 69 6e 7b 76 65 72 |small.\b|egin{ver|
|00004390| 62 61 74 69 6d 7d 0a 0a | 2f 2a 20 43 61 6c 6c 20 |batim}..|/* Call |
|000043a0| 74 68 65 20 41 70 70 4d | 73 67 48 6f 6f 6b 20 77 |the AppM|sgHook w|
|000043b0| 68 65 6e 20 61 6e 20 69 | 63 6f 6e 20 69 73 20 64 |hen an i|con is d|
|000043c0| 72 6f 70 70 65 64 20 6f | 6e 20 61 20 6c 69 73 74 |ropped o|n a list|
|000043d0| 76 69 65 77 20 2a 2f 0a | 0a 44 6f 4d 65 74 68 6f |view */.|.DoMetho|
|000043e0| 64 28 6c 76 6f 62 6a 2c | 4d 55 49 4d 5f 4e 6f 74 |d(lvobj,|MUIM_Not|
|000043f0| 69 66 79 2c 4d 55 49 41 | 5f 41 70 70 4d 65 73 73 |ify,MUIA|_AppMess|
|00004400| 61 67 65 2c 4d 55 49 56 | 5f 45 76 65 72 79 54 69 |age,MUIV|_EveryTi|
|00004410| 6d 65 2c 0a 20 20 20 20 | 20 20 20 20 20 6c 76 6f |me,. | lvo|
|00004420| 62 6a 2c 33 2c 4d 55 49 | 4d 5f 43 61 6c 6c 48 6f |bj,3,MUI|M_CallHo|
|00004430| 6f 6b 2c 26 41 70 70 4d | 73 67 48 6f 6f 6b 2c 4d |ok,&AppM|sgHook,M|
|00004440| 55 49 56 5f 54 72 69 67 | 67 65 72 56 61 6c 75 65 |UIV_Trig|gerValue|
|00004450| 29 3b 0a 0a 2f 2a 20 43 | 61 6c 6c 20 74 68 65 20 |);../* C|all the |
|00004460| 41 70 70 4d 73 67 48 6f | 6f 6b 20 77 68 65 6e 20 |AppMsgHo|ok when |
|00004470| 61 6e 20 69 63 6f 6e 20 | 69 73 20 64 72 6f 70 70 |an icon |is dropp|
|00004480| 65 64 20 6f 6e 20 74 68 | 65 20 77 69 6e 64 6f 77 |ed on th|e window|
|00004490| 20 2a 2f 0a 0a 44 6f 4d | 65 74 68 6f 64 28 77 69 | */..DoM|ethod(wi|
|000044a0| 6e 6f 62 6a 2c 4d 55 49 | 4d 5f 4e 6f 74 69 66 79 |nobj,MUI|M_Notify|
|000044b0| 2c 4d 55 49 41 5f 41 70 | 70 4d 65 73 73 61 67 65 |,MUIA_Ap|pMessage|
|000044c0| 2c 4d 55 49 56 5f 45 76 | 65 72 79 54 69 6d 65 2c |,MUIV_Ev|eryTime,|
|000044d0| 0a 20 20 20 20 20 20 20 | 20 20 77 69 6e 6f 62 6a |. | winobj|
|000044e0| 2c 33 2c 4d 55 49 4d 5f | 43 61 6c 6c 48 6f 6f 6b |,3,MUIM_|CallHook|
|000044f0| 2c 26 41 70 70 4d 73 67 | 48 6f 6f 6b 2c 4d 55 49 |,&AppMsg|Hook,MUI|
|00004500| 56 5f 54 72 69 67 67 65 | 72 56 61 6c 75 65 29 3b |V_Trigge|rValue);|
|00004510| 0a 0a 5c 65 6e 64 7b 76 | 65 72 62 61 74 69 6d 7d |..\end{v|erbatim}|
|00004520| 0a 5c 6e 6f 72 6d 61 6c | 73 69 7a 65 0a 5c 73 75 |.\normal|size.\su|
|00004530| 62 73 75 62 73 65 63 74 | 69 6f 6e 2a 7b 53 45 45 |bsubsect|ion*{SEE|
|00004540| 20 41 4c 53 4f 7d 0a 4d | 55 49 41 5c 5f 57 69 6e | ALSO}.M|UIA\_Win|
|00004550| 64 6f 77 5c 5f 41 70 70 | 57 69 6e 64 6f 77 2c 20 |dow\_App|Window, |
|00004560| 4d 55 49 41 5c 5f 41 70 | 70 6c 69 63 61 74 69 6f |MUIA\_Ap|plicatio|
|00004570| 6e 5c 5f 44 72 6f 70 4f | 62 6a 65 63 74 2c 20 4d |n\_DropO|bject, M|
|00004580| 55 49 4d 5c 5f 43 61 6c | 6c 48 6f 6f 6b 0a 0a 5c |UIM\_Cal|lHook..\|
|00004590| 73 75 62 73 65 63 74 69 | 6f 6e 5b 4d 55 49 41 5c |subsecti|on[MUIA\|
|000045a0| 5f 48 65 6c 70 46 69 6c | 65 5d 7b 4d 55 49 41 5c |_HelpFil|e]{MUIA\|
|000045b0| 5f 48 65 6c 70 46 69 6c | 65 20 2d 2d 20 28 56 34 |_HelpFil|e -- (V4|
|000045c0| 29 20 5b 49 53 47 5d 2c | 20 53 54 52 50 54 52 20 |) [ISG],| STRPTR |
|000045d0| 28 4f 42 53 4f 4c 45 54 | 45 29 7d 0a 0a 5c 73 75 |(OBSOLET|E)}..\su|
|000045e0| 62 73 75 62 73 65 63 74 | 69 6f 6e 2a 7b 46 55 4e |bsubsect|ion*{FUN|
|000045f0| 43 54 49 4f 4e 7d 0a 53 | 69 6e 63 65 20 6d 75 69 |CTION}.S|ince mui|
|00004600| 6d 61 73 74 65 72 2e 6c | 69 62 72 61 72 79 20 56 |master.l|ibrary V|
|00004610| 38 2c 20 74 68 69 73 20 | 61 74 74 72 69 62 75 74 |8, this |attribut|
|00004620| 65 20 69 73 20 6f 62 73 | 6f 6c 65 74 65 20 61 6e |e is obs|olete an|
|00004630| 64 0a 72 65 70 6c 61 63 | 65 64 20 62 79 20 4d 55 |d.replac|ed by MU|
|00004640| 49 41 5c 5f 41 70 70 6c | 69 63 61 74 69 6f 6e 5c |IA\_Appl|ication\|
|00004650| 5f 48 65 6c 70 46 69 6c | 65 2e 0a 0a 5c 73 75 62 |_HelpFil|e...\sub|
|00004660| 73 75 62 73 65 63 74 69 | 6f 6e 2a 7b 53 45 45 20 |subsecti|on*{SEE |
|00004670| 41 4c 53 4f 7d 0a 4d 55 | 49 41 5c 5f 41 70 70 6c |ALSO}.MU|IA\_Appl|
|00004680| 69 63 61 74 69 6f 6e 5c | 5f 48 65 6c 70 46 69 6c |ication\|_HelpFil|
|00004690| 65 2c 20 4d 55 49 41 5c | 5f 48 65 6c 70 4e 6f 64 |e, MUIA\|_HelpNod|
|000046a0| 65 2c 20 4d 55 49 41 5c | 5f 48 65 6c 70 4c 69 6e |e, MUIA\|_HelpLin|
|000046b0| 65 0a 0a 5c 73 75 62 73 | 65 63 74 69 6f 6e 5b 4d |e..\subs|ection[M|
|000046c0| 55 49 41 5c 5f 48 65 6c | 70 4c 69 6e 65 5d 7b 4d |UIA\_Hel|pLine]{M|
|000046d0| 55 49 41 5c 5f 48 65 6c | 70 4c 69 6e 65 20 2d 2d |UIA\_Hel|pLine --|
|000046e0| 20 28 56 34 29 20 5b 49 | 53 47 5d 2c 20 4c 4f 4e | (V4) [I|SG], LON|
|000046f0| 47 7d 0a 0a 5c 73 75 62 | 73 75 62 73 65 63 74 69 |G}..\sub|subsecti|
|00004700| 6f 6e 2a 7b 46 55 4e 43 | 54 49 4f 4e 7d 0a 44 65 |on*{FUNC|TION}.De|
|00004710| 66 69 6e 65 20 61 20 6c | 69 6e 65 20 69 6e 20 61 |fine a l|ine in a|
|00004720| 20 68 65 6c 70 20 66 69 | 6c 65 20 73 70 65 63 69 | help fi|le speci|
|00004730| 66 69 65 64 20 77 69 74 | 68 0a 4d 55 49 41 5c 5f |fied wit|h.MUIA\_|
|00004740| 41 70 70 6c 69 63 61 74 | 69 6f 6e 5c 5f 48 65 6c |Applicat|ion\_Hel|
|00004750| 70 46 69 6c 65 2e 0a 0a | 5c 73 75 62 73 75 62 73 |pFile...|\subsubs|
|00004760| 65 63 74 69 6f 6e 2a 7b | 53 45 45 20 41 4c 53 4f |ection*{|SEE ALSO|
|00004770| 7d 0a 4d 55 49 41 5c 5f | 41 70 70 6c 69 63 61 74 |}.MUIA\_|Applicat|
|00004780| 69 6f 6e 5c 5f 48 65 6c | 70 46 69 6c 65 2c 20 4d |ion\_Hel|pFile, M|
|00004790| 55 49 41 5c 5f 48 65 6c | 70 4e 6f 64 65 0a 0a 5c |UIA\_Hel|pNode..\|
|000047a0| 73 75 62 73 65 63 74 69 | 6f 6e 5b 4d 55 49 41 5c |subsecti|on[MUIA\|
|000047b0| 5f 48 65 6c 70 4e 6f 64 | 65 5d 7b 4d 55 49 41 5c |_HelpNod|e]{MUIA\|
|000047c0| 5f 48 65 6c 70 4e 6f 64 | 65 20 2d 2d 20 28 56 34 |_HelpNod|e -- (V4|
|000047d0| 29 20 5b 49 53 47 5d 2c | 20 53 54 52 50 54 52 7d |) [ISG],| STRPTR}|
|000047e0| 0a 0a 5c 73 75 62 73 75 | 62 73 65 63 74 69 6f 6e |..\subsu|bsection|
|000047f0| 2a 7b 46 55 4e 43 54 49 | 4f 4e 7d 0a 44 65 66 69 |*{FUNCTI|ON}.Defi|
|00004800| 6e 65 20 61 20 6e 6f 64 | 65 20 69 6e 20 61 20 68 |ne a nod|e in a h|
|00004810| 65 6c 70 20 66 69 6c 65 | 20 73 70 65 63 69 66 69 |elp file| specifi|
|00004820| 65 64 20 77 69 74 68 0a | 4d 55 49 41 5c 5f 41 70 |ed with.|MUIA\_Ap|
|00004830| 70 6c 69 63 61 74 69 6f | 6e 5c 5f 48 65 6c 70 46 |plicatio|n\_HelpF|
|00004840| 69 6c 65 2e 0a 0a 5c 73 | 75 62 73 75 62 73 65 63 |ile...\s|ubsubsec|
|00004850| 74 69 6f 6e 2a 7b 53 45 | 45 20 41 4c 53 4f 7d 0a |tion*{SE|E ALSO}.|
|00004860| 4d 55 49 41 5c 5f 41 70 | 70 6c 69 63 61 74 69 6f |MUIA\_Ap|plicatio|
|00004870| 6e 5c 5f 48 65 6c 70 46 | 69 6c 65 2c 20 4d 55 49 |n\_HelpF|ile, MUI|
|00004880| 41 5c 5f 48 65 6c 70 4c | 69 6e 65 0a 0a 5c 73 75 |A\_HelpL|ine..\su|
|00004890| 62 73 65 63 74 69 6f 6e | 5b 4d 55 49 41 5c 5f 4e |bsection|[MUIA\_N|
|000048a0| 6f 4e 6f 74 69 66 79 5d | 7b 4d 55 49 41 5c 5f 4e |oNotify]|{MUIA\_N|
|000048b0| 6f 4e 6f 74 69 66 79 20 | 2d 2d 20 28 56 37 29 20 |oNotify |-- (V7) |
|000048c0| 5b 2e 53 2e 5d 2c 20 42 | 4f 4f 4c 7d 0a 0a 5c 73 |[.S.], B|OOL}..\s|
|000048d0| 75 62 73 75 62 73 65 63 | 74 69 6f 6e 2a 7b 46 55 |ubsubsec|tion*{FU|
|000048e0| 4e 43 54 49 4f 4e 7d 0a | 49 66 20 79 6f 75 20 73 |NCTION}.|If you s|
|000048f0| 65 74 20 75 70 20 61 20 | 6e 6f 74 69 66 79 20 6f |et up a |notify o|
|00004900| 6e 20 61 6e 20 61 74 74 | 69 62 75 74 65 20 74 6f |n an att|ibute to|
|00004910| 20 72 65 61 63 74 20 6f | 6e 20 75 73 65 72 20 69 | react o|n user i|
|00004920| 6e 70 75 74 2c 0a 79 6f | 75 20 77 69 6c 6c 20 61 |nput,.yo|u will a|
|00004930| 6c 73 6f 20 72 65 63 6f | 67 6e 69 7a 65 20 65 76 |lso reco|gnize ev|
|00004940| 65 6e 74 73 20 77 68 65 | 6e 20 79 6f 75 20 63 68 |ents whe|n you ch|
|00004950| 61 6e 67 65 20 74 68 69 | 73 20 61 74 74 72 69 62 |ange thi|s attrib|
|00004960| 75 74 65 0a 75 6e 64 65 | 72 20 70 72 6f 67 72 61 |ute.unde|r progra|
|00004970| 6d 20 63 6f 6e 74 72 6f | 6c 20 77 69 74 68 20 53 |m contro|l with S|
|00004980| 65 74 41 74 74 72 73 28 | 29 2e 20 53 65 74 74 69 |etAttrs(|). Setti|
|00004990| 6e 67 20 4d 55 49 41 5c | 5f 4e 6f 4e 6f 74 69 66 |ng MUIA\|_NoNotif|
|000049a0| 79 0a 74 6f 67 65 74 68 | 65 72 20 77 69 74 68 20 |y.togeth|er with |
|000049b0| 79 6f 75 72 20 61 74 74 | 72 69 62 75 74 65 20 77 |your att|ribute w|
|000049c0| 69 6c 6c 20 70 72 65 76 | 65 6e 74 20 74 68 69 73 |ill prev|ent this|
|000049d0| 20 6e 6f 74 69 66 69 63 | 61 74 69 6f 6e 0a 66 72 | notific|ation.fr|
|000049e0| 6f 6d 20 62 65 69 6e 67 | 20 74 72 69 67 67 65 72 |om being| trigger|
|000049f0| 65 64 2e 0a 0a 5c 73 75 | 62 73 75 62 73 65 63 74 |ed...\su|bsubsect|
|00004a00| 69 6f 6e 2a 7b 4e 4f 54 | 45 7d 0a 4d 55 49 41 5c |ion*{NOT|E}.MUIA\|
|00004a10| 5f 4e 6f 4e 6f 74 69 66 | 79 20 69 73 20 61 20 27 |_NoNotif|y is a '|
|00004a20| 27 6f 6e 65 20 74 69 6d | 65 27 27 20 61 74 74 72 |'one tim|e'' attr|
|00004a30| 69 62 75 74 65 2e 20 49 | 74 73 20 6f 6e 6c 79 20 |ibute. I|ts only |
|00004a40| 76 61 6c 69 64 20 64 75 | 72 69 6e 67 0a 74 68 65 |valid du|ring.the|
|00004a50| 20 63 75 72 72 65 6e 74 | 20 53 65 74 41 74 74 72 | current| SetAttr|
|00004a60| 73 28 29 20 63 61 6c 6c | 21 0a 0a 5c 73 75 62 73 |s() call|!..\subs|
|00004a70| 75 62 73 65 63 74 69 6f | 6e 2a 7b 45 58 41 4d 50 |ubsectio|n*{EXAMP|
|00004a80| 4c 45 7d 0a 5c 73 6d 61 | 6c 6c 0a 5c 62 65 67 69 |LE}.\sma|ll.\begi|
|00004a90| 6e 7b 76 65 72 62 61 74 | 69 6d 7d 0a 53 65 74 41 |n{verbat|im}.SetA|
|00004aa0| 74 74 72 73 28 73 6c 69 | 64 65 72 2c 4d 55 49 41 |ttrs(sli|der,MUIA|
|00004ab0| 5f 4e 6f 4e 6f 74 69 66 | 79 2c 54 52 55 45 2c 4d |_NoNotif|y,TRUE,M|
|00004ac0| 55 49 41 5f 53 6c 69 64 | 65 72 5f 4c 65 76 65 6c |UIA_Slid|er_Level|
|00004ad0| 2c 32 36 2c 54 41 47 5f | 44 4f 4e 45 29 3b 0a 0a |,26,TAG_|DONE);..|
|00004ae0| 5c 65 6e 64 7b 76 65 72 | 62 61 74 69 6d 7d 0a 5c |\end{ver|batim}.\|
|00004af0| 6e 6f 72 6d 61 6c 73 69 | 7a 65 0a 5c 73 75 62 73 |normalsi|ze.\subs|
|00004b00| 65 63 74 69 6f 6e 5b 4d | 55 49 41 5c 5f 52 65 76 |ection[M|UIA\_Rev|
|00004b10| 69 73 69 6f 6e 5d 7b 4d | 55 49 41 5c 5f 52 65 76 |ision]{M|UIA\_Rev|
|00004b20| 69 73 69 6f 6e 20 2d 2d | 20 28 56 34 29 20 5b 2e |ision --| (V4) [.|
|00004b30| 2e 47 5d 2c 20 4c 4f 4e | 47 7d 0a 0a 5c 73 75 62 |.G], LON|G}..\sub|
|00004b40| 73 75 62 73 65 63 74 69 | 6f 6e 2a 7b 46 55 4e 43 |subsecti|on*{FUNC|
|00004b50| 54 49 4f 4e 7d 0a 47 65 | 74 20 74 68 65 20 72 65 |TION}.Ge|t the re|
|00004b60| 76 69 73 69 6f 6e 20 6e | 75 6d 62 65 72 20 6f 66 |vision n|umber of|
|00004b70| 20 61 6e 20 6f 62 6a 65 | 63 74 73 20 63 6c 61 73 | an obje|cts clas|
|00004b80| 73 2e 20 41 6c 74 68 6f | 75 67 68 0a 4d 55 49 41 |s. Altho|ugh.MUIA|
|00004b90| 5c 5f 52 65 76 69 73 69 | 6f 6e 20 69 73 20 64 6f |\_Revisi|on is do|
|00004ba0| 63 75 6d 65 6e 74 65 64 | 20 61 74 20 6e 6f 74 69 |cumented| at noti|
|00004bb0| 66 79 20 63 6c 61 73 73 | 2c 20 79 6f 75 20 77 69 |fy class|, you wi|
|00004bc0| 6c 6c 0a 6f 66 20 63 6f | 75 72 73 65 20 72 65 63 |ll.of co|urse rec|
|00004bd0| 65 69 76 65 20 74 68 65 | 20 72 65 76 69 73 69 6f |eive the| revisio|
|00004be0| 6e 20 6e 75 6d 62 65 72 | 20 6f 66 20 74 68 65 20 |n number| of the |
|00004bf0| 6f 62 6a 65 63 74 73 20 | 74 72 75 65 0a 63 6c 61 |objects |true.cla|
|00004c00| 73 73 2e 0a 0a 5c 73 75 | 62 73 75 62 73 65 63 74 |ss...\su|bsubsect|
|00004c10| 69 6f 6e 2a 7b 45 58 41 | 4d 50 4c 45 7d 0a 5c 73 |ion*{EXA|MPLE}.\s|
|00004c20| 6d 61 6c 6c 0a 5c 62 65 | 67 69 6e 7b 76 65 72 62 |mall.\be|gin{verb|
|00004c30| 61 74 69 6d 7d 0a 73 74 | 72 6f 62 6a 20 3d 20 4d |atim}.st|robj = M|
|00004c40| 55 49 5f 4e 65 77 4f 62 | 6a 65 63 74 28 4d 55 49 |UI_NewOb|ject(MUI|
|00004c50| 43 5f 53 74 72 69 6e 67 | 2c 2e 2e 2e 2c 54 41 47 |C_String|,...,TAG|
|00004c60| 5f 44 4f 4e 45 29 3b 0a | 20 20 20 20 20 20 20 20 |_DONE);.| |
|00004c70| 2e 2e 2e 0a 67 65 74 28 | 73 74 72 6f 62 6a 2c 4d |....get(|strobj,M|
|00004c80| 55 49 41 5f 56 65 72 73 | 69 6f 6e 20 2c 26 76 29 |UIA_Vers|ion ,&v)|
|00004c90| 3b 0a 67 65 74 28 73 74 | 72 6f 62 6a 2c 4d 55 49 |;.get(st|robj,MUI|
|00004ca0| 41 5f 52 65 76 69 73 69 | 6f 6e 2c 26 72 29 3b 0a |A_Revisi|on,&r);.|
|00004cb0| 70 72 69 6e 74 66 28 22 | 53 74 72 69 6e 67 20 63 |printf("|String c|
|00004cc0| 6c 61 73 73 20 76 65 72 | 73 69 6f 6e 20 25 6c 64 |lass ver|sion %ld|
|00004cd0| 2e 25 6c 64 5c 6e 22 2c | 76 2c 72 29 3b 0a 0a 5c |.%ld\n",|v,r);..\|
|00004ce0| 65 6e 64 7b 76 65 72 62 | 61 74 69 6d 7d 0a 5c 6e |end{verb|atim}.\n|
|00004cf0| 6f 72 6d 61 6c 73 69 7a | 65 0a 5c 73 75 62 73 75 |ormalsiz|e.\subsu|
|00004d00| 62 73 65 63 74 69 6f 6e | 2a 7b 53 45 45 20 41 4c |bsection|*{SEE AL|
|00004d10| 53 4f 7d 0a 4d 55 49 41 | 5c 5f 56 65 72 73 69 6f |SO}.MUIA|\_Versio|
|00004d20| 6e 0a 0a 5c 73 75 62 73 | 65 63 74 69 6f 6e 5b 4d |n..\subs|ection[M|
|00004d30| 55 49 41 5c 5f 55 73 65 | 72 44 61 74 61 5d 7b 4d |UIA\_Use|rData]{M|
|00004d40| 55 49 41 5c 5f 55 73 65 | 72 44 61 74 61 20 2d 2d |UIA\_Use|rData --|
|00004d50| 20 28 56 34 29 20 5b 49 | 53 47 5d 2c 20 55 4c 4f | (V4) [I|SG], ULO|
|00004d60| 4e 47 7d 0a 0a 5c 73 75 | 62 73 75 62 73 65 63 74 |NG}..\su|bsubsect|
|00004d70| 69 6f 6e 2a 7b 46 55 4e | 43 54 49 4f 4e 7d 0a 41 |ion*{FUN|CTION}.A|
|00004d80| 20 67 65 6e 65 72 61 6c | 20 70 75 72 70 6f 73 65 | general| purpose|
|00004d90| 20 76 61 6c 75 65 20 74 | 6f 20 66 69 6c 6c 20 69 | value t|o fill i|
|00004da0| 6e 20 61 6e 79 20 6b 69 | 6e 64 20 6f 66 20 69 6e |n any ki|nd of in|
|00004db0| 66 6f 72 6d 61 74 69 6f | 6e 2e 0a 0a 5c 73 75 62 |formatio|n...\sub|
|00004dc0| 73 65 63 74 69 6f 6e 5b | 4d 55 49 41 5c 5f 56 65 |section[|MUIA\_Ve|
|00004dd0| 72 73 69 6f 6e 5d 7b 4d | 55 49 41 5c 5f 56 65 72 |rsion]{M|UIA\_Ver|
|00004de0| 73 69 6f 6e 20 2d 2d 20 | 28 56 34 29 20 5b 2e 2e |sion -- |(V4) [..|
|00004df0| 47 5d 2c 20 4c 4f 4e 47 | 7d 0a 0a 5c 73 75 62 73 |G], LONG|}..\subs|
|00004e00| 75 62 73 65 63 74 69 6f | 6e 2a 7b 46 55 4e 43 54 |ubsectio|n*{FUNCT|
|00004e10| 49 4f 4e 7d 0a 47 65 74 | 20 74 68 65 20 76 65 72 |ION}.Get| the ver|
|00004e20| 73 69 6f 6e 20 6e 75 6d | 62 65 72 20 6f 66 20 61 |sion num|ber of a|
|00004e30| 6e 20 6f 62 6a 65 63 74 | 73 20 63 6c 61 73 73 2e |n object|s class.|
|00004e40| 20 41 6c 74 68 6f 75 67 | 68 0a 4d 55 49 41 5c 5f | Althoug|h.MUIA\_|
|00004e50| 56 65 72 73 69 6f 6e 20 | 69 73 20 64 6f 63 75 6d |Version |is docum|
|00004e60| 65 6e 74 65 64 20 61 74 | 20 6e 6f 74 69 66 79 20 |ented at| notify |
|00004e70| 63 6c 61 73 73 2c 20 79 | 6f 75 20 77 69 6c 6c 0a |class, y|ou will.|
|00004e80| 6f 66 20 63 6f 75 72 73 | 65 20 72 65 63 65 69 76 |of cours|e receiv|
|00004e90| 65 20 74 68 65 20 76 65 | 72 73 69 6f 6e 20 6e 75 |e the ve|rsion nu|
|00004ea0| 6d 62 65 72 20 6f 66 20 | 74 68 65 20 6f 62 6a 65 |mber of |the obje|
|00004eb0| 63 74 73 20 74 72 75 65 | 0a 63 6c 61 73 73 2e 0a |cts true|.class..|
|00004ec0| 0a 5c 73 75 62 73 75 62 | 73 65 63 74 69 6f 6e 2a |.\subsub|section*|
|00004ed0| 7b 45 58 41 4d 50 4c 45 | 7d 0a 5c 73 6d 61 6c 6c |{EXAMPLE|}.\small|
|00004ee0| 0a 5c 62 65 67 69 6e 7b | 76 65 72 62 61 74 69 6d |.\begin{|verbatim|
|00004ef0| 7d 0a 73 74 72 6f 62 6a | 20 3d 20 4d 55 49 5f 4e |}.strobj| = MUI_N|
|00004f00| 65 77 4f 62 6a 65 63 74 | 28 4d 55 49 43 5f 53 74 |ewObject|(MUIC_St|
|00004f10| 72 69 6e 67 2c 2e 2e 2e | 2c 54 41 47 5f 44 4f 4e |ring,...|,TAG_DON|
|00004f20| 45 29 3b 0a 20 20 20 20 | 20 20 20 20 2e 2e 2e 0a |E);. | ....|
|00004f30| 67 65 74 28 73 74 72 6f | 62 6a 2c 4d 55 49 41 5f |get(stro|bj,MUIA_|
|00004f40| 56 65 72 73 69 6f 6e 20 | 2c 26 76 29 3b 0a 67 65 |Version |,&v);.ge|
|00004f50| 74 28 73 74 72 6f 62 6a | 2c 4d 55 49 41 5f 52 65 |t(strobj|,MUIA_Re|
|00004f60| 76 69 73 69 6f 6e 2c 26 | 72 29 3b 0a 70 72 69 6e |vision,&|r);.prin|
|00004f70| 74 66 28 22 53 74 72 69 | 6e 67 20 63 6c 61 73 73 |tf("Stri|ng class|
|00004f80| 20 76 65 72 73 69 6f 6e | 20 25 6c 64 2e 25 6c 64 | version| %ld.%ld|
|00004f90| 5c 6e 22 2c 76 2c 72 29 | 3b 0a 0a 5c 65 6e 64 7b |\n",v,r)|;..\end{|
|00004fa0| 76 65 72 62 61 74 69 6d | 7d 0a 5c 6e 6f 72 6d 61 |verbatim|}.\norma|
|00004fb0| 6c 73 69 7a 65 0a 5c 73 | 75 62 73 75 62 73 65 63 |lsize.\s|ubsubsec|
|00004fc0| 74 69 6f 6e 2a 7b 53 45 | 45 20 41 4c 53 4f 7d 0a |tion*{SE|E ALSO}.|
|00004fd0| 4d 55 49 41 5c 5f 52 65 | 76 69 73 69 6f 6e 0a 0a |MUIA\_Re|vision..|
|00004fe0| 0a 0a | |.. | |
+--------+-------------------------+-------------------------+--------+--------+