Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to put sort order triangle in a column heading
Message
De
18/06/2002 21:32:18
Wally Noll
Double Aa Builders
Mesa, Arizona, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00669690
Message ID:
00669968
Vues:
11
John,

You can program a class to duplicate that functionality you see in other programs. The triangle of course is an aesthetic touch that you may or may not choose to duplicate. On my system I define what goes in the 'Locate' grid by an array with 8 columns that I define in the form's Init. Then the Locate tool I made grabs that info from the 8 columns and uses it in the grid that user uses to Locate a different record. If certain columns are marked .T. instead of .F., then a little push button appears over the header and if user presses it, then there is a quick-pick done in the KeyPress event where every time the user types something in it searches for that. You press the button above 'last name' and then type an 'L' it will go to first record who's last name starts with L. You type in La and it goes to the La records, etc. It works great for me, but it would've been better if I put that code into the Header click instead of push buttons. Hindsight is 20-20. On some systems all the columns are sortable and indexes are automatically created on each column. I don't go that far, I decide what columns can be used in this manner, I make the indexes in the Load, but beyond that all I have to do is fill out the stock code in the Init defining what goes in the columns and that's it.

So, you will either have to do some nice programming for your class library or download a tool that may duplicate this function.

Wally
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform