Can I create more than one ribbon? |
Post Reply |
Author | |
rdhd
Senior Member Joined: 13 August 2007 Location: United States Status: Offline Points: 886 |
Post Options
Thanks(0)
Posted: 06 June 2008 at 11:28am |
I have an MDI application that provides automation for enumerating command information.
To implement the API, when the automation request is for a document type that is not the active document, I am creating a command bars object and then a ribbon and populating the ribbon. I have to set the site of the ribbon to avoid a crash in some CodeJock code, which I set to be the mainframe (not sure what else I can set it to). I also set the ribbon visible property to FALSE (failure to do so results in the created ribbon partially displaying at the top of, and across the entire desktop, which I suppose happens since the frame already has a command ribbon).
When I am done enumerating the controls, I delete the command bars object and have verified the ribbon is deleted too. I only create the temp bars and ribbon if the request is not for the current document type (otherwise I just use the frame's ribbon that is already populated for the doc type).
However, now I am sometimes seeing the old XP blue themed caption bar appearing over the application's current ribbon temporarily. Moving the cursor over the ribbon displays portions of the ribbon over the old blue caption bar.
Is it possible to have more than one ribbon whose site is the frame window? What can I do to avoid the old caption displaying over the actual ribbon the frame has added to its command bars collection?
|
|
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 |