Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 03-23-2006, 03:49 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
It's not that simple though, a popup control can be opened in different ways, not necessary by a mouse down event. Also the control is itself passing the event when being closed, which is mainly for making it possible to click on other buttons or controls even if the menu is still open. I can check the mouseup event though, to eventually not pass that.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:47 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.