1 Attachment(s)
How do I make the arrow show up??
Hi all,
There has been an ongoing thread about listboxes that I started and this was brought up in there but I wanted to break this off to a new topic so that soe new people might take a look.. :)
I am trying to make that little arrow show up in my listboxes column header based on how the column is sorted it at all..
Re: How do I make the arrow show up??
There is no easy way (i.e. setting a property) to do this. You would have to owner draw the header and draw the appropriate image in the appropriat column.
Take a look at this link for more info:
http://blog.opennetcf.org/ayakhnin/P...6-4ee695a644d1
(I know its for the Compact framework, but the theory should be the same.)
Re: How do I make the arrow show up??
Quote:
Originally Posted by Negative0
There is no easy way (i.e. setting a property) to do this. You would have to owner draw the header and draw the appropriate image in the appropriat column.
Take a look at this link for more info:
http://blog.opennetcf.org/ayakhnin/P...6-4ee695a644d1
(I know its for the Compact framework, but the theory should be the same.)
Thanks for the link, unfortunatly is is C# also.. Not to familiar with that but I am digging.. Thanks :)
Re: How do I make the arrow show up??
Like i said earlier I am not all that familiar with C# so I appologise if I am missing something, but I do not see anything relating to the arrows.. I see the sorting and such and I think I understand that but nothing on the arrow.. Help.. :eek:
Re: How do I make the arrow show up??
In the OnPaint of the HeaderControl.cs is where he draws the arrows:
Code:
// Prepare arrow
if (header.ascending)
PrepareArrowpoints(header.Left + textRect.Width + 20, false);
else
PrepareArrowpoints(header.Left + textRect.Width + 20, true);
// draw arrow
gx.FillPolygon(textBrush, m_arrowPoints);
Re: How do I make the arrow show up??
Quote:
Originally Posted by Negative0
In the OnPaint of the HeaderControl.cs is where he draws the arrows
Ahhhh.. I see it now. Thx. :thumb: