Marking text in textbox

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
tleon
New Member
New Member
Posts: 1
Joined: 2006-11-26, 13:19 UTC

Marking text in textbox

Post by *tleon »

Hi,

I experience the following behavior with tc7b1 and tc7b2.
I'm not able to reproduce it with 6.55.

1/ Put the cursor into command line textbox
2/ Enter text (just a sample, any text will work) "123 456 789"
3/ Put cursor right behind the 6
4/ Press shift+ctrl and hold them
5/ Mark text to the left by pressing left cursor key till beginning of text

Result: Text 123 456 is marked / high-lighted

6/ Press right cursor key, while still holding shift+ctrl

Expected behavior: Only 456 is marked
Actual behavior: The space behind 456 gets marked

Error: Cursor gets stuck behind the 6 and is not moved with the marking

Well, could be a feature as well. But none any other tool in know has.

Regards,

Thomas
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I have added a new feature to select words with Ctrl+Shift+Arrows, and jump from word to word limiter with Ctrl+Arrows. This uses EM_SETSEL and CB_SETEDITSEL for edit boxes and combo boxes. The problem is that these messages do not allow to set the position of the cursor, only of the selection. It seems that there is no function to set both the cursor location and selection in an edit box! This is causing the wrong selection in the above case.
Author of Total Commander
https://www.ghisler.com
Post Reply