Jump to content
Tyranna

How do I set GuiRegisterMsg to get messages for a child window?

Recommended Posts

Tyranna

I coded a second GUICreate to make a toolbar of sorts.

I want to use GuiRegisterMsg to capture the $LBUTTTON_DOWN for this toolbar.

I  got messages to trigger the new function if i click in the first or Parent GUI, but when i click on the second window or toolbar,

It does not even call the function pointed to by GuiRegisterMsg.

 

How do I get GuiRegisterMsg to point to the second window?

 

 

 


FIXME: Buttons over backgrounds : GUIGetMsg() delays entire script.
 

Share this post


Link to post
Share on other sites
Tyranna

Ok, I read that page,

Thank you for the reply,

But, this does not cover pointing GuiRegisterMessage to a child window. I need to trap the event before it happens, not after it happens.

If you find anything on that, I would appreciate it.

 


FIXME: Buttons over backgrounds : GUIGetMsg() delays entire script.
 

Share this post


Link to post
Share on other sites
Tyranna

tried GUISwitch but it does not work either...

 


FIXME: Buttons over backgrounds : GUIGetMsg() delays entire script.
 

Share this post


Link to post
Share on other sites
jvds

how about OPT('GUIOnEventMode',1) ?

create your gui but link the buttons to functions

;link button to function
GUICtrlSetOnEvent( $LBUTTTON_DOWN, "lButtonDown")

func lButtonDown()
    ;do someting when called
endfunc

 

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

×