Tyranna

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

5 posts in this topic

#1 ·  Posted

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?

 

 

 

Share this post


Link to post
Share on other sites



#3 ·  Posted

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.

 

Share this post


Link to post
Share on other sites

#4 ·  Posted

tried GUISwitch but it does not work either...

 

Share this post


Link to post
Share on other sites

#5 ·  Posted

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