Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to get a persistent grid row Border?
Message
From
13/07/2007 21:36:31
 
 
To
12/07/2007 23:41:25
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01239912
Message ID:
01240418
Views:
13
Ian, that's the best idea I've heard yet. After spending hours on it I got real close but gave up for now. The main problems I have is on forms with grids on multiple pages coupled with the fact that the grid.RelativeRow (which is the one to use, not ActiveRow) returns 0 if the grid doesn't have focus. Also, the fact that AfterRowColChange() doesn't fire when moving the grid record as when using Navigation type buttons. I had to also use the grid.Scrolled() event to move the shape too. Almost was able to work around all these things, but hit a wall. Maybe try more later. Thanks for your suggestion. It would sure be sweet if VFP9 sp2 would have an option added to be able to do Persistent grid row highlighting, but be able to turn off the highlighting and only use the row outline border... I posted an email on Calvin's blog. But maybe it's too late. -Mark

>Hi Mark.
>
>You could always do it yourself. If you added a shape to the form and made it the right size to neatly frame a row then adding the following to the grid's AfterRowColChange event will make it track the currently selected row.
>
>ThisForm.Shape.Top = -1 + ;
> ThisForm.Grid.Top + ;
> ThisForm.Grid.HeaderHeight + ;
> ThisForm.Grid.RowHeight * (ThisForm.Grid.ActiveRow - 1)
>
>Ian Simcock.
>
>
>>I couldn't find any threads on this...
>>Is there any way to get a persistent row "border" in a grid? The problem with HightlightStyle property=2 is that it hides the current row's dynamic color. The only thing I can think to do, is create an extra column in the grid and change the backcolor or put an arrow graphic in the cell for the current row. Anyone have any other ideas? As you know, the row border disappears when the grid loses focus and the little arrow in the delete column on the far left disappears if the form loses focus and regains focus. TIA.
Previous
Reply
Map
View

Click here to load this message in the networking platform