A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Setting the Icon for a msoControlPopup



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 10th 07, 02:43 PM posted to microsoft.public.outlook.program_addins
JahMic
external usenet poster
 
Posts: 35
Default Setting the Icon for a msoControlPopup

I'm trying to setup a toolbar drop down button, something similar to
the 'new' button. Everything is in place, except that I can't set an
icon for it. There must be a way, after all the new button has an
icon.

After calling 'add' to add it to the main toolbar, the Returned
control (CommandBarControl) doesn't have any direct methods for
PutFace or PutPicture. For normal buttons, I can just cast this to a
button control and use those methods, but for a Popup, this causes
many ugly things to happen, such as exceptions being thrown and such.

What is preferred way to do set an icon for such a control?

Thanks

Ads
  #2  
Old June 10th 07, 08:39 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Setting the Icon for a msoControlPopup

It is not possible to set an image for that control.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/article.aspx?id=54

"JahMic" wrote in message oups.com...
I'm trying to setup a toolbar drop down button, something similar to
the 'new' button. Everything is in place, except that I can't set an
icon for it. There must be a way, after all the new button has an
icon.

After calling 'add' to add it to the main toolbar, the Returned
control (CommandBarControl) doesn't have any direct methods for
PutFace or PutPicture. For normal buttons, I can just cast this to a
button control and use those methods, but for a Popup, this causes
many ugly things to happen, such as exceptions being thrown and such.

What is preferred way to do set an icon for such a control?

Thanks

  #3  
Old June 11th 07, 08:29 AM posted to microsoft.public.outlook.program_addins
JahMic
external usenet poster
 
Posts: 35
Default Setting the Icon for a msoControlPopup

Ok, then, how does the 'new' mail button work? It has a drop down and
an icon? Is it a different control?

Thanks, J

On Jun 11, 4:39 am, "Sue Mosher [MVP-Outlook]"
wrote:
It is not possible to set an image for that control.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/article.aspx?id=54



"JahMic" wrote in ooglegroups.com...
I'm trying to setup a toolbar drop down button, something similar to
the 'new' button. Everything is in place, except that I can't set an
icon for it. There must be a way, after all the new button has an
icon.


After calling 'add' to add it to the main toolbar, the Returned
control (CommandBarControl) doesn't have any direct methods for
PutFace or PutPicture. For normal buttons, I can just cast this to a
button control and use those methods, but for a Popup, this causes
many ugly things to happen, such as exceptions being thrown and such.


What is preferred way to do set an icon for such a control?


Thanks- Hide quoted text -


- Show quoted text -



  #4  
Old June 11th 07, 12:52 PM posted to microsoft.public.outlook.program_addins
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Setting the Icon for a msoControlPopup

Yes, it's a different control, a split popup, which is not available to developers.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/article.aspx?id=54

"JahMic" wrote in message oups.com...
Ok, then, how does the 'new' mail button work? It has a drop down and
an icon? Is it a different control?

Thanks, J

On Jun 11, 4:39 am, "Sue Mosher [MVP-Outlook]"
wrote:
It is not possible to set an image for that control.





"JahMic" wrote in ooglegroups.com...
I'm trying to setup a toolbar drop down button, something similar to
the 'new' button. Everything is in place, except that I can't set an
icon for it. There must be a way, after all the new button has an
icon.


After calling 'add' to add it to the main toolbar, the Returned
control (CommandBarControl) doesn't have any direct methods for
PutFace or PutPicture. For normal buttons, I can just cast this to a
button control and use those methods, but for a Popup, this causes
many ugly things to happen, such as exceptions being thrown and such.


What is preferred way to do set an icon for such a control?


Thanks- Hide quoted text -


- Show quoted text -



 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Icon for the default Mail List display JahMic Add-ins for Outlook 3 June 4th 07 07:40 PM
Removing Icon in Icon tray Bob Day Outlook - General Queries 3 October 11th 06 09:35 PM
Missing envelope icon on tray icon Cool As Blu Outlook - General Queries 1 August 8th 06 01:37 AM
Is there a policy or registry setting for setting the default addr scsi Outlook - Installation 1 February 28th 06 01:19 PM
Custom icon superseded by tracking icon Vaughan Outlook - Using Forms 4 February 24th 06 12:47 PM


All times are GMT +1. The time now is 08:43 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.