Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to put sort order triangle in a column heading
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00669690
Message ID:
00669974
Views:
13
>Arlei,
> many thanks. Now I understand what is happening. I think I will just go with the simple ^ and v as I try to keep my programs as clean and simple as possible. "The less the better" keeps the bugs away.
>
>Thanks,
>John.
>
>
>>John,
>>
>>If you are using the VFP grid control, there is no way to show that sort order triangle, because this VFP object does not support graphics in their column heading.
>>
>>The only way to show that triangle is use the ListView ActiveX Control. In this control you can "attach" a ImageList object and then assign the index of the image with each column header object.
>>
>>Hope this helps...

That's not exactly true. Look into Download section here, sortable grid sample by Vlad G. He has exactly the functionality, you're looking for.

In my applications I use two colors (red and sort of magenta for asc/desc orders, I like my way of implementing it, so I didn't switch to Vlad's, though his way is more professional, but also more complicated). Anyway, he already coded this class and put it here for free in Downloads section.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform