Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: Setting the Icon for a msoControlPopup

Geek News

Setting the Icon for a msoControlPopup
JahMic <jahmic[ at ]gmail.com> 6/10/2007 1:43:37 PM
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

Re: Setting the Icon for a msoControlPopup
"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> 6/10/2007 7:39:15 PM
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[ at ]gmail.com> wrote in message news:1181483017.520350.104110[ at ]z28g2000prd.googlegroups.com...
[Quoted Text]
> 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
>
Re: Setting the Icon for a msoControlPopup
JahMic <jahmic[ at ]gmail.com> 6/11/2007 7:29:31 AM
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...[ at ]outlookcode.com> wrote:
[Quoted Text]
> 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...[ at ]gmail.com> wrote in messagenews:1181483017.520350.104110[ at ]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 -


Re: Setting the Icon for a msoControlPopup
"Sue Mosher [MVP-Outlook]" <suemvp[ at ]outlookcode.com> 6/11/2007 11:52:57 AM
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[ at ]gmail.com> wrote in message news:1181546971.001774.182360[ at ]i38g2000prf.googlegroups.com...
[Quoted Text]
> 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...[ at ]outlookcode.com> wrote:
>> It is not possible to set an image for that control.

>>
>>
>>
>> "JahMic" <jah...[ at ]gmail.com> wrote in messagenews:1181483017.520350.104110[ at ]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 -
>
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net