By Greg McGuffey - 2/5/2008
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.
|
By Greg McGuffey - 2/6/2008
Bump...
|
By Trent L. Taylor - 2/6/2008
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.
|
By Greg McGuffey - 2/6/2008
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.
|
By Trent L. Taylor - 2/6/2008
Hmmmm....I guess I am a little dense and not following ...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.
|
By Greg McGuffey - 2/6/2008
Your probably not following because this is a hard one!
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.
|
By Trent L. Taylor - 2/6/2008
Well, it was bound to happen...I had a bug Try this assembly and it should resolve the issue.
|
By Greg McGuffey - 2/6/2008
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.
|
By Greg McGuffey - 2/6/2008
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....
Joking aside, that was amazing Thanks!
|
By Trent L. Taylor - 2/6/2008
ROFL ....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
|