![]() |
| If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|||||||
| Tags: commandbarbuttonenabled |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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. |
| Ads |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
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. |
|
#6
|
|||
|
|||
|
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). |
|
#7
|
|||
|
|||
|
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). |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CommandBarButton Picture, transparency | Mike | Add-ins for Outlook | 1 | September 26th 07 02:19 PM |
| add a picture to a CommandBarButton | DavidH&P | Outlook - Using Forms | 0 | August 30th 06 03:35 PM |
| How to add an Icon to a commandBarButton | David | Outlook and VBA | 1 | March 29th 06 05:39 PM |
| how to add commandbarbutton to inspector window | Ram | Outlook and VBA | 0 | January 19th 06 06:07 AM |
| how to add commandbarbutton to inspector window | Ram | Outlook - General Queries | 1 | January 18th 06 08:42 PM |