How to careate bare bones ribbon |
Post Reply |
Author | |
Anexx
Newbie Joined: 17 February 2008 Location: United Kingdom Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 17 February 2008 at 2:43am |
Hello, I am having trouble using this library as am I new to C#. I would like to start by simply making a ribbon with some controls that react to being clicked. The sample is very big and confusing for me to work with.
I have created a form and added this to the InitializeComponent method: XtremeCommandBars.RibbonBar RibbonBar = null; RibbonBar = this.CommandBars.AddRibbonBar("The Ribbon") It compiles ok but when I try to run, I get Exception of type 'System.Windows.Forms.AxHost+InvalidActiveXStateException' was thrown. And if I try to look at the form in designer, it also throws an error Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)) Hide at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData) at XtremeCommandBars._DCommandBars.AddRibbonBar(String Name) at AxXtremeCommandBars.AxCommandBars.AddRibbonBar(String name) Can someone help please? |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
Attach here what you did.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
Anexx
Newbie Joined: 17 February 2008 Location: United Kingdom Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Hi. I did a number of things wrong but after another attempt have it working now. My only question is why do I need things like TabWrite.Id = ID.ID_TAB_WRITE; Is there some way to automatically handle these IDs or do I have to go through the resource file by hand?
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
You don't have assign ids. but you need identify control in Execute handler. You can use caption or Tag instead:
Control.Tag = "SaveCommand"
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
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 |