General information
Title:
Rowheight goes out of synch in a split grid.
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only