The arrows are part of the sort highlight.
Listboxes aren’t system native controls, so I don’t even think there’s declares to hide them.
On Yosemite and El Capitan there is no other indication a column is selected other than those arrows, so I’m not sure that will work out well either.
Could you explain why you want to show a column is sorted without the directional? From a UX standpoint I can’t understand why you wouldn’t want to show them.
Actually I DO NOT WANT to sort the column… just want to slect it, and highlight it… I am now writing code to paint (on the cellbackgroundpaint) the sides of each cell of the “selected” column to simulate a selected status on the column of the listbox.
But I would really like that only to be shown on the header as the listbox is full of colored information, and painting the sides of each cell will only add more information to an already clutterred listbox…
I would not use a list box at all
A custom canvas subclass and draw it however you want, make it respond however you want
Why ?
Well if those are “dates” in the columns the listbox is going to have an issue with more than 64 date headers (despite the fact it can show up to 256 columns)
But a custom canvas can do whatever - but it IS more work
And just FYI the old editor in the IDE itself was - just a canvas - a very customized one - but still JUST a canvas
I think your suggestion would be more work… keep in mind that the listbox never has more than 13 columns. (12 dates, plus the first non date column), so I will never have to deal with the limitation you mention.
The listbox has a scrolling effect… and loads up dynamically the data corresponding to the shown dates, and of course re draws the info as you click (go) forward or back in the timeline …
Anyway… I guess it is not possible to just “select” a header without displaying the arrows ?
How about just lighting the cells of the column when you click on a header? That you can make the Listbox relatively easily do without showing the sort arrows
Hey Karen… this is what I am thinking I should do… the cells already may contain colored backround+colored text+some black lines , so “lighting” them may have it’s difficulty… I don’t know…
I wil try just adding up a value to all the colors chosen for the elements in the cell… Not sure I am thinking this straight… it’s late here…
thanks a lot