5,389
edits
No edit summary |
|||
Line 1: | Line 1: | ||
{{OBD_File_Header|align=center|type=WMDD|prev=WMCL|next=WMM_|name=WM (Window Menu) Dialog Data|family=Global}} | {{OBD_File_Header|align=center|type=WMDD|prev=WMCL|next=WMM_|name=WM (Window Menu) Dialog Data|family=Global}} | ||
Line 51: | Line 43: | ||
{{OBDtr| 0x100 | int16 |FFFFC8| 04 00 | 4 | class; the following window classes exist in Oni (values in dec): | {{OBDtr| 0x100 | int16 |FFFFC8| 04 00 | 4 | class; the following window classes exist in Oni (values in dec): | ||
:1 - desktop (not used in dialogs) | :1 - desktop (not used in dialogs) | ||
:3 - box ( | :3 - box (<nowiki>=</nowiki> groupbox) | ||
:4 - button | :4 - button | ||
:5 - checkbox | :5 - checkbox | ||
Line 60: | Line 52: | ||
:10 - menu (not used in dialogs) | :10 - menu (not used in dialogs) | ||
:11 - picture ([[OBD:TXMB|TXMB]], [[OBD:TXMP|TXMP]] or [[OBD:PSpc|PSpc]]) | :11 - picture ([[OBD:TXMB|TXMB]], [[OBD:TXMP|TXMP]] or [[OBD:PSpc|PSpc]]) | ||
:12 - popup menu ( | :12 - popup menu (<nowiki>=</nowiki> pulldown menu <nowiki>=</nowiki> drop-down menu) ([[OBD:WMM_|WMM_]]) | ||
:13 - progress bar | :13 - progress bar | ||
:14 - radio button | :14 - radio button | ||
Line 81: | Line 73: | ||
:0x00 00 '''01''' 00 - draw button | :0x00 00 '''01''' 00 - draw button | ||
:0x00 00 '''02''' 00 - draw button text | :0x00 00 '''02''' 00 - draw button text | ||
:0x00 00 '''08''' 00 - toggle button (like the ones used | :0x00 00 '''08''' 00 - toggle button (like the ones used "in game" for help, diary etc.) | ||
:0x00 00 '''10''' 00 - default button (the button that coresponds to the Enter key) | :0x00 00 '''10''' 00 - default button (the button that coresponds to the Enter key) | ||
Line 97: | Line 89: | ||
:0x00 00 '''02''' 00 - alphabetical order | :0x00 00 '''02''' 00 - alphabetical order | ||
:0x00 00 '''04''' 00 - unselectable | :0x00 00 '''04''' 00 - unselectable | ||
:0x00 00 '''08''' 00 - contains text (without this it contains only | :0x00 00 '''08''' 00 - contains text (without this it contains only "custom" data) | ||
:0x00 00 '''10''' 00 - owner draw (the owner window will draw the list items) | :0x00 00 '''10''' 00 - owner draw (the owner window will draw the list items) | ||
:0x00 00 '''20''' 00 - draw file/folder icons | :0x00 00 '''20''' 00 - draw file/folder icons | ||
Line 109: | Line 101: | ||
if text field: | if text field: | ||
:0x00 00 '''02''' 00 - horizontal text align | :0x00 00 '''02''' 00 - horizontal text align <nowiki>=</nowiki> center | ||
:0x00 00 '''04''' 00 - horizontal text align | :0x00 00 '''04''' 00 - horizontal text align <nowiki>=</nowiki> right | ||
:0x00 00 '''10''' 00 - vertical text align | :0x00 00 '''10''' 00 - vertical text align <nowiki>=</nowiki> center | ||
:0x00 00 '''80''' 00 - owner draw (hides text) | :0x00 00 '''80''' 00 - owner draw (hides text) | ||
Line 136: | Line 128: | ||
;Visible flag (0x10C) | ;Visible flag (0x10C) | ||
:A hidden/disabled window can't be activated from Oni, so if you hide the main menu, you'll have to shut down Oni from the Task Manager (or make it Blam ^^). | :A hidden/disabled window can't be activated from Oni, so if you hide the main menu, you'll have to shut down Oni from the Task Manager (or make it Blam ^^). | ||
:With | :With "-noswitch", you can switch to other applications whenever the mouse pointer is visible in Oni. | ||
;Item IDs (for this example) | ;Item IDs (for this example) | ||
:64 - | :64 - "new game" window | ||
:65 - | :65 - "load game" window | ||
:66 - | :66 - "options" window | ||
:67 - | :67 - "quit" window | ||
:68 - | :68 - "resume" window | ||