Jump to content

[Solved] MsgBox Question


Recommended Posts

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.

Capture.PNG

Edited by SkysLastChance

You miss 100% of the shots you don't take. -Wayne Gretzky -Michael Scott

Link to comment
Share on other sites

  • Developers

Maybe you wanted to add them together in stead of concatenation them by using a +?

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.
  :)

Link to comment
Share on other sites

  • Moderators

Or use the MsgBoxConstants file. This works for me:

#include <MsgBoxConstants.au3>

MsgBox($MB_OKCANCEL + $MB_TOPMOST, "Registration", "Would you like to continue?")

 

"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!

Link to comment
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
 Share

×
×
  • Create New...