Print Page | Close Window

New Toolbar layout question

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=5377
Printed Date: 11 November 2025 at 1:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: New Toolbar layout question
Posted By: yoavo
Subject: New Toolbar layout question
Date Posted: 30 October 2006 at 1:50am
Hi,
In my application I let the user save and load toolbars layout.
The user can save a layout when he wants, and load the exact layout that he saved before.
I noticed that there is a problem when the user creates a new toolbar (from the customize toolbar dialog):
For example if a layout (named "Layout1") contains 2 toolbars (TB1 and TB2) and the user creates a new toolbar ("TB3"), and trying to load "Layout1", the new toolbar will be shown (he will have 3 toolbars instead of only 2).
 
How can I overcome this problem ?
 
Yoav.



Replies:
Posted By: Oleg
Date Posted: 30 October 2006 at 5:17am

Hello,

you can llop toolbars and delete all not buildin toolbars.
 
if (!pToolbar->IsBuiltIn()) ...


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: yoavo
Date Posted: 30 October 2006 at 6:54am
Hi,
Is there a way to solve this problem within the layout scope ?
Because I have several layouts in my application and I want that if the user saved a layout when a "buildin" toolbar was shown, he will see this toolbar when loading this layout.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net