Joe Yoder wrote:
> I trying to get the hang of working with classes.  At this point I am
working exclusively in code.  I understand it will be possible to
convert to VCX? format when I finally understand what I am doing.
>
> I'm not sure if  "child", "parent" and "subclass" are proper terminology
so if what I say doesn't make sense feel free to question/correct me.  I
want to subclass a TextBox so that it can create an EditBox on the fly. 
I need the child EditBox to be able to read and write the parent TextBox
properties.  I started expecting to return parameters like one does from
functions but suspect that won't work after a control has lost focus.
>
> I have a mockup partially working but am using a form method called from
the TextBox to create the EditBox rather than a method on the subclassed
TextBox.  I don't know how to handle the naming in this situation.  Do I
need to worry about name collisions or will the system handle it for me?
>
> A very simple example would probably be the easiest way for me to get
the light bulb to come on!
>
> Thanks in advance,


In VFP, it's single inheritance---so a textbox subclassed will always be
a textbox.  A textbox can't become an editbox or label or form, etc.  An
editbox subclassed is an editbox.  I had written some easy PRGs showing
how inheritance worked about 10 years ago for Central PA Visual Foxpro
User Group...I'll see if I can find them (but I doubt it).  The help
manual isn't bad, and of course Hentzenwerke.com's catalog of VFP books
is 2nd to none in that regard.





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to