First, I should say that although I am annoyed that ContainerControls
do not yet work perfectly, I use them quite a bit.
To add to a control array at runtime, you create new instances using
New. Let's assume that you have an EditField named "EditField1" in a
window, with Index property set to 0 in the properties pane, thus
making it into a control array.
To create another instance, you would use code like the following.
dim e as EditField = new EditField1
You can them move and resize e as you like. Events are handled by
whatever code is in the EditField1 event handlers.
Charles Yeomans
On Jun 10, 2006, at 4:34 PM, Wade Little wrote:
Thanks for the reply Charles.....so I sounds like I should avoid
ContainerControl.....It is ok that I have to have EditField already
on the window....since I have it on the window with it set to
visible...now what I want to do is via code create two or more
editfields that become visible depending on what is happening in
the window. I have used control arrays before but not creating
instances of them during runtime. How do I do this? I assume I
somehow also have to set the position, size etc. also when creating
a new editfield via a control array.
Thanks for your help....
Wade
On Jun 10, 2006, at 7:20 AM, Charles Yeomans wrote:
On Jun 9, 2006, at 11:46 PM, Wade Little wrote:
I am trying to do something during runtime....can someone help
explain how I do this.
So I have a simple application running and when I push a
pushbutton I would like to create a editfield via the code in the
push button. Is this possible? If so how do I do this??
It is possible, sort of. What you must do is to drop an EditField
on the window and set its Visible property to false. Then have
the pushbutton show the EditField. If you need to do this more
than once, make the EditField into a control array. You can
create instances of a control array at runtime.
An alternative would be to embed an EditField into a
ContainerControl. This you can create at runtime. But
ContainerControls have a fair number of problems, so expect some
workaround effort.
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>