Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to put sort order triangle in a column heading
Message
From
19/06/2002 11:02:33
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00669690
Message ID:
00670136
Views:
13
Hi!

It was just a sample, though you're right ;)

>Hi Vlad,
>
>I read your article yesterday in the evening in UT Mag (Grids part 3) and enjoyed it very much. You're paying so much attention to every little possibility and detail, it's facinating.
>
>But one part was a little bit funny: Do you think anyone would ever want to have sort of FirstName in ascending order and LastName in descending order? I could not imagine, why this would be necessary :)
>
>Thanks again.
>
>>Hi!
>>
>>You're true that there is no built in way for adding graphics to header. But this is posisble, and approach is developed. No matter what control you place over the grid header - a set of lines in container, or image, the approach I developed will work. You just have to make your own sorting indicator class < s >
>>
>>I think Nadya wanted to say that it is not correct that there is no possibility to add graphic to the header. With the same success as I did for that sample, you can use Image control and your own image placed over the grid header.
>>
>>There is a reason why I did not used image in this case:
>>Its hard to change color of lines inside of the image on the fly. In my sample you can right click on the header and change color of the header. Then see how arrow reflects it. With intermediate brightness colors arrow is also colored properly. On dark or light color background it is also always visible no matter what color you use.
>>
>>
>>>Nadya,
>>>
>>>Thank you for your reply.
>>>I think I´m not wrong. The class you mentioned (Sortable Grid) shows that triangle indicator, but this triangle are not trully graphical.
>>>If you download the class and open the code, you will note that the triangle is built using line object.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform