On Wednesday 18 October 2006 1:14 pm, Dennis Birch wrote:
> On a related note, does anybody have any tips for removing the listbox
> header highlight after it has been pressed?
>
Well, it's not pretty, but it works and I see no flicker in Linux.

I put this in a timer with a period of 40 and set timer mode=1 in 
HeaderPressed

  Dim s as String
  ButtonHeaderPress=true  // flag to prevent "unpressing" when I don't it
  s=ListBox1.ColumnWidths
  Listbox1.ColumnCount=Listbox1.ColumnCount+2
  ListBox1.Columnwidths=s+", 1200, 0"
  ListBox1.PressHeader(ListBox1.ColumnCount-1)
  ListBox1.ColumnCount=ListBox1.ColumnCount-2
  ButtonHeaderPress=false

This adds two columns and presses the rightmost one. It then deletes them 
both. I tried using only one, but the depressed look stayed if the Listbox 
was wider than all of the real columns. (ie, white space at the right)

DJ



_______________________________________________
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