View Single Post
  #1  
Old 03-22-2006, 07:13 PM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
Exclamation GUI Event When Overlapping

Any GUI container that displays above another and hides itself on the onMouseDown() event will trigger an onMouseUp() event on the container under it, which is expected. However, base GUI controls behave this way and there's really no way for the scripter to fix it.

For example, if you have a GuiPopUpMenuCtrl which when expanded displays above anything waiting for an onMouseUp() event, the onMouseUp() event will be called when selecting a row from the menu.

This should be very simple to fix -- instead of GUI containers such as the GuiPopUpMenuCtrl waiting for an onMouseDown() event, have them wait for the onMouseUp() event so they catch the event instead of anything under them. Besides, this is how drop down boxes work in other applications.
__________________
Eric Kraft
Reply With Quote