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 11 JUL 2010 08:01:56PM Colin Rule wrote:

In an edit table, I am setting the selpos property for multiple row selection in code, and toggling between allowing it and not.

If I select multiple rows, and then use these selections, and then return to single row select, and then back to multiple row select, the rows previously selected remain selected.

How can I remove the selection.

I have tried setting SELPOS to null, 0:@fm:0 and 1:@fm:1 etc

Any ideas?

Colin


At 12 JUL 2010 01:25AM Warren Auyong wrote:

The help says it acts as a toggle so just set the previous selection again to unselect them.

setsel=1:@FM:1:@VM:3:@VM:5

.mytable-]SELPOS=setsel ;* 1,3,5 selected

newsel=1:@FM:7

.mytable-]SELPOS=newsel ;* 1,3,5 and 7 selected

setsel := @VM:9

.mytable-]SELPOS=setsel ; 7 and 9 selected


At 12 JUL 2010 02:25AM Colin Rule wrote:

Thanks Warren, it works fine.

I can not see this about the toggle in the online help.

Colin


At 12 JUL 2010 04:14AM Warren Auyong wrote:

"Set_Property sets the active cell for an edit table, or selects the row(s) for combo and list boxes. For a multiple-selection list box, the current selection list is toggled with the list that is passed."

Perhaps it should say "For a multiple-selection edit table or list box…"


At 12 JUL 2010 06:15AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:

Colin,

I know you have a solution, but just FYI here's another way…

.bpPre {

 font-family:Consolas,Courier New,Courier,Verdana,Arial;
 font-size:10pt;
 background-color:#FEFEFE;
 color:#000000;
 border:1px solid #7389AE;
 padding:10px 20px;
 margin:0px 10px auto;

}

.bpComment {

 font-style:italic;
 color:#008000;

}

.bpDirective {

 color:#808000;

}

.bpKeyword {

 color:#0000FF;

}

.bpNumber {

 color:#800000;

}

.bpString {

 color:#008080;

}

.bpSymbol {

 color:#800040;

}

.bpSysVar {

 color:#8000FF;

}

.bpDebug {

 font-size:12pt;
 font-weight:bold;
 color:#FF0000;

}

.bpDict {

 color:#FF8000;

}

.bpLabel {

 font-size:11pt;
 font-weight:bold;

}

.bpLineNo {

 font-family:Courier New, Courier, monospace;
 color:#808080;
 background-color:#F5F5F5;

}

   $insert logical
   equ DTM_SELALLROWS$ to 1085 ; * // ( WM_USER + 61 )
   
   hwndEdt = get_Property( @window : ".TABLE_1", "HANDLE" )
   
   * // Select all rows....
   call sendMessage( hwndEdt, DTM_SELALLROWS$, TRUE$, 0 )
   
   * // Deselect all rows....
   call sendMessage( hwndEdt, DTM_SELALLROWS$, FALSE$, 0 )

The Sprezzatura Group

The Sprezzatura Blog

World leaders in all things RevSoft

View this thread on the Works forum...

  • third_party_content/community/commentary/forums_works/f1c01f7c437aeca48525775e00002d59.txt
  • Last modified: 2024/01/04 20:57
  • by 127.0.0.1