I'm trying to save the information about a listbox's customization. The user can resize the columns and sort them. So I'm saving all this data to my preferences when the window closes. All seems to be well, but I can't get the selected column to appear selected when I reopen the window. The data *is* sorted correctly, but none of the headers are selected. Here is some code:

// Window Close
preferences.integervalue("Clipboard Sort Column") = pageslist.sortedcolumn preferences.integervalue("Clipboard Sort Direction") = pageslist.columnsortdirection(pageslist.sortedcolumn) preferences.integervalue("Clipboard Scroll Position") = pageslist.scrollposition preferences.stringvalue("Clipboard Column Widths") = pageslist.columnwidths

// Window Open
pageslist.sortedcolumn = preferences.integervalue("Clipboard Sort Column") pageslist.columnsortdirection(pageslist.sortedcolumn) = preferences.integervalue("Clipboard Sort Direction",listbox.SortDescending) pageslist.columnwidths = preferences.stringvalue("Clipboard Column Widths","50,,50,100")
  // Populate pageslist
pageslist.scrollposition = preferences.integervalue("Clipboard Scroll Position")

pageslist is sorted after being populated.

--
Thom McGrath, <http://www.thezaz.com/>
"You realize you've created God in your own image when God hates all the same people you do."


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to