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:
00648338
Vues:
20
>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

Hi Gary,

Clicking on the column header does not select the column in VFP. If the above code is in the Header.Click() the .SetFocus() line should be
.Parent.Setfocus()
Grid Highlighter does not change any grid clicking behaviour.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform