flat assembler
Message board for the users of flat assembler.

Index > Windows > how to -static text control of a dialog box

Author
Thread Post new topic Reply to topic
mns



Joined: 20 Dec 2007
Posts: 150
Location: Piliyandala,Sri lanka
mns 01 Aug 2011, 17:08
please can any one tell me how to get static text control in a dialog box.
I'v tried as below FASMW compiled it but when run the programme it is not showing in the dialog box

section '.rsrc' resource data readable
directory RT_DIALOG, dialogs
resource dialogs,\
IDD_MAIN, LANG_ENGLISH + SUBLANG_DEFAULT, main_dialog
dialog main_dialog, 'my dialog', 0, 0, 500, 300, WS_CAPTION + WS_POPUP + WS_SYSMENU +DS_MODALFRAME + DS_CENTER



dialogitem 'BUTTON','Search',IDOK,410,10,60,30,WS_VISIBLE+WS_TABSTOP+BS_DEFPUSHBUTTON
dialogitem 'BUTTON','C&ancel',IDCANCEL,430,280,45,15,WS_VISIBLE+WS_TABSTOP+BS_PUSHBUTTON
;dialogitem 'EDIT','',IDC_EDIT1,200,15,160,20,WS_VISIBLE+WS_BORDER+WS_TABSTOP+ES_AUTOHSCROLL
;dialogitem 'EDIT','',IDC_EDIT2,20,50,460,220,WS_VISIBLE+WS_BORDER+WS_TABSTOP+ES_AUTOHSCROLL
dialogitem 'STATIC', 'SAFDFDSSDSDDD', IDC_STATIC , 23, 10, 200, 120, SS_LEFT, 0
enddialog

I'v attached the full source with this
[/b]


Description:
Download
Filename: exp13.ASM
Filesize: 3.29 KB
Downloaded: 192 Time(s)

Post 01 Aug 2011, 17:08
View user's profile Send private message Send e-mail Reply with quote
yoshimitsu



Joined: 07 Jul 2011
Posts: 96
yoshimitsu 01 Aug 2011, 17:37
dialogitem 'STATIC', 'SAFDFDSSDSDDD', IDC_STATIC , 23, 10, 200, 120, WS_VISIBLE+SS_LEFT, 0
Post 01 Aug 2011, 17:37
View user's profile Send private message Reply with quote
mns



Joined: 20 Dec 2007
Posts: 150
Location: Piliyandala,Sri lanka
mns 02 Aug 2011, 17:17
Thanx yoshimitsu for pointing out that,
I feel like a fool myself
Post 02 Aug 2011, 17:17
View user's profile Send private message Send e-mail Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.