SkysLastChance Posted February 14, 2017 Posted February 14, 2017 (edited) I am a little confused and not sure what I am doing wrong. I am trying to get a OK and Cancel button that is always on top. $MB_OKCANCEL 1 OK and Cancel $MB_TOPMOST 262144 MsgBox() has top-most attribute set But when I try to run this code. $Msg = MsgBox(1 & 262144, "Registration", "Would you like to continue?") I get this. Edited February 14, 2017 by SkysLastChance You miss 100% of the shots you don't take. -Wayne Gretzky -Michael Scott
Developers Jos Posted February 14, 2017 Developers Posted February 14, 2017 Maybe you wanted to add them together in stead of concatenation them by using a +? SkysLastChance 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Moderators JLogan3o13 Posted February 14, 2017 Moderators Posted February 14, 2017 Or use the MsgBoxConstants file. This works for me: #include <MsgBoxConstants.au3> MsgBox($MB_OKCANCEL + $MB_TOPMOST, "Registration", "Would you like to continue?") SkysLastChance 1 "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now