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:
00338514
Vues:
15
Hi 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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform