Results 1 to 6 of 6

Thread: How do I make the arrow show up??

  1. #1

    Thread Starter
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519

    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..
    Attached Images Attached Images  
    10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    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.)

  3. #3

    Thread Starter
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519

    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
    10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".

  4. #4

    Thread Starter
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519

    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..
    10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".

  5. #5
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    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);

  6. #6

    Thread Starter
    Frenzied Member RudyL's Avatar
    Join Date
    Mar 2001
    Location
    Chicago
    Posts
    1,519

    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.
    10 different ways to skin a cat and amazingly enough each and every one has the same result, the cat gets skinned! The same can be applied to code, so be nice and accept each others "preferences".

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width