Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
KiloFox Grid Question
Message
 
To
23/04/2002 13:33:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00648319
Message ID:
00648338
Views:
18
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform