Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LostFocus for the header control
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00556206
Message ID:
00556445
Vues:
14
Hi!

BTW, some ideas for header you can get from the VFP Grids article in September issue of the UT Magazine (if you did not read it already ;).

>>P.S. I did passed the time such grid developed, so you can ask also for more complex questions. For example, instead of header coloring, put arrow to indicate sorted column and the direction of sorting.
>
>
>Hey, that sounds even more exciting :) Ok, can you explain, how you add Up/Down arrow to the header?
>

The most simple way is to add it just above the grid control and position it properly above the column header horizontally. However, you will require to modify the grid class for that. Again, read about this in the VFP Grids article - you will find there the events that required to be catched to refresh the positioned control properly (but disregard the complex algorithm of positioning, Cetin did pointed that position of column in pixels is easy to get by ObjToClient() function ;)))

Well, you can position control OVER the header, but this is more complex. This will required to refresh control after each click on grid, refresh of grid etc. - any place that cause grid header redrawing, because grid header draw self above any control on the form. You can also use control window defined by DEFINE WINDOW ... IN WINDOW as the control and put it over the hreader, but forget then about transparensy of the sorting indicator control.

P.P.S. In next VFP Grids article I planned to cover the sorting by header click topic ;))
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