How to automatically stretch a ThemedLinkMenu control?


Author
Message
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
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.

Edhy Rijo

Teddy Jensen
Teddy Jensen
StrataFrame Novice (112 reputation)StrataFrame Novice (112 reputation)StrataFrame Novice (112 reputation)StrataFrame Novice (112 reputation)StrataFrame Novice (112 reputation)StrataFrame Novice (112 reputation)StrataFrame Novice (112 reputation)StrataFrame Novice (112 reputation)StrataFrame Novice (112 reputation)
Group: StrataFrame Users
Posts: 52, Visits: 8K
Hi Edhy,

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

/Teddy

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Thanks Teddy and Trent.

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search