Sign in to follow this  
Followers 0
Wolvereness

MsgBox(*,'','')

4 posts in this topic

Okay, I couldn't write a program in c++ to save my life but I like AutoIt and want it imrpoved so please bare with me.

MsgBox(*,'','')

First glance, very simple.

Second glance, each flag is done in a simple hexidecimal syntax. Goes to the place-value 6. All of them are in very proper order from place value 1 to place value 6 (except right justify).

My questions are, why doesn't right justify work (also on this matter why does the hex get scrambled place values).

Secondly, why airnt the numbers parsed in the help file via hexidecimal // A section for advanced users explaining this easier form of msgbox-flags?

For the main reason I posted in this forum, are there and what are the extra flags not (used/shown)?


Offering any help to anyone (to my capabilities of course)Want to say thanks? Click here! [quote name='Albert Einstein']Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.[/quote][quote name='Wolvereness' date='7:35PM Central, Jan 11, 2005']I'm NEVER wrong, I call it something else[/quote]

Share this post


Link to post
Share on other sites

#2 ·  Posted (edited)

We could add a third column to the docs (either at beginning, middle, or end) with the hex flags.

Also, the right-justify does have a typo and should be 524288.

flag value    Button-related Result    hex flag
0    OK button    0x0
1    OK and Cancel    0x1
2    Abort, Retry, and Ignore    0x2
3    Yes, No, and Cancel    0x3
4    Yes and No    0x4
5    Retry and Cancel    0x5
6 **    Cancel, Try Again, Continue    0x6
flag value    Icon-related Result    
0    (No icon)    0x0
16    Stop-sign icon    0x10
32    Question-mark icon    0x20
48    Exclamation-point icon    0x30
64    Icon consisting of an 'i' in a circle    0x40
flag value    Default-related Result    
0    First button is default button    0x0
256    Second button is default button    0x100
512    Third button is default button    0x200
flag value    Modality-related Result    
0    Application    0
4096    System modal (dialog has an icon)    0x1000
8192    Task modal    0x2000
flag value    Miscellaneous-related Result    
0    (nothing else special)    0x0
262144    MsgBox has top-most attribute set    0x40000
524288    title and text are right-justified    0x80000

See Microsoft's website for more flags....

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

Okay, right now i'm writing a MsgBoxConstants, I was wondering if AutoIt had hex values for:

MB_HELP

MB_DEFBUTTON4

MB_DEFAULT_DESKTOP_ONLY

MB_RTLREADING

MB_SETFOREGROUND

MB_SERVICE_NOTIFICATION

MB_SERVICE_NOTIFICATION_NT3X

I know little of anything other then AutoIt, I did a few searches for those but I coudln't find any.


Offering any help to anyone (to my capabilities of course)Want to say thanks? Click here! [quote name='Albert Einstein']Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.[/quote][quote name='Wolvereness' date='7:35PM Central, Jan 11, 2005']I'm NEVER wrong, I call it something else[/quote]

Share this post


Link to post
Share on other sites

This should be right, though I don't know if AutoIt (or Windows 9x) supports all of these:

MB_ABORTRETRYIGNORE = 0x2
MB_APPLMODAL = 0x0
MB_CANCELTRYCONTINUE = 0x6
MB_COMPOSITE = 0x2
MB_DEFAULT_DESKTOP_ONLY = 0x20000
MB_DEFBUTTON1 = 0x0
MB_DEFBUTTON2 = 0x100
MB_DEFBUTTON3 = 0x200
MB_DEFBUTTON4 = 0x300
MB_DEFMASK = 0xF00
MB_ERR_INVALID_CHARS = 0x8
MB_FUNC = 0x4000
MB_HELP = 0x4000
MB_ICONASTERISK = 0x40
MB_IConerror = MB_ICONHAND
MB_ICONEXCLAMATION = 0x30
MB_ICONHAND = 0x10
MB_ICONINFORMATION = MB_ICONASTERISK
MB_ICONMASK = 0xF0
MB_ICONQUESTION = 0x20
MB_IConstop = MB_ICONHAND
MB_ICONWARNING = MB_ICONEXCLAMATION
MB_MISCMASK = 0xC000
MB_MODEMASK = 0x3000
MB_NOFOCUS = 0x8000
MB_OK = 0x0
MB_OKCANCEL = 0x1
MB_PRECOMPOSED = 0x1
MB_RETRYCANCEL = 0x5
MB_RIGHT = 0x80000
MB_RTLREADING = 0x100000
MB_SERVICE_NOTIFICATION = 0x40000
MB_SERVICE_NOTIFICATION_NT3X = 0x40000
MB_SETFOREGROUND = 0x10000
MB_SYSTEMMODAL = 0x1000
MB_TASKMODAL = 0x2000
MB_TOPMOST = 0x40000
MB_TYPEMASK = 0xF
MB_USEGLYPHCHARS = 0x4
MB_USERICON = 0x80
MB_YESNO = 0x4
MB_YESNOCANCEL = 0x3


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0