Neither editboxes or textboxes are containers, hence they can't have 'children' 
in the sense you are seeking.
What you can do, however, is have an invisible editbox that is contained by the 
same container
(form/page/container) as the textbox. You'd make it visible when you need to & 
hide it afterwards. Both the
editbox and textbox would be able to 'see' the parent container's properties.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Joe Yoder
Sent: Friday, January 02, 2009 7:50 PM
To: [email protected]
Subject: Accessing the properties of a parent (newbee)

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,
 
Joe


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

[excessive quoting removed by server]

_______________________________________________
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/c6887ddf5b4d4e6d803b35240b56e...@opportunity
** 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