Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clicking on title bar
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00523011
Message ID:
00523347
Views:
13
Timothy,

Mark's suggestion would work, if you design your grid in design-time. If you do it in code, you have to create a Header class and add it to the grid programmaticaly. Check FAQ section for Mike Helland's FAQ: How to add methods to the grid created in run-time (something like that).

>no what I mean is, do I have to add an object, like a label, onto the top of the grid and modify it's event? Or is there somewhere on the actual grid that I can do this?
>
>>You mean the header that has a caption for the column? With respect to users being able to figure out what to click to change the sort order in the grid?
>>
>>To help my users, I make the header caption forecolor RED for the currently sorted column. If the caption color is BLUE, it means they can click that to change the order to that column. A BLACK header is default and does no action.
>>
>>>That's what I figured but can you actually discern the header from the rest of the grid? It seems as if it were all 1 unit?
>>>
>>>>For a grid, what I do is put code to change the sort order in the Click method of the grid headers.
>>>>
>>>>>sorry I am not familiar with those 2 anacronisms. So what event do you apply when the user clicks on the grid heading. Actually, I don' think you can specify the heading but rather the whole grid. (haven't used grids too much)
>>>>>
>>>>>>>I see the standard way to sort a list in standard apps is to click on the column's title bar. Is that done with a grid in vfp. Can it be enabled with the browse window?
>>>>>>>-Thanks.
>>>>>>
>>>>>>Grids are the VFP way [and IMO better way] of providing browse functionality to your users. I do not know of a way to do what you want using a regular browse window except by using OKLs. A browse window has no PEMs.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform