Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Column class def: how to specify the textbox properties
Message
De
15/02/2005 14:06:08
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows NT
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
00987154
Message ID:
00987158
Vues:
21
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform