Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
KiloFox Grid Question
Message
 
 
À
23/04/2002 13:33:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00648319
Message ID:
00648328
Vues:
15
This message has been marked as the solution to the initial question of the thread.
>The following code is from KiloFox
>
>
>If Not Empty(m.tcTag)
>	With This
>		*** Make sure it really is a tag for the grid's RecordSource
>		If IsTag(m.tcTag, .RecordSource)
>			*** Go ahead and set the order for the table
>			Select (.RecordSource)
>			Set Order To (m.tcTag)
>			.SetFocus()
>		Endif
>	Endwith
>Endif
>
>
>When I click on a "qualifying" column, whilst the order of the grid changes, the column that I have clicked on does not receive focus (where I mean that the new column becomes "selected"). In fact, the previous column retains focus. In the above code, I assume that the Setfocus method call is the the grid's setfocus.
>
>To physically change column after clicking on the header, what needs to be done? I am using Nick's grid highlighter class. I assume that will not cause any issue?
>
>Many thanks!
>
>-=Gary
The column in not changed when clicking on the header. If you want to change it, you can put this code in header.click()

...
this.parent.setfocus() && Set focus on the column
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform