708
edits
m (there's is no such thing as "show background" for text fields, that 01 flag is in fact the "draw default background" window style)  | 
				m (updated byteswapping for the sake of consistency; this is in fact confusing because it's not the way C programmers read flags)  | 
				||
| Line 67: | Line 67: | ||
{{OBDtr| 0x108 | int32    |FFC800| 00 00 03 00 | 0x030000          | style; dialog styles and the following control specific styles can be used here:  | {{OBDtr| 0x108 | int32    |FFC800| 00 00 03 00 | 0x030000          | style; dialog styles and the following control specific styles can be used here:  | ||
if box:  | if box:  | ||
:0x00 '''02'''   | :0x00 00 '''02''' 00 - draw text background  | ||
:0x00 '''04'''   | :0x00 00 '''04''' 00 - draw text  | ||
if button:  | if button:  | ||
:0x00 '''01'''   | :0x00 00 '''01''' 00 -  draw button  | ||
:0x00 '''02'''   | :0x00 00 '''02''' 00 -  draw button text  | ||
:0x00 '''08'''   | :0x00 00 '''08''' 00 -  unknown  | ||
:0x00 '''10'''   | :0x00 00 '''10''' 00 -  default button (the button that coresponds to the Enter key)  | ||
if checkbox:  | if checkbox:  | ||
:0x00 '''01'''   | :0x00 00 '''01''' 00 - draw label  | ||
if radiobutton:  | if radiobutton:  | ||
:0x00 '''01'''   | :0x00 00 '''01''' 00 - draw label  | ||
if edit field:  | if edit field:  | ||
:0x00 '''01'''   | :0x00 00 '''01''' 00 - number only  | ||
if listbox:  | if listbox:  | ||
:0x00 '''01'''   | :0x00 00 '''01''' 00 -  draw scrollbar  | ||
:0x00 '''02'''   | :0x00 00 '''02''' 00 -  alphabetical order  | ||
:0x00 '''04'''   | :0x00 00 '''04''' 00 -  unselectable  | ||
:0x00 '''08'''   | :0x00 00 '''08''' 00 -  draw items  | ||
:0x00 '''10'''   | :0x00 00 '''10''' 00 -  owner draw (the owner window will draw the list items)  | ||
:0x00 '''20'''   | :0x00 00 '''20''' 00 -  unknown  | ||
if picture:  | if picture:  | ||
:0x00 '''02'''   | :0x00 00 '''02''' 00 - ignore the picture name; the displayed picture is set at runtime  | ||
if popup menu  | if popup menu  | ||
:0x00 '''01'''   | :0x00 00 '''01''' 00 - use menu width; doesn't work  | ||
:0x00 '''02'''   | :0x00 00 '''02''' 00 - ignore the menu name; the menu is set at runtime  | ||
if text field:  | if text field:  | ||
:0x00 '''02'''   | :0x00 00 '''02''' 00 -  horizontal text align <nowiki>=</nowiki> center  | ||
:0x00 '''04'''   | :0x00 00 '''04''' 00 -  horizontal text align <nowiki>=</nowiki> right  | ||
:0x00 '''10'''   | :0x00 00 '''10''' 00 -  vertical text align <nowiki>=</nowiki> center  | ||
:0x00 '''80'''   | :0x00 00 '''80''' 00 -  owner draw (hides text)  | ||
}}  | }}  | ||
edits