Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Column member class
Message
From
29/03/2004 17:23:56
 
 
To
29/03/2004 14:05:04
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00890548
Message ID:
00890614
Views:
30
This message has been marked as the solution to the initial question of the thread.
Hi Mike.

How can I add my own textbox class to this column member class and have it appear at design time the way the VFP textbox baseclass does?

You can define your column like so in a prg called GridMembers.prg. But you may want to look at BINDEVENT() as an alternative to using member classes. It may be a better solution depending on what you are trying to do.
*** Column class for grdList
DEFINE CLASS colCustom AS Column
  Name = "Colcustom"
  HeaderClass = "hdrSortGrid"
  HeaderClassLibrary = "GridMembers.prg"
  ADD OBJECT Text1 as txtgrid
ENDDEFINE

 
DEFINE CLASS txtGrid AS TextBox
  Name = "txtGrid"
  BorderStyle = 0
  SpecialEffect = 2
  Margin = 0
ENDDEFINE 


DEFINE CLASS hdrSortGrid AS Header
  Name = "hdrCustom"
  Caption = ""
  FontBold = .T.
  PROCEDURE Click
    This.Parent.Parent.SortGrid( This.Parent )
  ENDPROC
ENDDEFINE 
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform