U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Library : Other (not classified elsewhere) » CtrlCore Bug: LEFT/RIGHTDRAG mouse event
CtrlCore Bug: LEFT/RIGHTDRAG mouse event [message #9783] Wed, 30 May 2007 13:11 Go to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
Basically, when you open a context menu then clear it using the left mouse button on the owner ctrl it incorrectly triggers the LEFTDRAG mouse event. This only occurs when the ctrl is not positioned in the topleft of it's parent window (or when the parent has a large frame), and it comes from the code:
		if(sDistMin(leftmousepos, mousepos) > GUI_DragDistance() && repeatTopCtrl == this) {
			DispatchMouseEvent(LEFTDRAG, leftmousepos, 0);
			leftmousepos = Null;
		}

Under these circumstances leftmousepos is in window coords and mousepos is leftmousepos-ctrl.topleft, triggering the drag event. This was tested on dev-3, and I've attached a test package.

James
  • Attachment: DragTest.zip
    (Size: 0.95KB, Downloaded 352 times)
 
Read Message
Read Message
Read Message
Previous Topic: Little change to DropList
Next Topic: analizing a crash file
Goto Forum:
  


Current Time: Tue May 05 14:27:43 GMT+2 2026

Total time taken to generate the page: 0.00458 seconds