Oberon Community Platform Forum
October 16, 2019, 02:28:13 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]
  Print  
Author Topic: Multiple selection using ctrl+click and ctrl+drag  (Read 5330 times)
leledumbo
Jr. Member
**
Posts: 96



WWW
« on: April 11, 2008, 12:28:35 PM »

Currently multiple selection can only be performed only if the selections are contiguous, by holding shift first. It applies both in explorer and text viewer. Most today's OSes have ability to do multiple selection even if the selections are not contiguous, by holding ctrl first. For GUI elements, ctrl+click can be done. For texts, ctrl+drag will do the same purpose.
Logged
staubesv
Administrator
Sr. Member
*****
Posts: 387



« Reply #1 on: April 16, 2008, 07:14:42 PM »

Would be nice, but we are too busy with other things...
Logged
BohdanT
Sr. Member
****
Posts: 271


Life is difficult, but fortunately is short!


WWW
« Reply #2 on: April 17, 2008, 01:45:12 PM »

   
for the implementation of this feature, you need to make changes to WMGrids.Mod module.
1. Make processing and support pressing Ctrl in method GenericGrid.PointerDown
2. Add Type/object for support ranges selection (currently  the selection set in variables - selStart, selEnd: CellPos;):
Code:
SellRange = RECORD
  from, to: CellPos;
END;
Selection: POINTER ARRAY OF SellRange;
or

Code:

CellArray = POINTER TO ARRAY OF BOOLEAN;
Row = POINTER TO RECORD
cells : CellArray;
END;
Selection= POINTER TO ARRAY OF Row;
or
 
Code:
Your version

And not need to wait for staubesv Wink
Logged
Pages: [1]
  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!