Oberon Community Platform Forum
November 21, 2019, 06:56:06 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: 1 2 [3]
  Print  
Author Topic: Word selection on double clicking  (Read 35124 times)
staubesv
Administrator
Sr. Member
*****
Posts: 387



« Reply #30 on: June 18, 2008, 04:37:57 PM »

The AosTextUtilities.FindPosWordXXX procedures are used by both cursor word movement/selection and in the case that the user selects a word by double-clicking it using the mouse, and then (still holding the left mouse button down) selects more text.

For me, it seems that using a different behaviour for keyboard / mouse is okay since when jumping over words using CTRL-cursor-keys, the user most likely wants to jump over the whitespace, too. For example, "Hell<cursor>o world" results in "Hello <cursor>world" not "Hello<cursor> world". To be consistent here, the selection of words using CTRL-SHIFT-cursor-keys should do it the same way, i.e. select "Hello " not "Hello".

If the user, however, selects a word by double-clicking it using the mouse, holds down the left mouse key and selects more text by moving the mouse then, it's definitely not consistent anymore... I could, for example, split up the procedure TextView.DoubleClickSelect into SelectBackwards & SelectForwards and use it also for this case to get a consistent behaviour (for the mouse)... this seems to make sense.
Logged
BohdanT
Sr. Member
****
Posts: 271


Life is difficult, but fortunately is short!


WWW
« Reply #31 on: June 18, 2008, 07:26:22 PM »

Quote
Thanks for your help!
Sven, this is thanks to you for help! Smiley

A problem with navigating in ModuleTree only from me?
I tried on two machines and the same situation.
I will say honestly, I can not find what was the problem...  Angry

Quote
The AosTextUtilities.FindPosWordXXX procedures are used by both cursor word movement/selection
I'm looked as maked in VS2005.
Ctrl+Arrow: goes on begin of each words and on begin of each character.
Ctrl+Shift+Arrow: selection working as Ctrl+Arrow.
Selection after DoubleClick: goes on end of each words and on the end of each character.

In Delphi7
Selection after DoubleClick: don't work, only select word.
Ctrl+Shift+Arrow: selection working as Ctrl+Arrow.
Ctrl+Arrow: goes on begin of each words and skip character and spaces, but stop on the end of line.

   
Unfortunately I can not check as selection working in the Eclipse Sad
« Last Edit: June 19, 2008, 08:02:39 AM by BohdanT » Logged
staubesv
Administrator
Sr. Member
*****
Posts: 387



« Reply #32 on: June 19, 2008, 08:57:26 AM »

Could you describe the PET navigation problem a bit more in details? What would you expect when you click on an element in the Program Structure?
Logged
BohdanT
Sr. Member
****
Posts: 271


Life is difficult, but fortunately is short!


WWW
« Reply #33 on: June 19, 2008, 11:38:22 AM »

Please look video:
http://oberon.ho.ua/files/Pet/Pet.html
Logged
staubesv
Administrator
Sr. Member
*****
Posts: 387



« Reply #34 on: June 19, 2008, 11:55:24 AM »

Ok, I see what the problem is, but I was not able to reproduce it on my machine... After calling PET.Open WMTextView.Mod, what are the exact steps necessary to reproduce the behaviour shown in the video?
Logged
BohdanT
Sr. Member
****
Posts: 271


Life is difficult, but fortunately is short!


WWW
« Reply #35 on: June 19, 2008, 12:04:19 PM »

On both computers, which I tried, installed WinAos Revision 1239.
I'm compiled latest: AosTextUtilities.Mod, WMTextView.Mod, WMEditors.Mod, PET.Mod.
Neither system modules will not change.

No need additional step, to produce this problem.
« Last Edit: June 19, 2008, 12:33:49 PM by BohdanT » Logged
sage
Full Member
***
Posts: 170



WWW
« Reply #36 on: June 19, 2008, 12:48:47 PM »

I can reproduce the problem too.
In my case steps are:
 1. Open any module in PET.
 2. Click on items (procedures, for example) on left navigation tree.
Achieved result is:
 Text selection appears from first char of procedure's name to the end of text. Cursor moves to end of text.
Logged
staubesv
Administrator
Sr. Member
*****
Posts: 387



« Reply #37 on: June 19, 2008, 02:35:32 PM »

I have not tried to "upgrade" revision 1239 (WMTextView.Mod + AosTextUtilities.Mod). Using the just built revision 1294, I don't see this problem. Must likely it will just disappear at the next WinAOS object file updated...
Logged
Pages: 1 2 [3]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!