Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to put sort order triangle in a column heading
Message
 
 
À
19/06/2002 07:33:25
Arlei Silva
Chevron Oronite Brasil Ltda.
Capuava, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00669690
Message ID:
00670086
Vues:
26
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform