Is there something I need to do in code in order to get my toolbars to persist their state? I''ve looked through the samples but I don''t see anything.
On my MainFrameBarManager, I have AutoLoadToolBarPositions = false, AutoPersistCustomization = true, Enable Customizing = true
On my ChildFrameBarManager, I have EnableCustomizing set to true. All of the "BarStyles" have AllowQuickCustomizing set on.
When I''m running, I open up the child form and all of my child toolbars are displayed. I then go to the Customize Toolbar and hide two of them.
I then close the child form and open it again and all the toolbars are displayed again.
Here''s some more detailed information :
1) I locate the folder in IsolatedStorage that corresponds to my application - verified by identity.date & folder creation date.
2) I delete it
3) I run my application. I verify that a new folder has been created in isolated storage. The Files folder 2 directories down is empty.
4) I bring up a child form. By default, it has three toolbars displayed - this is correct.
5) I go to Customize Toolbar and mark one of the toolbars to not be displayed - it disappears from the display. The Files folder is still empty.
6) I exit the child form. The Files folder is still empty.
7) I exit the application. The Files folder now has a SyncfusionToolsStateInfo.bin file.
8) I run the program again and bring up the child form. THE TOOLBAR THAT WAS MARKED TO NOT BE DISPLAYED IS DISPLAYED AGAIN.
What am I missing? Something''s being persisted - it''e either not the toolbar information or it''s the wrong toolbar information.
ADAdministrator Syncfusion Team June 17, 2004 02:31 PM
In your posting you mention:
"On my MainFrameBarManager, I have AutoLoadToolBarPositions = false"
This property should be set to true. Here is the description of the AutoLoadToolBarPositions Property from the Essential Tools Help:
Gets or Sets a value that indicates whether or not to automatically load the persisted toolbar positions when the application is restarted.
Can you take a look and update this posting?
LSLori S. PearsallJune 17, 2004 02:41 PM
I set AutoLoadToolBarPositions to true and ran all the steps I listed above. I still get the same results.
>In your posting you mention:
>"On my MainFrameBarManager, I have AutoLoadToolBarPositions = false"
>This property should be set to true. Here is the description of the AutoLoadToolBarPositions Property from the Essential Tools Help:
>Gets or Sets a value that indicates whether or not to automatically load the persisted toolbar positions when the application is restarted.
>Can you take a look and update this posting?
ADAdministrator Syncfusion Team June 17, 2004 05:03 PM
We could not reproduce the problem in the XPMenusMDI sample (Tools\samples\Menus Package\XPMenusMDI). Can you post steps to reproduce this behavior in this sample or post a small sample reproducing this behavior so that we can take a look at it.
LSLori S. PearsallJune 17, 2004 06:32 PM
I''ve pretty much looked at everything - I see no difference. The only other clue I can give is that persistance does work for the one toolbar that is present in the Parent window. It''s the two that only exist in the Child window that ignore the customization settings.
Any other things to check??
LSLori S. PearsallJune 17, 2004 08:56 PM
Here''s a sample - seems to have to do with RegisterMDIChildTypes. I don''t completely understand why I would HAVE to do this call. In addition, I don''t have a default constructor on my child window class so the Register call doesn''t currently work in my scenario.
Anyway, a sample is attached ...
ADAdministrator Syncfusion Team June 18, 2004 11:43 AM
Thanks for helping us reproduce this problem. Yes, this is a bug and it has been addressed by the Essential Tools team. It will be fixed in the next release that goes out. If you want a patch version kindly open a Direct-Trac incident.
LSLori S. PearsallJune 18, 2004 01:56 PM
Thanks - I was going nuts with this one. Not looking for any concrete dates, but what is the timeframe of a new release?
Also, could you give a brief description of the difference between using RegisterMDIChildTypes and not? Visually, what would be the difference? I''ll have two types of windows that can be open and they will each have their own unique toolbar.
ADAdministrator Syncfusion Team June 21, 2004 11:49 AM
Calling RegisterMdiChildTypes will explicitly merge the child types even before they become visible. So you do not have to call it if you don''t want this feature in your application.