Print Page | Close Window

LoadDesignerBars

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=6996
Printed Date: 19 June 2025 at 1:23am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: LoadDesignerBars
Posted By: reggie
Subject: LoadDesignerBars
Date Posted: 26 April 2007 at 7:50pm
According to the help file, the LoadDesignerBars syntax is:
LoadDesignerBars [FileNameOrResource], [Instance]
 
Does this mean I can load a commandbar object from a resource?  Does this work in VB6?


-------------
There are only 10 kinds of people in the world, those that understand binary and those that don't.



Replies:
Posted By: Oleg
Date Posted: 27 April 2007 at 12:56am
Hello,
yes, if this parameter is number, CommandBars will try to load from resources with RT_RCDATA type. second parameter must be Instance of main application. Will work with vb6 also.
 
But for Vb6 think easy use designer - right click on control and choose edit.


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


Posted By: reggie
Date Posted: 27 April 2007 at 6:46pm
Editing via the right click may be easier, but it's not what I need.  We have several forms that use the same basic Commandbar.  When a change needs to be made, I was hoping to make it in one .xcb, store that as a resource and each form would then load the updated design from this resource.  Otherwise I would have to make a change in 10 different forms!   The load from resource would be more efficient and easier to maintain.
 
This is the line of code I'm using:
CommandBars.LoadDesignerBars 101, App.hInstance
 
After building the executable I used a resource viewer (reshacker) to make sure that resource 101 is actually of type RCDATA and that it is actually .xcb data.
 
Still cannot get it to work.  Any suggestions?


-------------
There are only 10 kinds of people in the world, those that understand binary and those that don't.



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