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   |
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.

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
|
|
|
Goto Forum:
Current Time: Fri Aug 15 12:16:24 CEST 2025
Total time taken to generate the page: 0.24409 seconds
|