Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Ribbon and in-place OLE objects
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Ribbon and in-place OLE objects

 Post Reply Post Reply
Author
Message
robin_l View Drop Down
Senior Member
Senior Member


Joined: 15 October 2006
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote robin_l Quote  Post ReplyReply Direct Link To This Post Topic: Ribbon and in-place OLE objects
    Posted: 22 March 2007 at 9:07pm
If you embed an OLE object into an application built with a ribbon, there seem to be several problems with in-place editing. [Although the ribbon samples don't have an insert object command, you can copy an object and paste it into the RibbonSample. Double-clicking then opens it for editing.]
 
First, the menu bar does not appear (not visible) unless the Frame Theme is switched off.
 
Second, the ribbon bar stays visible when the in-place application is being edited.
 
Third, any additional toolbars are also not hidden when the in-place applicaiton is activated. Add a custom toolbar using the Customize command to see this work.
 
This applies to 10.4.2. Any chance of fixing???
Back to Top
robin_l View Drop Down
Senior Member
Senior Member


Joined: 15 October 2006
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote robin_l Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2007 at 3:20am
Still a problem, so I suppose I'd better show what I mean.
 
Paint Bitmap object, embedded into the Wordpad sample:
 
Open for editing: toolbars/menus hidden and new menu shown correctly:
 
Select this object and paste it into the Ribbon Sample and double-click to open it for editing:
 
Note that any existing toolbars are not hidden, nor is the Ribbon itself. This is different from the way that in-place objects work in Office2007. And where is the menu??? If we turn off the Frame Theme (under Options) then we can see it!!! It is hidden under the title bar....
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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 March 2007 at 5:22am
Hi,
 
Check Samples\PropertyGrid\DrawClient  it show how to catch activate/deactivate event and show/hide toolbars. you also have to enable/disable Office2007 frame in this event.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
robin_l View Drop Down
Senior Member
Senior Member


Joined: 15 October 2006
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote robin_l Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2007 at 6:06am
Hi Oleg,
 
While I could do that, it would be far more useful if the correct behaviour happened by default as then everyone would benefit. Would it be too hard to incorporate this into an update?
 
Thanks,
 
Robin
Back to Top
robin_l View Drop Down
Senior Member
Senior Member


Joined: 15 October 2006
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote robin_l Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2007 at 6:13am
Just another thought--toggling the frame theme results in a standard Windows title bar, which doesn't match anything. What is really needed is a 2007 themed title bar, as is done during print preview. Not that I'm asking for much....
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


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 March 2007 at 6:25am
Hi
 
Here changed RibbonSample.
 
try to click Insert Object in "Insert tab" and put some bitmap object.
 
 
Word 2007  also hide themed frame and show standard one when you activate inplace object.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.078 seconds.