Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - LoadDesignerBars
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

LoadDesignerBars

 Post Reply Post Reply
Author
Message
reggie View Drop Down
Newbie
Newbie
Avatar

Joined: 19 February 2007
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote reggie Quote  Post ReplyReply Direct Link To This Post Topic: LoadDesignerBars
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
reggie View Drop Down
Newbie
Newbie
Avatar

Joined: 19 February 2007
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote reggie Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.