Calling LoadDesignerBars in C# |
Post Reply |
Author | |
blazej
Groupie Joined: 09 February 2005 Location: Canada Status: Offline Points: 53 |
Post Options
Thanks(0)
Posted: 13 April 2005 at 9:05am |
Hi
We've just purchases Xtreme Suite ActiveX and we're kind of disappointed by the documentation... Anyway. Here's the question/problem: how do I call LoadDesignerBars from C#? I want to embed the .xcb file as a resource within my application's assembly and then call LoadDesignerBars to retrieve the layout. I've seen example of how to do it in VB and C++ but *not* in C#. Any hints? Thanks in advance Michal Blazejczyk |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Can I see code you use to load the XCB file?
|
|
blazej
Groupie Joined: 09 February 2005 Location: Canada Status: Offline Points: 53 |
Post Options
Thanks(0)
|
Hi
Right now I simply use: commandBars.LoadDesignerBars( "MainForm.xcb", null ); This loads my command bars from an external file. I'd like to do it from an embedded resource. But I don't know what to pass as resource name and instance. Thanks, Michal |
|
Kelbob
Newbie Joined: 06 April 2005 Status: Offline Points: 7 |
Post Options
Thanks(0)
|
Hi, Has anybody figured out how to add the XCB file as a resource? Cheers |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Right click on CommandBars, chosse "load XCB file" in source add commandBars.LoadDesignerBars( null, null ); |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
blazej
Groupie Joined: 09 February 2005 Location: Canada Status: Offline Points: 53 |
Post Options
Thanks(0)
|
Hi
This works but is there a way to load the designer bars setup from a regular resource? The first argument of LoadDesignerBars is named fileNameOrResource. If I want this argument to be a "resource", what is the type of the object I should pass to it? This kind of information should be in the documentation but it is not there... Cheers |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |