Sign in to follow this  
Followers 0
slightly_abnormal

message pop is behind window...

4 posts in this topic

Can I get a message popup to popup ontop of a window that was set to be on top anyways :o

; A simple custom messagebox that uses the OnEvent mode

for example

#include <GUIConstants.au3>

Opt("GUIOnEventMode",1)

GUICreate("Custom Msgbox", 210, 80, -1, -1, -1, $WS_EX_TOPMOST )

$Label = GUICtrlCreateLabel("Please click a button!", 10, 10)

$YesID = GUICtrlCreateButton("Yes", 10, 50, 50, 20)

GUICtrlSetOnEvent($YesID,"OnYes")

$NoID = GUICtrlCreateButton("No", 80, 50, 50, 20)

GUICtrlSetOnEvent($NoID,"OnNo")

$ExitID = GUICtrlCreateButton("Exit", 150, 50, 50, 20)

GUICtrlSetOnEvent($ExitID,"OnExit")

GUISetOnEvent($GUI_EVENT_CLOSE,"OnExit")

GUISetState() ; display the GUI

While 1

Sleep (1000)

WEnd

;--------------- Functions ---------------

Func OnYes()

MsgBox(0,"You clicked on", "Yes")

EndFunc

Func OnNo()

MsgBox(0,"You clicked on", "No")

EndFunc

Func OnExit()

if @GUI_CtrlId = $ExitId Then

MsgBox(0,"You clicked on", "Exit")

Else

MsgBox(0,"You clicked on", "Close")

EndIf

Exit

EndFunc

Share this post


Link to post
Share on other sites



i use this one alot

MsgBox(262208, "Great...", "Customer Updated... ", 4)

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

i use this one alot

MsgBox(262208, "Great...", "Customer Updated... ", 4)

8)

cool.. thanks

Share this post


Link to post
Share on other sites

Welcome

8)


NEWHeader1.png

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