New topic: 

Listbox sort highlighting

<http://forums.realsoftware.com/viewtopic.php?t=45328>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        Jack Allen          Post subject: Listbox sort 
highlightingPosted: Wed Sep 12, 2012 10:05 am                         
Joined: Mon Jan 02, 2006 4:02 pm
Posts: 55
Location: Glasgow - UK                There are a couple of posts already on 
this subject, maybe I'm being thick but I didn't understand them.

I want to display a listbox in the same state as the user last left it. To that 
end I'm saving the sorted column number and whether it's ascending or 
descending.
When I re-opend I am successfully re-instating the sort but I can't get the 
header highlighting to work.
What I'm doing is
listbox1.sortedcolumn = columnNumber
listbox1.columnSortDirection = listbox.sortAscending / or sortDescending
listbox1.sort

and any custom sort processing is done in the CompareRows event.
This works well but how do I get the highlighting to turn on?

Most of the other posts say call listbox1.pressHeader(columnNumber).
Given the way my program is working, what would I code in PressHeader?
Alternatively, how can I highlight the listbox header after sort 
programmatically?

Thanks.
Jack   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to