Help!

About repurpose ribbonX of outlook2007?

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Add-Ins RSS
Next:  Outlook Express - korean word  
Author Message
ryotyankou via OfficeKB.c
External


Since: Apr 10, 2009
Posts: 16



PostPosted: Thu Jul 23, 2009 7:10 am    Post subject: About repurpose ribbonX of outlook2007?
Archived from groups: microsoft>public>outlook>program_addins (more info?)

It about sign and encrypt button of outlook2007 on mail composer window. I
repurpose the two button, but i found if the button is in pushed state.
(initialize state). It will enter the repurpose function. And i found the
sign and encrypt button via CommandBar. I only want to set its state. But
CommandBarButton::PutState always return E_FAIL. I have to use
CommandBarButton::Execute. But there is a problem, when do Execute, it also
will enter repurpse function. So i don't know how to process them together.
Can i make it sepearate? I need a function or property only set the button
state, not enter repurpose function. How could i do it?

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/outlook-prog-addins/200907/1
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Thu Jul 23, 2009 9:40 am    Post subject: Re: About repurpose ribbonX of outlook2007? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I don't think you can do that. If the control isn't a toggle control then
setting its state is meaningless if the control won't allow it.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"ryotyankou via OfficeKB.com" <u48591@uwe> wrote in message
news:997fb5811dafb@uwe...
> It about sign and encrypt button of outlook2007 on mail composer window. I
> repurpose the two button, but i found if the button is in pushed state.
> (initialize state). It will enter the repurpose function. And i found the
> sign and encrypt button via CommandBar. I only want to set its state. But
> CommandBarButton::PutState always return E_FAIL. I have to use
> CommandBarButton::Execute. But there is a problem, when do Execute, it
> also
> will enter repurpse function. So i don't know how to process them
> together.
> Can i make it sepearate? I need a function or property only set the button
> state, not enter repurpose function. How could i do it?
>
> --
> Message posted via OfficeKB.com
> http://www.officekb.com/Uwe/Forums.aspx/outlook-prog-addins/200907/1
>
Back to top
ryotyankou via OfficeKB.c
External


Since: Apr 10, 2009
Posts: 16



PostPosted: Sun Jul 26, 2009 11:10 pm    Post subject: Re: About repurpose ribbonX of outlook2007? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

hi, Ken, thanks for your reply. But the sign and encrypt button are both
toggle contorls. If I create a toggle button use ribbon, then i can set its
state by "getPressed=MyPressedFunction", and process click event by
"onAction=MyClickFunction". How could i do the same on sign and encrypt
button, now i only know the two buttons can be "onAction" repurposed, but i
can't do "getPressed" repurposed on them.

Ken Slovak - [MVP - Outlook] wrote:
>I don't think you can do that. If the control isn't a toggle control then
>setting its state is meaningless if the control won't allow it.
>
>> It about sign and encrypt button of outlook2007 on mail composer window. I
>> repurpose the two button, but i found if the button is in pushed state.
>[quoted text clipped - 7 lines]
>> Can i make it sepearate? I need a function or property only set the button
>> state, not enter repurpose function. How could i do it?

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.aspx/outlook-prog-addins/200907/1
Back to top
Ken Slovak - [MVP - Outlo
External


Since: Oct 17, 2003
Posts: 3355



PostPosted: Mon Jul 27, 2009 11:35 am    Post subject: Re: About repurpose ribbonX of outlook2007? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I don't think getPressed can be repurposed. Only onAction can be repurposed
as far as I know.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"ryotyankou via OfficeKB.com" <u48591@uwe> wrote in message
news:99add0e8c592e@uwe...
> hi, Ken, thanks for your reply. But the sign and encrypt button are both
> toggle contorls. If I create a toggle button use ribbon, then i can set
> its
> state by "getPressed=MyPressedFunction", and process click event by
> "onAction=MyClickFunction". How could i do the same on sign and encrypt
> button, now i only know the two buttons can be "onAction" repurposed, but
> i
> can't do "getPressed" repurposed on them.
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Add-Ins All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum