flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > A new dialogex macro?

Author
Thread Post new topic Reply to topic
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
I was wondering if anyone new how make a dialogex macro similar to the dialog macro. I mainly want it so you can add a bold typface to the dialog. All my attempts at making one, and modifying the original have failed, here is the information I found in the SDK:

Code:
nameID DIALOGEX x, y, width, height [ , helpID]] [[ optional-statements]]  { control-statements }

nameID  Unique name or a unique 16-bit unsigned integer value that identifies the dialog box. 
x  Location on the screen of the left side of the dialog box, in dialog units. 
y  Location on the screen of the top of the dialog box, in dialog units. 
width  Width of the dialog box, in dialog units. 
height  Height of the dialog box, in dialog units. 
helpID  Numeric expression indicating the ID used to identify the dialog
box during WM_HELP processing. 
optional-statements Options for the dialog box. This can be zero or more
of the following statements.

--------------------------------------------------------------------------
FONT pointsize, typeface, weight, italic, charset 

Point size and typeface for the font. For weight, use the FW_* values
defined in WINGDI.H. For italic, specify TRUE to use an italic font, FALSE
otherwise. For charset, use the value defined in the charset member of
the LOGFONT structure. To get the definitive font for a dialog box, an
application should specify charset along with other font properties.      


Last edited by madmatt on 03 Jul 2006, 09:49; edited 3 times in total
Post 30 Jun 2006, 23:48
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
Small change: please, make the last line multiline. It doesn't wrap.
Thank you!
Post 02 Jul 2006, 09:34
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
Made the edit, should look better now Very Happy
Post 03 Jul 2006, 09:50
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
Hmm, still no answers - I though making design better would attract more people, but Very Happy maybe its summer-time Razz

The idea seems simple, but I don't have any idea how to even start with something like that...or even doable by simply macroing ^o)
Post 04 Jul 2006, 18:43
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
At first, I thought I could do it myself. But every change I made to the original macro caused it to either crash or no change Sad . Wonder where Tomasz got the info on how to make his macro Confused , I don't even see the critical data I need in the SDK Surprised
Post 05 Jul 2006, 10:56
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 7801
Location: Kraków, Poland
Tomasz Grysztar
See the DLGTEMPLATE and DLGITEMTEMPLATE descriptions in the Win32 help files.
However for the bold typeface etc. you need the DLGTEMPLATEEX and DLGITEMTEMPLATEEX structures.
Post 01 Aug 2006, 11:11
View user's profile Send private message Visit poster's website Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt
Heeeey Razz , all right, thanks Tomasz Very Happy . This looks like what I need. Back to work on that macro! Exclamation
Post 03 Aug 2006, 07:16
View user's profile Send private message 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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.