Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Classes not to subclass
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00792211
Message ID:
00792679
Views:
30
Aha. I was looking for them visually.

Is there a similar way to specify the base class to use for the column's Textbox?

Thanks.



>I don't find a column class or a header class in the VFP base classes.
>
>They are still there, you still have to define them in a .prg. In the .prg, you can do something like this:
>
>
>DEFINE CLASS colCustom AS Column
>  Name = "Colcustom"
>  HeaderClass = "hdrSortGrid"
>  HeaderClassLibrary = "GridMembers.prg"
>ENDDEFINE
>
>DEFINE CLASS hdrSortGrid AS Header
>  Name = "hdrCustom"
>  Caption = ""
>  FontBold = .T.
>  PROCEDURE Click
>    This.Parent.Parent.SortGrid( This.Parent )
>  ENDPROC
>ENDDEFINE
>
>
>Then you specify colCustom as the memberClass of the grid and GridMembers.prg as its MemberClassLibrary.

Read about the greatest fraud in the history of mankind.
See TaxableIncome.net.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform