IonicWind Software

Aurora Compiler => GUI => Topic started by: Bruce Peaslee on January 19, 2006, 11:43:09 AM

Title: dialog hex code to constant
Post by: Bruce Peaslee on January 19, 2006, 11:43:09 AM
I had an IBasic project that converted the hex code from the dialog editor into the string constants

i.e., 0x50000000 ---> "AWS_CHILD | AWS_VISIBLE"

I never really finished it and now want to do it in Aurora. It's actually going pretty well, but one number has me baffled. In the Create() method from the dialog editor we get 0x80000080 if we check nothing. The first (left to right) "8" is for AWS_POPUP, but what is the second?
Title: Re: dialog hex code to constant
Post by: Ionic Wind Support Team on January 19, 2006, 10:08:48 PM
CONST DS_MODALFRAME = 0x80;

Besides window styles dialogs have their own unique ones.  See the MSDN docs for the DS_ constants.
Title: Re: dialog hex code to constant
Post by: Bruce Peaslee on January 20, 2006, 10:07:20 AM
Thanks. I'll hop to it!
Title: Re: dialog hex code to constant
Post by: Ionic Wind Support Team on January 20, 2006, 12:37:39 PM
Here are the ones I found in the windows header files (Find In Files makes it easy).

Searching for ' DS_'...

C:\MSDEV\include\WINUSER.H(7327): #define DS_ABSALIGN         0x01L
C:\MSDEV\include\WINUSER.H(7328): #define DS_SYSMODAL         0x02L
C:\MSDEV\include\WINUSER.H(7329): #define DS_LOCALEDIT        0x20L   /* Edit items get Local storage. */
C:\MSDEV\include\WINUSER.H(7330): #define DS_SETFONT          0x40L   /* User specified font for Dlg controls */
C:\MSDEV\include\WINUSER.H(7331): #define DS_MODALFRAME       0x80L   /* Can be combined with WS_CAPTION  */
C:\MSDEV\include\WINUSER.H(7332): #define DS_NOIDLEMSG        0x100L  /* WM_ENTERIDLE message will not be sent */
C:\MSDEV\include\WINUSER.H(7333): #define DS_SETFOREGROUND    0x200L  /* not in win3.1 */
C:\MSDEV\include\WINUSER.H(7338): #define DS_3DLOOK           0x0004L
C:\MSDEV\include\WINUSER.H(7339): #define DS_FIXEDSYS         0x0008L
C:\MSDEV\include\WINUSER.H(7340): #define DS_NOFAILCREATE     0x0010L
C:\MSDEV\include\WINUSER.H(7341): #define DS_CONTROL          0x0400L
C:\MSDEV\include\WINUSER.H(7342): #define DS_CENTER           0x0800L
C:\MSDEV\include\WINUSER.H(7343): #define DS_CENTERMOUSE      0x1000L
C:\MSDEV\include\WINUSER.H(7344): #define DS_CONTEXTHELP      0x2000L

Title: Re: dialog hex code to constant
Post by: Parker on January 20, 2006, 02:51:03 PM
Also the L isn't needed/used in Aurora, it's used there since the C compiler generates warnings that you're passing non-matching types. Aurora automatically converts int to uint and all the others.
Title: Re: dialog hex code to constant
Post by: Bruce Peaslee on January 20, 2006, 02:59:01 PM
Thanks. MSDN gave me the names and a constant file I got from my IBasic days gave me the values.