Thread: button problems
View Single Post
  #2  
Old 02-21-2007, 05:31 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You need to check the state flag that is being sent to your callback. When a textbox gains focus it will generate a button event with a DOWN state. To remove focus from a textbox you need to either press escape, enter, or click outside the textbox. When this happens another button event will be triggered, but in the UP state. While the textbox has focus, clicking other GUI items won't do anything.
Reply With Quote