ThemedContainer issues


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I have found two problems with the ThemedContainer:



- The redraw after resize is very slow (>5 seconds), if it happens at all for the close and expand/collapse icons. It updates if I move the mouse over the area were the icons go.

- The text in the title isn't clipped when it gets to the expand icon (chevron)/close icon.



Here is my setup:

I have a base form that has a ThemedContainer on it (subclassing a form that subclasses another form, that subclasses the SF StandardForm). On the main form, I have a second ThemedContainer. For both of these containers I'm using a custom icon for the close button and using "Raise Event Only" and the standard chevron with auto switch for the expand/collapse icon. I have both to "snap" when expanded/collapsed. They are both docked to Top.



I tried to use the Update method of the ThemedContainer in the Form's Resize event, which had no effect (icons not updated). I also tried the ResizeEnd event for the form, which resulted in the slow updates (as opposed to no updates) when making the form smaller, no updates when making the form larger.



Let me know if I forgot something or if I need to work up a sample app.
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Bump...
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
Well, I need to set this up.  As for the speed, change the MinimizeBodyBehavior from Scroll to Snap and you won't have the speed issue.  As for the overlapping of the title, I will have to make a rendering change on this...which can be a lengthy process to make sure nothing dies.  But I will add this to the list. Smile
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
It is set to snap...the problem isn't the entire container, just the icons on the right of the title bar...they redraw very slow/not all. Note they are docked TOP.
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
Hmmmm....I guess I am a little dense and not following Crazy...I have a lot of these containers in use and I have not noticed any performance issues (aside from the scroll)...could you produce a sample with the properties that you have set to show how to reproduce the issue?  Thanks.
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Your probably not following because this is a hard one! BigGrin



I created a VS 2008 solution (.net 2.0 targeted).



- I first just did a form with the Themed Containers...no problem

- I then attempted to do a base form...no problem



So, I then imported the problem code, stripped out data access and some other controls and the problem was reproduced. So, open the app, then click on the button, resize and you should notice that if you make it smaller the icons aren't shown. If you make it bigger, several icon sets are shown. If you move the mouse of were the icons should be, they get refreshed.



Thanks for looking into this Trent.
Attachments
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
Well, it was bound to happen...I had a bug BigGrin  Try this assembly and it should resolve the issue.
Attachments
MicroFour StrataFrame UI.zip (84 views, 731.00 KB)
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
OK, I know I've done this a few times before...but when I try to copy the .dll to the GAC (c:\windows\assembly) the cursor turns to a little black "no way charily tuna" cursor (circle with diagonal line through it) and I can't copy it. What am I forgetting? I copied it to the SF folder.
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I used the gacutil and that worked. The update fixed the problem.



Now, we need to talk. After I post a solution that demonstrates the problem, you take 31 whole minutes (and a few seconds) to get it fixed and post that fix? What'd ya do, take lunch? Take a walk? Build a steam powered laptop? Kids these days.... Tongue



w00t



Joking aside, that was amazing BigGrin Thanks!
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
ROFL Hehe ....nah, that is why creating a sample for me to look at is so important...sometimes a sample can get straight to the point instead of misunderstanding what is actually taking place.  It isn't always necessary, but in this case it made all of the difference!  Thanks for patronizing me Smile
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