Jump to content

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

Recommended Posts

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

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


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

  • Create New...