Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assign Grid Header Click at run time
Message
From
23/10/2002 11:27:03
 
 
To
23/10/2002 10:51:15
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00714297
Message ID:
00714393
Views:
18
>Thanks for that Gregory.
>I have also got some help from this link: http://advisorevents.com/Articles.nsf/aid/GRANL07
>
>The problem I have is to find the relative column in my splitted grid. For some reason the last parameter of gridhittest is supposed to deal with it, but actually it doesn't. So I just used the gridhittest to determine whether it is a header or not and then activecolumn to find the correct field to set order to. This is also not perfect since it forces the user to click on the grid's first row first and only then on the grid, but nothing is perfrect in this world... However, if you have a solution for that as well, you are more than welcome!
>
>Thanks again
>
>Jonathan

Jonathan,

I'm not following you. If you click on a header (which is a separate object), and the header click/mousedown passes this.Parent to the grid's method then you hold the column object.

Why is it important to know in which pane you have clicked ? As far as I can see, a column (albeit displayed in both panes) is still the same column, ie it only exists once but is displayed twice.
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform