Add an item to the "new" - option in outlook toolbar

  • Thread starter Heinz Schmidt
  • Start date Views 1,712
Status
Not open for further replies.
H

Heinz Schmidt

Hi NG,

i try to add an item to the outlook "new" option in the toolbar.

Its already done whith the main menubar but i'm currently unable to add an item to the submenus or the shown toolbars.

It would be great if some of you have an idea.

Thanks a lot

Heinz
 
M

Milly Staples [MVP - Outlook]

I don't believe that menu is customizable.


"Heinz Schmidt" <info@sibis.de> wrote in message

news:%23YPlPGZrJHA.3444@TK2MSFTNGP04.phx.gbl...

Hi NG,

i try to add an item to the outlook "new" option in the toolbar.

Its already done whith the main menubar but i'm currently unable to add an

item to the submenus or the shown toolbars.

It would be great if some of you have an idea.

Thanks a lot

Heinz
 
H

Heinz Schmidt

Hi Milly,

thanks for this information, but when i'm installing Livemeeting it is

possible for them - there occures new buttons in this menu

Regards

Heinz

" " <what@ever> schrieb im Newsbeitrag

news:Or3u$LcrJHA.5356@TK2MSFTNGP03.phx.gbl...
> I don't believe that menu is customizable.

> >

>

> "Heinz Schmidt" <info@sibis.de> wrote in message
> news:%23YPlPGZrJHA.3444@TK2MSFTNGP04.phx.gbl...
> Hi NG,

> i try to add an item to the outlook "new" option in the toolbar.
> Its already done whith the main menubar but i'm currently unable to add an
> item to the submenus or the shown toolbars.

> It would be great if some of you have an idea.

> Thanks a lot

> Heinz

>
 
S

SvenC

Hi Heinz,


> thanks for this information, but when i'm installing Livemeeting it is
> possible for them - there occures new buttons in this menu


Search the CommandBars collection of the Outlook Explorer you want

to extend add the button to. Get the "Standard" command bar.

Find the CommandBarControl with ID 1874 which is the new drop down.

Cast it to CommandBarPopup

Use its Controls collection to add a CommandBarButton or whatever

control type you want.

SvenC
 
H

Heinz Schmidt

Hi Sven,

thanks for this hint!

Can you provide an codesnippet becouse i'm not realy sure about the right

way to do it...

Thank you very much!

Regards

Heinz

"SvenC" <SvenC@nospam.nospam> schrieb im Newsbeitrag

news:e5stQBhrJHA.3988@TK2MSFTNGP05.phx.gbl...
> Hi Heinz,
>
> > thanks for this information, but when i'm installing Livemeeting it is
> > possible for them - there occures new buttons in this menu


> Search the CommandBars collection of the Outlook Explorer you want
> to extend add the button to. Get the "Standard" command bar.

> Find the CommandBarControl with ID 1874 which is the new drop down.
> Cast it to CommandBarPopup

> Use its Controls collection to add a CommandBarButton or whatever
> control type you want.

> > SvenC
 
S

SvenC

Hi Heinz,


> thanks for this hint!
> Can you provide an codesnippet becouse i'm not realy sure about the right
> way to do it...


' this is a global variable

Private WithEvents m_oNewButton as CommandBarButton

' this is in one of your functions

Dim oNew as CommandBarPopup

' get the new popup control

Set oNew = ActiveExplorer.CommandBars.FindControl(, 1874)

' add a button

Set m_oNewButton = oNew.Controls.Add(1)

m_oNewButton.Caption = "Hello World"

To react to the click event select the m_oNewButton from the left

combo box which is located above the source code. In the right

combobox select the Click entry. That should create a new

OnClick procedure which gets called when the button is clicked.

SvenC
 
H

Heinz Schmidt

Hey Sven,

it works!!

Thanks a lot for your help!

Regards

Heinz

"SvenC" <SvenC@nospam.nospam> schrieb im Newsbeitrag

news:OJYsVOrrJHA.4364@TK2MSFTNGP04.phx.gbl...
> Hi Heinz,
>
> > thanks for this hint!
> > Can you provide an codesnippet becouse i'm not realy sure about the right
> > way to do it...


> ' this is a global variable
> Private WithEvents m_oNewButton as CommandBarButton

> ' this is in one of your functions
> Dim oNew as CommandBarPopup
> ' get the new popup control
> Set oNew = ActiveExplorer.CommandBars.FindControl(, 1874)

> ' add a button
> Set m_oNewButton = oNew.Controls.Add(1)
> m_oNewButton.Caption = "Hello World"

> To react to the click event select the m_oNewButton from the left
> combo box which is located above the source code. In the right
> combobox select the Click entry. That should create a new
> OnClick procedure which gets called when the button is clicked.

> > SvenC
 
Status
Not open for further replies.
Top