StrataFrame Forum

How to automatically stretch a ThemedLinkMenu control?

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

By Edhy Rijo - 8/2/2008

Hi Trent, Ben and all,

In the new StrataFrame sample and in the new DDT main form, I noticed the use of ThemeLinkMenus combined with and without ThemedContainer.  I am designing a main form which will have docked on the left a TreeList and below 2 ThemedLinkMenus, one for Actions (as in StrataFlix and DDT) and the last one for the Open Windows.

I need the TreeList control to have more screen stage since I don't know how many node will I have at one point, and want to be able to show as many as possible, but then I don't know how to tell the ThemedLinkMenu controls to stretch or grow themself as new items are being added, like ActionLinkMenuItems and Open Windows items.

Please see a sample of the main form I am creating attached.

P.S.

At this point I am simply trying to work out the basic functionality needed in the main form, and the icons used in this screenshot will not be the final one, they are just used to position the ones related to my application.

By Teddy Jensen - 8/3/2008

Hi Edhy,

I think you can use a FlowLayoutPanel as a container for both the TreeList and the ThemeLinkMenus for this.

/Teddy

By Trent L. Taylor - 8/3/2008

This is not an auto-sizing class.  We do, however, do this manually in certain locations as you can enumerate the ItemCollection and each of the items exposes its height.  You can add the row buffers (a property on the control) and this can be done fairly easily.  This might be a good enhancement for down the road, but my first suggestion would be to place this control in a place where you are going to have ample room and then use the right-arrow glyph and context-menus like the StrataFlix sample so that you will never run into a size issue.  This is the approach taken in the StrataFlix sample as well as the DDT.
By Edhy Rijo - 8/3/2008

Thanks Teddy and Trent.