![]() |
CommandBarButton::Enabled
Hello all,
In my add-in I create a toolbar and set some buttons disabled. After some actions I want to set these buttons enabled, so I set the Enabled property to true. I noticed that sometimes these buttons still disabled until I point at them (redraw problem). I think that the problem that setting the Enabled property doesn't redraw the buttons. What can I do to solve this? Thanks a lot. |
CommandBarButton::Enabled
What version of Outlook? Where is this toolbar, Explorers or Inspectors?
What code are you using? -- 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 "MON205" wrote in message ... Hello all, In my add-in I create a toolbar and set some buttons disabled. After some actions I want to set these buttons enabled, so I set the Enabled property to true. I noticed that sometimes these buttons still disabled until I point at them (redraw problem). I think that the problem that setting the Enabled property doesn't redraw the buttons. What can I do to solve this? Thanks a lot. |
CommandBarButton::Enabled
I'm using the _CommandBarButton::PutEnabled( VARIANT_TRUE );
in Outlook 2003.. The toolbar on explorer. "Ken Slovak - [MVP - Outlook]" wrote: What version of Outlook? Where is this toolbar, Explorers or Inspectors? What code are you using? -- 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 "MON205" wrote in message ... Hello all, In my add-in I create a toolbar and set some buttons disabled. After some actions I want to set these buttons enabled, so I set the Enabled property to true. I noticed that sometimes these buttons still disabled until I point at them (redraw problem). I think that the problem that setting the Enabled property doesn't redraw the buttons. What can I do to solve this? Thanks a lot. |
CommandBarButton::Enabled
I don't do C++, but I've never seen that with an Explorer button if the
Explorer has focus in any VB6, VB.NET or C# code. Does the Explorer have focus? Is _CommandBarButton a valid object that is in scope? -- 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 "MON205" wrote in message ... I'm using the _CommandBarButton::PutEnabled( VARIANT_TRUE ); in Outlook 2003.. The toolbar on explorer. |
CommandBarButton::Enabled
Hello Ken,
Yes, the Explorer has the focus and the button is valid. The same problem also happen when I set an icon for the button (PutPicture). "Ken Slovak - [MVP - Outlook]" wrote: I don't do C++, but I've never seen that with an Explorer button if the Explorer has focus in any VB6, VB.NET or C# code. Does the Explorer have focus? Is _CommandBarButton a valid object that is in scope? -- 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 "MON205" wrote in message ... I'm using the _CommandBarButton::PutEnabled( VARIANT_TRUE ); in Outlook 2003.. The toolbar on explorer. |
CommandBarButton::Enabled
Well, I've never seen that happen in any of the addin I've worked on. As I
said, I don't do C++ but I've never seen it in any VB6, C# or VB.NET addins. I'd still think it has to be something in how you're handling the code. About the only thing I can think of is to test the scenario on a sample addin written using C++, I think you can find one or two at www.outlookcode.com. -- 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 "MON205" wrote in message ... Hello Ken, Yes, the Explorer has the focus and the button is valid. The same problem also happen when I set an icon for the button (PutPicture). |
CommandBarButton::Enabled
Thank you Ken.
I'll try doing that. "Ken Slovak - [MVP - Outlook]" wrote: Well, I've never seen that happen in any of the addin I've worked on. As I said, I don't do C++ but I've never seen it in any VB6, C# or VB.NET addins. I'd still think it has to be something in how you're handling the code. About the only thing I can think of is to test the scenario on a sample addin written using C++, I think you can find one or two at www.outlookcode.com. -- 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 "MON205" wrote in message ... Hello Ken, Yes, the Explorer has the focus and the button is valid. The same problem also happen when I set an icon for the button (PutPicture). |
All times are GMT +1. The time now is 12:28 PM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com