--------------------------------
Detailed explanation:
My company has decided after this years Devcon in Arizona to take the plunge and start converting apps from Foxpro to XB++. We have decided for the moment to forgo using Express while we learn the base language. I loved what I saw at the conference this year in regards to Express and we'll likely start using it once were more comfortable with the root concepts of XB++.
I'm working on a simple program of ours, it only uses one table and is a internal only management system. A great starter project.
XbpBrowse lacks a few things that I want to implement so, I figured to subclass it and create my own class. I'll call it MyBrow
MyBrow has a default method Init(). According to the Xbase documentation Init() executes immediately after :new() This is perfect because all I want to do is start by adding some variable properties to the class that I can easily access and modify at runtime.
Code: Select all
CLASS METHOD MyBrow:Init(oParent, oOwner, aPos, aSize, aPresParam, lVisible)
//init
::aSize := aSize
::aPos := aPos
::sType := "Browser"
RETURN self
Code: Select all
oBrowse:addColumn( oXbpColumn )
I double and triple checked through the debugger and i was successfully passing a XbpColumn object, I tried another method:
Code: Select all
oBrowse:addColumn( FieldBlock(cField),35,cField)
So my question becomes, how can finish creating the new class, with the default behaviors?
Thanks for any help I can garner.