ThemedContainer title not updating
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



ThemedContainer title not updatingExpand / Collapse
Author
Message
Posted 11/30/2006 1:05:51 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 2:29:34 PM
Posts: 1,065, Visits: 2,605
I have a ThemedContainer that I'm changing the title when the body is hidden/shown. The title is updated correctly, but the new title and the change in the chevron doesn't update the display, unless the user moves the mouse over the title bar of the themed container. Do I need to do something to get the title to update? I tried the Update() method but that didn't seem to work.

E.g.

When themed container is hidden the title says: "Process Info: {0}" ({0} replaced by the process name)
When themed container is shown the title says: "Proces Info"

What happens:

The container is initially shown.
The user clicks the chevron to hide it.
The body is hidden, title is unchanged, chevron is unchanged.
The user moves mouse over chevron (not clicking, just moving)
The title and chevron change.
Post #4877
Posted 11/30/2006 2:21:41 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 1:38:37 PM
Posts: 3,775, Visits: 3,950
Try calling this:

MyThemeContainer.Invalidate()
Post #4878
Posted 11/30/2006 2:53:30 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 2:29:34 PM
Posts: 1,065, Visits: 2,605
This did a little bit.

When the form goes from collapsed to expanded, Invalidate does fix the chevron and based on screen flicker also redraws the body of the control, but not the title. When it goes from expanded to collapsed, it does nothing (title and chevron are not affected). If I move the mouse (click isn't needed) over the chevron, the title is updated.

Post #4880
Posted 11/30/2006 2:55:43 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 1:38:37 PM
Posts: 3,775, Visits: 3,950
I will have to look at the code and see what is going on...we try to reduce rendering and drawing to improve performance...so every piece is not drawn everytime.  You might be able to just set the Title text property and it would re-render the title area.
Post #4881
Posted 11/30/2006 3:12:15 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 2:29:34 PM
Posts: 1,065, Visits: 2,605
That's what I'm doing...here is the code for the BodyHidden event handler:


ThemedContainer1.Title = "some title text"
' Later I added
ThemedContainer1.Invalidate()
' then I tried
ThemedContainer1.Refresh()


With this code the title isn't refreshed. I see in the source code that it is calling RedrawControl(RedrawOptions.TitleOnly) so it should be redrawing it

Maybe it has something to do with setting it in the BodyHidden event handler?

I'm using Win2k SP4.
Post #4882
Posted 11/30/2006 3:14:03 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 1:38:37 PM
Posts: 3,775, Visits: 3,950
No...it is in the code.  There is a buffer image that stores off the title.  I will have to look at this later and get back with you.
Post #4883
Posted 11/30/2006 3:27:56 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 2:29:34 PM
Posts: 1,065, Visits: 2,605
Thanks
Post #4884
Posted 11/30/2006 3:45:23 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Today @ 2:29:34 PM
Posts: 1,065, Visits: 2,605
More information for when you get around to looking at this...

This only happens when the container is set to scroll. If it is set to snap, then the title updates correctly, without any call to Invalidate or Refresh.
Post #4885
Posted 04/22/2008 9:42:56 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Yesterday @ 11:48:10 AM
Posts: 376, Visits: 1,282
Hi,
Have this issue been fixed? I still face this problem in SF 1.6.5

Please advice.

Thank you
Post #15815