Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rowheight goes out of synch in a split grid.
Message
De
18/12/1998 13:24:11
Hermann Strijewski
Fast Track Business Solutions
Toronto, Ontario, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Rowheight goes out of synch in a split grid.
Divers
Thread ID:
00168953
Message ID:
00168953
Vues:
54
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
Répondre
Fil
Voir

Click here to load this message in the networking platform