Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which columns are visible at the moment
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00338471
Message ID:
00338514
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform