Join The Works program to have access to the most current content, and to be able to ask questions and get answers from Revelation staff and the Revelation community

At 27 AUG 2002 11:26:59PM Jackie Jones wrote:

Is there a way to catch multiple selects on an edittable?

Not just that they've selected multiple lines.

But is there a way for the user to

click the mouse down then drag through the rows

to select a whole bunch instead of clicking on each row?

Thanks


At 28 AUG 2002 04:01AM Oystein Reigem wrote:

Jackie,

But is there a way for the user to click the mouse down then drag through the rows to select a whole bunch instead of clicking on each row?

That works just fine here.

Of course you must first set your edit table to multi-select the usual way.

As you know - after that you can select multiple lines with Shift-click. But you can also select multiple lines by dragging, as long as you use the Shift button while you drag. A third method is to drag on the row buttons. You can do that without using the Shift key.

If you want to do multiple selects without using the Shift button, you must either use the row buttons, or the whole edit table must be protected (or alternatively each single column must be protected). When everything is protected you can multi-select with Shift-less clicking or dragging in the client area (the cells).

If you want to do Shift-less multiple selects in the cells area on unprotected data you might be in trouble. But there might also be special cases that can be solved. E.g, I have made a tool with a multi-select edit table where double-clicking in a row automatically selects a whole group of rows. But that's only possible because the program can see from the content of the edit table exactly which rows to select. In my case the content is a hierarchical list. For a similar example think the way Database Manager's Update Indexes tool displays tables and fields and indexes, with the first column sorted on table name, etc. If that tool had the same functionality as my tool double-clicking on a table name would select all the rows with the same table name.

- Oystein -


At 28 AUG 2002 12:11PM Jackie Jones wrote:

The way I've always done multi select is

to make a hidden column. When the user clicks

the row, it puts in or takes out an X.

So, I'm not with you on the usual way.

So I tried the example from the Knowledge base on

Multi-Selecting Rows in Edit Tables (in order

to place the selected rows into another edit table)

and I cannot get it to work.

Step 4 says: on the CREATE event of TABLE1 place the following code:

And there's not a create event for edittables, that I can find.

So I put the code into the create event of the form.

Anyway, it doesnt work.

Help?

Thanks, Jackie


At 28 AUG 2002 03:33PM Oystein Reigem wrote:

Jackie,

Form CREATE is correct. Here's my CREATE for setting an edit table called "ET2" to multi-select:

$insert Logical

equate DTS_MULTIROW$ to 512

AddStyle=DTS_MULTIROW$

Style=Get_Property( @Window : ".ET2", "STYLE" )

if Style1, 2 _EQC "0x" then

convert @Lower.case to @Upper.case in Style

Style=Iconv( Style3, 99, "MX" )

end

Style=BitOr( Style, Addstyle )

Style=0x" : Oconv( Style, "MX" )

OldVal=Set_Property( @Window : ".ET2", "STYLE", Style )

- Oystein -


At 28 AUG 2002 04:54PM Jackie Jones wrote:

  • third_party_content/community/commentary/forums_works/042ba655f010a7e385256c230012f34c.txt
  • Last modified: 2023/12/30 11:57
  • by 127.0.0.1