Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rowheight goes out of synch in a split grid.
Message
From
18/12/1998 13:24:11
Hermann Strijewski
Fast Track Business Solutions
Toronto, Ontario, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Rowheight goes out of synch in a split grid.
Miscellaneous
Thread ID:
00168953
Message ID:
00168953
Views:
61
I was going to post a question in this forum but then figured out the answer just as I was going to formulate the question, so want to post both the question and the answer, just in case it may help someone else in a similar situation:

The problem was that in a split partitioned grid I wanted users to allow to re-size the rowheight. However, as soon as they resized one panel, the rowheight in the other panel was out of synch and then they would have to go into that and see if they can make the same change there.

I found that this code put into the MOUSEUP event for the GRID worked to synchronize the new rowheight in both panels:

I created a property for the form, GRIDROWHEIGHT.

* grid.mouseup Event:
IF THIS.ROWHEIGHT#THISFORM.GRIDROWHEIGHT
THISFORM.GRIDROWHEIGHT=THIS.ROWHEIGHT
PANEL = 0
THIS.ROWHEIGHT=THISFORM.GRIDROWHEIGHT
PANEL = 1
THIS.ROWHEIGHT=THISFORM.GRIDROWHEIGHT
THIS.REFRESH()
ENDIF
Reply
Map
View

Click here to load this message in the networking platform