flat assembler
Message board for the users of flat assembler.
Index
> Windows > Extended styles |
Author |
|
BiDark 01 Nov 2003, 15:25
Try to post you resource code first so we could help you analysis (actually the normal dialogbox macro can use exstyles).
|
|||
01 Nov 2003, 15:25 |
|
silkodyssey 01 Nov 2003, 18:31
Is it possible with the fasm resource macros to give a dialog a classname so that I can use it as the main window of a program?
_________________ silkodyssey |
|||
01 Nov 2003, 18:31 |
|
kaafe 02 Nov 2003, 02:57
Thanks but nothing special. Just try to test with dialog example in FasmW. I removed WS_BORDER and added WS_EX_STATICEDGE(of course in right place) for editbox. Nothing changed except, editbox has any border.
Do you success? |
|||
02 Nov 2003, 02:57 |
|
comrade 02 Nov 2003, 03:44
Code: macro dialogitem class,title,id,x,y,cx,cy,style,exstyle { dd style or WS_CHILD,exstyle +0 dw x,y,cx,cy,id if class eq 'BUTTON' dw 0FFFFh,80h else if class eq 'EDIT' dw 0FFFFh,81h else if class eq 'STATIC' dw 0FFFFh,82h else if class eq 'LISTBOX' dw 0FFFFh,83h else if class eq 'SCROLLBAR' dw 0FFFFh,84h else if class eq 'COMBOBOX' dw 0FFFFh,85h else du class,0 end if if title eqtype 0 dw 0FFFFh,title else du title,0 end if dw 0 align 4 dialog_items_counter = dialog_items_counter + 1 } |
|||
02 Nov 2003, 03:44 |
|
kaafe 02 Nov 2003, 19:52
Seems everybody has different resource include, except comrade, he uses standard. If anybody get a clientedge dialogbox, or staticedge editbox then please show me an example and resource include macro please.
I believe that nobody tried this yet. Have a nice day |
|||
02 Nov 2003, 19:52 |
|
smoke 09 Sep 2006, 21:34
hmm i have the same problem (as the creator of this thread) ... dont know how to use that DIALOGEX extended dialog , so i will be able to use the extended styles for the dialog items (buttons , textboxes , etc) anyone knows ?
here's the code: Code: section '.rsrc' resource data readable directory RT_DIALOG,dialogs resource dialogs,\ 37,LANG_ENGLISH+SUBLANG_DEFAULT,main dialog main,'Keygen Template',70,70,200,90,WS_POPUP+WS_SYSMENU+DS_MODALFRAME+DS_CENTER,0,0,'Arial',8 dialogitem 'EDIT','',ID_CAPTION,60,10,130,12,WS_VISIBLE+WS_TABSTOP dialogitem 'EDIT','',ID_CAPTION1,60,30,130,12,WS_VISIBLE+WS_TABSTOP dialogitem 'STATIC','Name:',ID_NAME,8,10,20,8,WS_VISIBLE+WS_TABSTOP+BS_TEXT dialogitem 'BUTTON','Generate',ID_GENERATE,20,57,70,20,WS_VISIBLE+WS_TABSTOP+BS_PUSHBUTTON dialogitem 'BUTTON','Exit',ID_EXIT,110,57,70,20,WS_VISIBLE+WS_TABSTOP+BS_PUSHBUTTON dialogitem 'STATIC','Serial:',ID_SERIAL,8,30,20,8,WS_VISIBLE+WS_TABSTOP+BS_TEXT enddialog only the rsrc section ... i hope someone can help me , so i wont have to use that RadASM for my resources ... |
|||
09 Sep 2006, 21:34 |
|
Reverend 10 Sep 2006, 11:28
To use extended styles, you DON'T need DIALOGEX! Look at the beginning of macro definition:
Code: macro dialogitem class,title,id,x,y,cx,cy,style,exstyle The only difference between DIALOG and DIALOGEX resource statements is that DIALOGEX allows including information about font. Extended styles are allowed in both versions. |
|||
10 Sep 2006, 11:28 |
|
smoke 10 Sep 2006, 13:48
Reverend, thanks very much - it works now , i did it like this :
Code: dialogitem 'BUTTON','Generate',ID_GENERATE,20,57,70,20,WS_VISIBLE or WS_TABSTOP or BS_PUSHBUTTON,WS_EX_STATICEDGE but im kinda curious ... how does that RadASM create the DIALOGEX ? :p |
|||
10 Sep 2006, 13:48 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.