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++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » Cursor select behaviour; feature request  () 1 Vote
Re: Cursor select behaviour; feature request [message #22063 is a reply to message #22058] Tue, 16 June 2009 11:25 Go to previous messageGo to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
skyhawk wrote on Tue, 16 June 2009 09:17


Here I have performed the same 'place cursor', 'move mouse', 'shift+right-click' action on TheIde and gedit.

index.php?t=getfile&id=1794&private=0

Gr,

Jan

Hello, Jan.

In the first post on this topic you said about left mouse click instead of right mouse click. I guess, you think of EditField behaviour (CtrlLib/EditField.cpp):
void EditField::RightDown(Point p, dword keyflags)
{
	keep_selection = true;
	MenuBar::Execute(THISBACK(MenuBar));
	SetFocus();
	keep_selection = false;
}

The AssistEditor have LineEdit behaviour (CtrlLib/LineEdit.cpp):
void LineEdit::RightDown(Point p, dword flags)
{
	mpos = GetMousePos(p);
	SetWantFocus();
	int l, h;
	if(!GetSelection(l, h) || mpos < l || mpos >= h)
		PlaceCaret(mpos, false);
	MenuBar::Execute(WhenBar);
}

The fix maybe as follows (also for DocEdit):
void LineEdit::RightDown(Point p, dword flags)
{
	mpos = GetMousePos(p);
	MenuBar::Execute(WhenBar);
	SetWantFocus();
	int l, h;
	if(!GetSelection(l, h) || mpos < l || mpos >= h)
		PlaceCaret(mpos, false);
}

[Updated on: Tue, 16 June 2009 11:28]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How do I make a package a library?
Next Topic: Suggestion: cross-platform "U++ package" file type.
Goto Forum:
  


Current Time: Fri Aug 15 09:45:17 CEST 2025

Total time taken to generate the page: 0.18789 seconds