Is this possible with ThemedContainer???


Author
Message
William John Tello
William John Tello
StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)StrataFrame Beginner (27 reputation)
Group: Forum Members
Posts: 17, Visits: 80
Here is the deal:



I have dropped six ThemedContainer controls each with a ToolStrip control and a ListView control in a FlowLayoutPanel control. On the FlowLayoutPanel control I have set the AutoScroll property to True, the FlowDirection property to TopDown and the WrapContents property to False. This basically allows the ThemedContainer controls within the FlowLayoutPanel control to be scrolled vertically - just what I wanted.



Now, all I want to do is to be able to resize vertically each ThemedContainer control separately within the FlowLayoutPanel control. Basically, when I hover over the bottom border of a ThemedContainer control, I want to see an updown arrow cursor appear and I want to be able to click and drag the bottom of the ThemedContainer Control either up or down to make it vertically larger or smaller, respectively.



Does anyone have any ideas on how to do this?

Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
We could set the height on the control, but we really wanted to make it user adjustable, which sounds like it is what you are working on yourself.




Not with this control, we have different needs.





If the answer is that to do exactly what we want, I would have to modify the StrataFrame source code, then that's what the answer is and we can evaluate if it is worth putting my time into from there. I've been a C/C++ and now C# developer for a long time and I've written many custom controls in the past, so I know it is doable - the real question at this point is, is it worth the time.




You have the source, but it is in VB. But if you want to copy this code and re-write the control to meet your needs then go for it. This way you are not changing the SF code so you can just load updates in the future. In truth, you may be able to just inherit this control and then override the OnMouseMove and add your logic for resizing. This way it is encapsulated. This would be the road I would go down first.



On the other hand, if you are doing the exact same thing and wouldn't mind sharing it, it would be appreciated, but it is understandable, if you cannot.




The control in which I am referring is not the same as this control. It is far more involved and has the ability to add links to a header, etc. It is a container control like the ThemedContainer, but it serves a slightly different purpose. As mentioned, though, once put through the trials and tests, it will most likely make it into the framework. But for now it is a ways out of being ready for multi-purpose distribution.
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Related to the issue of how to manage getting a control to be resizable at runtime, this article might help.

http://www.codeproject.com/KB/dotnet/Resize_Control_at_Runtime.aspx



This one is more complicated, but it does explain some of the concepts needed.

http://www.codeproject.com/KB/vb/controlresize.aspx



Good luck with this!
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