Hello,
I've painted myself in a corner.
Here's the situation in brief:
I've got 6 identical ContainerControls embedded in a Canvas that show
or hide controls when a user clicks a DisclosureTriangle.
Like this:
|> container 1
|> container 2
|> container 3
...
They show or hide their controls by changing their Canvas.Height.
---
if DisclosureTriangleArtDetail.Value= False then
CanvasArtDetail.Height = 20
Else
CanvasArtDetail.height = 500
end if
---
And... of course, when I "show" for instance container 1, it overlaps
all the other containers.
I've spend the last couple of days trying to make a method that changes
all the containers' Top values whenever something happens, but I keep
struggling with two problems:
1) what is an appropriate trigger for such a method? I get errors when
I try to trigger the method from within the container's
DisclosureTriangle (which makes sense I guess);
2) more to the point, how can I get a method that does predictable
things in all possible cases - and for any number of containers,
because now it's 6, but it could become 7...
Some details, maybe relevant:
- the containers themselves are embedded in the canvas of another
container (container with tabpanel cloned by user action contains
container with the 6 showhide containers). This container extravaganza
because I want to be able to clone these containers at runtime as well,
based on user action.
- right now, all containers are placed in the IDE, not by code, but are
cloned at runtime based on user action (creating a new tab creates the
containers).
I imagine that this must be a very common problem, with a well-known
"simple" (as in simple when you know it) solution, but I've looked wide
and far to no avail.
BTW, very new to programming and RB, so maybe I'm not looking in the
right places.
Cheers,
Koen van Hees
Les Allées de St. Genis
299 Allée Diderot
01630 St Genis Pouilly
France
tel: +33 (0)4 50 42 08 78
_______________________________________________
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>