Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a class for header or textbox of grid
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01119078
Message ID:
01119502
Views:
18
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
Previous
Reply
Map
View

Click here to load this message in the networking platform