PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Program Addins Setting the Icon for a msoControlPopup

Reply

Setting the Icon for a msoControlPopup

 
Thread Tools Rate Thread
Old 10-06-2007, 02:43 PM   #1
JahMic
Guest
 
Posts: n/a
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

  Reply With Quote
Old 10-06-2007, 08:39 PM   #2
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: 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" <jahmic@gmail.com> wrote in message news:1181483017.520350.104110@z28g2000prd.googlegroups.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
>

  Reply With Quote
Old 11-06-2007, 08:29 AM   #3
JahMic
Guest
 
Posts: n/a
Default Re: 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]"
<sue...@outlookcode.com> 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" <jah...@gmail.com> wrote in messagenews:1181483017.520350.104110@z28g2000prd.googlegroups.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 -



  Reply With Quote
Old 11-06-2007, 12:52 PM   #4
Sue Mosher [MVP-Outlook]
Guest
 
Posts: n/a
Default Re: 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" <jahmic@gmail.com> wrote in message news:1181546971.001774.182360@i38g2000prf.googlegroups.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]"
> <sue...@outlookcode.com> wrote:
>> It is not possible to set an image for that control.


>>
>>
>>
>> "JahMic" <jah...@gmail.com> wrote in messagenews:1181483017.520350.104110@z28g2000prd.googlegroups.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 -

>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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