Text centered (not left-aligned) in CommandBarPopup

  • Thread starter RGllZ28
  • Start date Views 1,449
Status
Not open for further replies.
R

RGllZ28

Hi,

I am using a CommandBarPopup in an Office toolbar, and I set the text using

'.Caption(...)'. The problem is that the text is centered by default, instead

of 'left-aligned'.

I have installed the Skype Toolbar in my Outlook, which also has a

CommandBarPopup control, and I see the text left-aligned... So it seems to be

something only in my control.

Why can be that? May it be sth about Office in general?

My code:

------------------------------------------------Dim m_popUpMenu As Office.CommandBarPopup

> ...

Set m_popUpMenu = .Add(Type:=msoControlPopup, Temporary:=True, Before:=1)

With m_popUpMenu

> Tag = "Options"

> ToolTipText = "Options"

> Enabled = True

> Width = 120

> Caption = "Options"

End With

------------------------------------------------Thanks in advance

Diego
 
K

Ken Slovak - [MVP - Outlook]

Answered in another group you posted in. Please do not multipost.

"Diego" <Diego> wrote in message

news:2ECB7952-D2B4-4792-BD8F-FB1062A1D7C7@microsoft.com...
> Hi,

> I am using a CommandBarPopup in an Office toolbar, and I set the text
> using
> '.Caption(...)'. The problem is that the text is centered by default,
> instead
> of 'left-aligned'.

> I have installed the Skype Toolbar in my Outlook, which also has a
> CommandBarPopup control, and I see the text left-aligned... So it seems to
> be
> something only in my control.

> Why can be that? May it be sth about Office in general?

> My code:
> ------------------------------------------------------------------------------> Dim m_popUpMenu As Office.CommandBarPopup
> ...
> Set m_popUpMenu = .Add(Type:=msoControlPopup, Temporary:=True, Before:=1)

> With m_popUpMenu
> .Tag = "Options"
> .ToolTipText = "Options"
> .Enabled = True
> .Width = 120
> .Caption = "Options"
> End With
> ------------------------------------------------> Thanks in advance

> Diego
 
Status
Not open for further replies.
Top