StrataFrame Forum

StrataCollapsibleContainer Linklabel doesn't hide

http://forum.strataframe.net/Topic26049.aspx

By Marcel Heitlager - 2/15/2010

Might already know about this one.



Add a couple of StrataCollapsableContainers to a FlowLayout Control. Remove the action bar. Change the header height to 26 or whatever. Set ShowNotificationArea to True and add a linklabel to the body, when the Container collapses, the linklabel shows through the notification area.



Just wanted to pass it on if it was missed.



Marcel


By Trent L. Taylor - 2/15/2010

That means that you didn't add it to the container of the control, but rather set it on top of the control.  Only the area beneath the header is a container.

There are a few tweaks that need to happen on this control, but this is one thing I know will work as we have this going in several environments and have them links together in a FlowLayoutPanel.  This has also been deployed in the field for a good while now, so I am pretty confident in this logic.

By Marcel Heitlager - 2/16/2010

Nope, I added it to the cc. I tested it again. I tried it with a themedlinkmenu, and it works fine, only if I set anchor to bottom. It doesn't work at all with a textbox. Linklabel will work if I set anchor to bottom but autogrow to false.



However, it only stops working when I remove the action bar and add the notificationarea. The size of the control is 149, 145, and I made sure that the controls are in the middle.



I have three cc's in a vertical row in a flowlayoutpanel. When I move the controls to the other cc's without a notification area, it works fine (I don't have to set the anchor to bottom). Also, if I have a notification area and an action bar, the cc works fine. But remove the actionbar and keep the notification area and it breaks.



Apparently, when you remove the actionbar, the cc, control container edge becomes the bottom of the cc, even it contains a notification area, and the controls overlap the notification area.



At least that's what it is doing of my machine.Ermm






By Trent L. Taylor - 2/16/2010

Why don't you post me a sample as I may not be understanding you correctly. This should cut through the red tape.
By Marcel Heitlager - 2/16/2010

Attached is a sample.

The top Container causes the problems.


By Trent L. Taylor - 2/17/2010

OK, I see what was going on. I have fixed this for the next update. But there is actually a work around for today. You can drop on a ThemedPanel and set the SolidBackground to True. Then dock the ThemedPanel in the container and place your controls within the ThemedPanel. This will respect the docking and not overstep the bounds. But the next update will correct this issue.