Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » LineEdit MouseMove and LeftDrag bug fix
LineEdit MouseMove and LeftDrag bug fix [message #21756] Thu, 04 June 2009 09:04 Go to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
When use mouse select a line text in the LineEdit,if don't release mouse leftkey and unselect text,it can't unselect line two ends character.This bug is exist for linux and windows.

When use mouse leftkey drag selected text to new place,sometime draged text is to disappear.For LineEdit,if refresh it,dosappear character can reappear.But for CodeEdit,these characters is real lose. This bug is for ubuntu linux.
I fixed them.
Attachment patch:
Re: LineEdit MouseMove and LeftDrag bug fix [message #21784 is a reply to message #21756] Thu, 04 June 2009 23:27 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
gxl117 wrote on Thu, 04 June 2009 03:04

When use mouse select a line text in the LineEdit,if don't release mouse leftkey and unselect text,it can't unselect line two ends character.This bug is exist for linux and windows.



I do not see anything wrong. What is "two ends character"? Last two characters of line?

Quote:


When use mouse leftkey drag selected text to new place,sometime draged text is to disappear.For LineEdit,if refresh it,dosappear character can reappear.But for CodeEdit,these characters is real lose. This bug is for ubuntu linux.
I fixed them.
Attachment patch:



Actually, you have broken MOVE operation here.

Default is to MOVE the text. That involves deleting the source text. If you want to COPY, you have to hold Ctrl key.

Mirek
Re: LineEdit MouseMove and LeftDrag bug fix [message #21786 is a reply to message #21784] Fri, 05 June 2009 02:11 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
luzr wrote on Thu, 04 June 2009 23:27



I do not see anything wrong. What is "two ends character"? Last two characters of line?




first and last a characters of line!

Quote:



Actually, you have broken MOVE operation here.

Default is to MOVE the text. That involves deleting the source text. If you want to COPY, you have to hold Ctrl key.

Mirek


No,I don't break move operation.In fact, the operation to remove the select source is by the DoDragAndDrop.In the windows,"if(DoDragAndDrop(ClipFmtsText(), iw) == DND_MOVE) {
RemoveSelection();
" appears to be no problems. but for Ubuntu,some time move text may lose.
Re: LineEdit MouseMove and LeftDrag bug fix [message #21787 is a reply to message #21786] Fri, 05 June 2009 03:18 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
index.php?t=getfile&id=1772&private=0
From left to right select text,then return,first char can't unselect.



index.php?t=getfile&id=1773&private=0
From right to left select text,then return,last char can't unselect.



index.php?t=getfile&id=1774&private=0
Some time drag text,at new place text is lose.only for Linux.

I know my english is poor,my mean can't expressed clearly.But bug is exist.
  • Attachment: first.png
    (Size: 211.63KB, Downloaded 742 times)
  • Attachment: end.png
    (Size: 206.28KB, Downloaded 713 times)
  • Attachment: lose.png
    (Size: 171.60KB, Downloaded 708 times)

[Updated on: Fri, 05 June 2009 03:21]

Report message to a moderator

Re: LineEdit MouseMove and LeftDrag bug fix [message #21791 is a reply to message #21787] Fri, 05 June 2009 09:50 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks, now I can see the problem with first and last characters.

Now fixed:

void LineEdit::MouseMove(Point p, dword flags) {
	if((flags & K_MOUSELEFT) && HasFocus() && HasCapture()) {
		int c = GetMousePos(p);
		PlaceCaret(c, mpos != c);
	}
}


I will check D&D issue soon - but I believe it is rather problem with DnD in X11 in general, so there should go the fix.

Mirek
Re: LineEdit MouseMove and LeftDrag bug fix [message #21793 is a reply to message #21791] Fri, 05 June 2009 10:11 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
Yes.
In the patch retained "if... else..." just to let problem more clearly.
I learn very lot from you,thanksŁĄ
Re: LineEdit MouseMove and LeftDrag bug fix [message #22017 is a reply to message #21756] Sun, 14 June 2009 21:56 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
gxl117 wrote on Thu, 04 June 2009 03:04


When use mouse leftkey drag selected text to new place,sometime draged text is to disappear.For LineEdit,if refresh it,dosappear character can reappear.But for CodeEdit,these characters is real lose. This bug is for ubuntu linux.



Hi,

I believe that the whole issue is in fact visual artifact of Compiz vs used cursor Image (too big).

I have attempted to make it smaller - now artifacts are gone. I hope this will solve this drag&drop issue.

Mirek
Re: LineEdit MouseMove and LeftDrag bug fix [message #22034 is a reply to message #22017] Mon, 15 June 2009 04:00 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
I tested SVN,drag selected text still lose. even I close all visual artifact.Crying or Very Sad
Theide at compile time, have an error:/upp/uppsrc/CodeEditor/CodeEditor.cpp:127:error: stray '@' in program
I delete Core/Diag.h 130 line '@' char,compile successfully.
Re: LineEdit MouseMove and LeftDrag bug fix [message #22043 is a reply to message #22034] Mon, 15 June 2009 11:33 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, I have now spend 5 minutes moving the text in LineEdit, with no problem detected.

Perhaps you could post youtube video or something? I guess it must be some very slight difference about how we are doing that...

Do you push any keys? Or just plain simple select - drag - drop?

What is the shape of cursor before drag?

Mirek
Re: LineEdit MouseMove and LeftDrag bug fix [message #22044 is a reply to message #22043] Mon, 15 June 2009 12:13 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Never mind, I believe I have found it (mouse has to be moving at drop) and fixed it...

Mirek
Re: LineEdit MouseMove and LeftDrag bug fix [message #22050 is a reply to message #22044] Mon, 15 June 2009 17:14 Go to previous messageGo to next message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
luzr wrote on Mon, 15 June 2009 12:13

Never mind, I believe I have found it (mouse has to be moving at drop) and fixed it...

Mirek

Thanks,now lineedit work very good.
But codeedit still have a bug.when codetip occurrent,mouse can't select text.I record a movie.
http://www.youtube.com/watch?v=ltLryxKb0WI

[Updated on: Mon, 15 June 2009 17:14]

Report message to a moderator

Re: LineEdit MouseMove and LeftDrag bug fix [message #22255 is a reply to message #21756] Sun, 28 June 2009 08:50 Go to previous message
gxl117 is currently offline  gxl117
Messages: 71
Registered: March 2009
Location: China
Member
Have anyone to reproduce the BUG?
Previous Topic: EditString and moving cursor left or right...
Next Topic: WithDropChoice<Edit...> does not support Tip()
Goto Forum:
  


Current Time: Fri Mar 29 14:58:32 CET 2024

Total time taken to generate the page: 0.01550 seconds