RibbonX - using a member object's methods for the OnLoad, etc.

RibbonX - using a member object's methods for the OnLoad, etc.

Post by RGF2aWQgVG » Tue, 08 May 2007 02:53:00


Hi;

If I have an object in my connect class and want to use a method in it for
the OnLoad - how do I do that? I tried making it avaliable as a property Menu
in my connect class and setting OnLoad to Menu.OnLoad but that did not work.

--
thanks - dave
david_at_windward_dot_net
http://www.yqcomputer.com/

Cubicle Wars - http://www.yqcomputer.com/
 
 
 

RibbonX - using a member object's methods for the OnLoad, etc.

Post by Patrick Sc » Tue, 08 May 2007 04:05:34

I don't know if you can.
You had an object called Menu that had the method OnLoad? Menu and
OnLoad were both public and Menu was initialized by your constructor?

Patrick Schmid [OneNote MVP]
--------------
http://www.yqcomputer.com/
***
Outlook 2007 Performance Update: http://www.yqcomputer.com/
Office 2007 RTM Issues: http://www.yqcomputer.com/
***
Customize Office 2007: http://www.yqcomputer.com/
RibbonCustomizer Add-In: http://www.yqcomputer.com/
OneNote 2007: http://www.yqcomputer.com/
***
Subscribe to my Office 2007 blog: http://www.yqcomputer.com/

 
 
 

RibbonX - using a member object's methods for the OnLoad, etc.

Post by RGF2aWQgVG » Tue, 08 May 2007 05:38:00

Yes, yes, and yes.

--
thanks - dave
david_at_windward_dot_net
http://www.yqcomputer.com/

Cubicle Wars - http://www.yqcomputer.com/
 
 
 

RibbonX - using a member object's methods for the OnLoad, etc.

Post by Patrick Sc » Wed, 09 May 2007 12:20:53

Then I guess you can't...

Patrick Schmid [OneNote MVP]
--------------
http://www.yqcomputer.com/
***
Outlook 2007 Performance Update: http://www.yqcomputer.com/
Office 2007 RTM Issues: http://www.yqcomputer.com/
***
Customize Office 2007: http://www.yqcomputer.com/
RibbonCustomizer Add-In: http://www.yqcomputer.com/
OneNote 2007: http://www.yqcomputer.com/
***
Subscribe to my Office 2007 blog: http://www.yqcomputer.com/
 
 
 

RibbonX - using a member object's methods for the OnLoad, etc.

Post by RGF2aWQgVG » Sun, 13 May 2007 01:38:02

Noooooooooooooooooooooooooo! Are you sure? I can put all these in my Connect
class but boy do they make the object seperation ugly.

--
thanks - dave
david_at_windward_dot_net
http://www.yqcomputer.com/

Cubicle Wars - http://www.yqcomputer.com/
 
 
 

RibbonX - using a member object's methods for the OnLoad, etc.

Post by RGF2aWQgVG » Sun, 13 May 2007 01:46:01

Nooooooooooo. This makes the Connect class real ugly (no object seperation).

--
thanks - dave
david_at_windward_dot_net
http://www.yqcomputer.com/

Cubicle Wars - http://www.yqcomputer.com/
 
 
 

RibbonX - using a member object's methods for the OnLoad, etc.

Post by Patrick Sc » Sun, 13 May 2007 04:17:14

ow about one callback for each type? So one callback that handles all
getLabel callbacks and then you can separate things in the callback?


Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Outlook 2007 Performance Update: http://pschmid.net/blog/2007/04/13/105
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://ribboncustomizer.com
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed




"David Thielen" < XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM :


 
 
 

RibbonX - using a member object's methods for the OnLoad, etc.

Post by Patrick Sc » Sun, 13 May 2007 04:29:29

he answer is a definite no:
No - they cannot be methods on objects, they have to be public methods
on the IDispatch interface delegated from the IRibbonExtensibility
interface (almost always the Connect class). This blog post explains
more about how callbacks are enumerated and called internally:
http://blogs.msdn.com/jensenh/archive/2006/12/08/using-ribbonx-with-c-and-atl.aspx

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Outlook 2007 Performance Update: http://pschmid.net/blog/2007/04/13/105
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://ribboncustomizer.com
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed





"Patrick Schmid [MVP]" < XXXX@XXXXX.COM > wrote in message
news:# XXXX@XXXXX.COM :


 
 
 

RibbonX - using a member object's methods for the OnLoad, etc.

Post by RGF2aWQgVG » Sun, 13 May 2007 05:27:01

uck - ok

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm




"Patrick Schmid [MVP]" wrote: