Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Problem In save and restore of controlbars Collapse All
Subject Author Date
anil vyas Jun 15, 2007 - 6:27 AM

Thanks for replying I got solution of my menu problem.

I am facing problem in saving and retrieving the controlbars.
My current software is as follows.

In an application i am saving records projectwise.Like "Proj1" has two views like "v1" "v2" and my "Proj2" has one view like "view1".I am maintaining database for project and views Save and Load.

But there is nice facility of controlbars Save-Load in Prof-Uis so i am using the same facility.
While opening project I Load controlbars with

1.First Update All ToolBars with g_CmdManager->UpdateToolBar(),g_CmdManager->UpdateMenuBar()

3.CExtControlBar::ProfilebarStateLoad(pApp->m_pszKeyName,"Proj1","Proj1"); and

While Closing Project
I use
CExtControlBar::ProfilebarStateSave(pApp->m_pszKeyName,"Proj1","Proj1"); and

fortunately I got success in Saving and retrieving state .But What major problem I am facing is When i show controlbar with contextmenu and drag somewhere.and open another project then i get error of "Unsupported Operation is Attemplted".
One thing is that Before I Opening new project I am closing old project. It is major error.

Waiting for ur early reply

anil vyas Jun 20, 2007 - 5:43 AM

As We previously discuused .
1.This error occurs only when i drag toolbar to client area of view or say child frame.(Error is "An Unsupported operation attempted").And Application get hang.With Tab bar absent.I need to again start application.
2.This project saves whole mainframe.If i close project with minimized mainframe then next time if i open project After keeping mainframe in maximized mode then frame with minimized project frame will opened .This occurs bcoz I previously save project in mimimized mode.

So I want to save only state of tool bar project wise.But In my application project frame is also saved so this is not needed .I want to keep frame same as before i open project.

Ok In ur way How to save state of controlbar projectwise?

I am trying lot but not getting success.So waiting for ur early reply

Technical Support Jun 16, 2007 - 11:56 AM

Could you please start your project in the debug mode, capture the call stack listing when error occurs and send it to us?