Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a class for header or textbox of grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01119078
Message ID:
01119502
Vues:
19
Hmm, my builders are very complex.
But you can...
1) save this source code as prg file
DEFINE CLASS _Column AS COLUMN
   HeaderClass="_Header"
   HeaderClassLibrary="x:\test\cols.prg"
   fontname="Tahoma"

   ADD OBJECT TEXT1 AS _TEXTBOX

   PROCEDURE Init()
      This.SetAll("Visible",.T.)
   ENDPROC
ENDDEFINE

DEFINE CLASS _Header AS HEADER
   fontname="Tahoma"
   fontsize=10
ENDDEFINE

DEFINE CLASS _textbox AS textbox
   fontsize=11
   fontname="Tahoma"
ENDDEFINE
2)a) create new form
b) put grid on form
c) dblclick to property Memberclasslibrary of grid on Object Inspector (ignore warning message)
d) select saved prg file and class _column
e) set grid column count >=1

MartinJ

>Ok I follow that. Any lead on how to create my own builder for a grid?
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform