Buffalo Posted July 2, 2008 Share Posted July 2, 2008 Here is 2 buttons attached to parent 'regLogBoard' : local registerok = guiCreateButton(0.3,0.6, 0.4,0.3,"OK",true,regLogBoard) local back = guiCreateButton(0.8,0.08, 0.1,0.8,"Back",true,regLogBoard) addEventHandler ("onClientGUIClick",registerok,CallForRegister) addEventHandler ("onClientGUIClick",back,ReturnMainWind) The prob is that i can click on button parent regLogBoard(not on button) but button will get clicked. Is there an error somewhere..? Link to comment
Remp Posted July 2, 2008 Share Posted July 2, 2008 replace addEventHandler ("onClientGUIClick",registerok,CallForRegister) addEventHandler ("onClientGUIClick",back,ReturnMainWind) with addEventHandler ("onClientGUIClick",registerok,CallForRegister,false) addEventHandler ("onClientGUIClick",back,ReturnMainWind,false) Link to comment
Buffalo Posted July 2, 2008 Author Share Posted July 2, 2008 Yeah, it works. Missed propagating.. Thanks for help. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now