Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Column class def: how to specify the textbox properties
Message
From
15/02/2005 14:06:08
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows NT
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00987154
Message ID:
00987158
Views:
24
>I'm defining a new column class in a PRG file for use in a grid. I understand how to define the associated Header class, and how to assign values to the properties of the column and the header in the respective class definitions in the PRG file.
>
>However, I would like to set the NullDisplay property of the Textbox that is used by the column to display the data. Can I do that in the column class definition as well? How?

Here's a prg-based column from a project of mine:
Define Class GrdOutOfWorkBookColumn As Column
  HeaderClass = "GrdOutOfWorkBookHeader"
  HeaderClassLibrary = "GrdOutOfWorkBookClasses.PRG"
  Add Object Text1 As GrdOutOfWorkBookTextBox

Enddefine


Define Class GrdOutOfWorkBookHeader As Header
  Alignment = 2
  Caption = "Header"
  WordWrap = .T.
Enddefine


Define Class GrdOutOfWorkBookTextBox As TextBox
  BorderStyle = 0
  Margin = 0
  Format = "Z"
  NullDisplay = ""
Enddefine
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform