Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modifying the click event of a grid header
Message
From
24/02/2004 09:58:38
 
 
To
24/02/2004 03:59:50
Albert Beermann
Piepenbrock Service Gmbh & Cokg
Osnabrück, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00879849
Message ID:
00880258
Views:
19
Hello Albert,

the Header class can only be defined in code ..
DEFINE CLASS oSomeHeader AS Header

 FUNCTION Click
  && sort here ..
 ENDFUNC

ENDDEFINE

-----
&& Add them to the grid column's in grid's Init Event ..

LOCAL lcCaption, lcTag, lcToolTip
FOR EACH pColumn IN THIS.Columns
 lcCaption = pColumn.Header1.Caption
 lcTooltip = pColumn.Header1.TooltipText
 pColumn.RemoveObject('Header1')
 pColumn.AddObject('Header1','oSomeHeader')
 pColumn.Header1.Caption = lcCaption
 pColumn.Header1.TooltipText = lcTooltip
ENDFOR
Regards

Christian
Previous
Reply
Map
View

Click here to load this message in the networking platform