Discussion:
Postgresql Digest, Vol 9, Issue 75
Alex Hochberger
2007-11-06 13:44:03 UTC
Permalink
PS: Even better: add a property to each window that tells which
container to use and then your (single subclass) pgTabPanel only has
to look up that property!
Add a property to your window "myContainer as ContainerControl."
myContainer = New ContainerControl1
To add a container to your current panel all you need to do now is
Self.GenerateContainer
Self.myContainer.EmbedWithinPanel(Me, Me.Value)
I finally got back to this project after a month delay. After
figuring out the ContainerControl (you add it in the Project, not the
Window), I added an Event to pgTabPanel called AddPanel(index As
Integer)

When I create the new Panel is Populate, I call AddPanel at the end.
That lets me add the per-Window code there, inside the TabPanel,
instead of in the Window (seems more clean OO wise there).

I use a subclass of the pgsql EditFields that take two properties, the
Id and the Field Name, so I can pull the info out of the mapping
table. Field is set when I draw the control, Id when it is Added. I
also bind all the controls in the AddPanel Event.

Thanks for the help guys!

Loading...