Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which columns are visible at the moment
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00338471
Message ID:
00338630
Vues:
13
Hi Marcia,

Thanks for your reply, I was not aware of this function. I may need to use
this code via the scrolled event. Need to make sort image visible=.T. or
.F. if column is visible by the user. Other wise the wrong column would have
this image, if the user decides to scrroll further.

I also noticed your answer within CompuServe. Good catch<g>

Doron

>>> I am trying to figure out if there is away to know which columns are visible to the end user. (I am not talking about the visible property) Let say I have a grid with 11 columns and I can see only 5 columns at the time. The user can see from column 5 to 10 after he/she scrolled into the fifth column. That’s what I need to figure out what columns are visible to the user. <<
>
>
>lnHdrLeft = OBJTOCLIENT( This.Columns[ lnCol ].Controls[ 1 ], 2 )
>*** If we are in a container, find out the offset from the form
>*** and adjust the left value
>IF UPPER( This.Parent.BaseClass ) # 'FORM'
>   lnHdrLeft = lnHdrLeft - OBJTOCLIENT( This.Parent, 2 )
>ENDIF	
>IF lnHdrLeft > 0
>   *** The column is visible
>ENDIF
>
>
>Marcia
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform