Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Scroll bar disappears
Message
 
À
07/12/1998 13:40:17
Paul De Niverville
Deniverville Econometric Research Ltd.
Victoria, Colombie Britannique, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00164866
Message ID:
00164978
Vues:
23
>Hi gang,
>
>I have a 3 page pageframe, 1- search parameters and button to start query, 2 - data entry, 3-grid to see all records in the view.
>
>If there is more than one record in the query result, I set focus to page 3 of the pageframe after the query. The grid does not show the scroll bar. If I go to page 1 or 2 and then back to 3 the scroll bar shows up.
>
>Any ideas??? Thanks.
>
>Paul de Niverville

Paul,

I placed the following code in the Refresh() of my cgrid class. It was proposed here by Cetin a while ago.

José
------------------------------------------------------------------
*-- CHANGE - JCM - September 17, 1998 - 17:21:10
*-- the scrollbars do not always paint well when there are fewer records
*-- than allowed by the total size of the grid.
*-- Then I decided to force Scrollbars only when there are enough records

*-- ScrollBars settings:
*-- 3 = both
*-- 2 = vertical
*-- 1 = horizontal
*-- 0 = none

LOCAL lnRec

WITH this
lnRecs = RECCOUNT(.RecordSource)
IF .height > lnRecs*.RowHeight + .HeaderHeight
.ScrollBars = IIF (.ScrollBars > 1, .ScrollBars - 2, .ScrollBars)
ELSE
.ScrollBars = IIF (.ScrollBars < 2, .ScrollBars + 2, .ScrollBars)
ENDIF
ENDWITH
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform