Group:  Microsoft Outlook ยป microsoft.public.outlook.program_addins
Thread: CommandBarComboBox on inspector toolbar

Geek News

CommandBarComboBox on inspector toolbar
bstrum 6/20/2007 11:42:03 PM
I have created a commandbarcombox on an inspector commandbar like this:

MO.CommandBarComboBox ctl = (MO.CommandBarComboBox)ctls.Add(
MO.MsoControlType.msoControlEdit,
System.Reflection.Missing.Value,
System.Reflection.Missing.Value,
System.Reflection.Missing.Value,
true);
ctl.Caption = "txt";
ctl.Style = MO.MsoComboStyle.msoComboNormal;
ctl.Visible = true;
ctl.Text = "Some Value";

The control shows up on the toolbar but there is a usability issue under
Office XP and 2003. After the user enters text in this control, it reverts
back to the original text if the user clicks somewhere else (such as the
message body). Hitting tab, however, preserves the newly entered text. Why
is this and how do I make this control behave like a textbox should?

Thank you,

Benjamin Strum
ThinkTron Corporation
RE: CommandBarComboBox on inspector toolbar (ol2003)
newToOutlookProgramming 6/27/2007 8:38:03 PM
Hi,

i m facing exact same issue (wtih vsto 2005 se / ol2003 sp2 )

any updates ?

thks

"bstrum" wrote:

[Quoted Text]
> I have created a commandbarcombox on an inspector commandbar like this:
>
> MO.CommandBarComboBox ctl = (MO.CommandBarComboBox)ctls.Add(
> MO.MsoControlType.msoControlEdit,
> System.Reflection.Missing.Value,
> System.Reflection.Missing.Value,
> System.Reflection.Missing.Value,
> true);
> ctl.Caption = "txt";
> ctl.Style = MO.MsoComboStyle.msoComboNormal;
> ctl.Visible = true;
> ctl.Text = "Some Value";
>
> The control shows up on the toolbar but there is a usability issue under
> Office XP and 2003. After the user enters text in this control, it reverts
> back to the original text if the user clicks somewhere else (such as the
> message body). Hitting tab, however, preserves the newly entered text. Why
> is this and how do I make this control behave like a textbox should?
>
> Thank you,
>
> Benjamin Strum
> ThinkTron Corporation
RE: CommandBarComboBox on inspector toolbar (ol2003)
bstrum 6/27/2007 9:16:03 PM
No, I have not gotten any resolution to it. I know it has something to do
with the focus. I had spent a ilttle time trying to find a way to keep the
focus on the toolbar after the user enters some data but I can't find any
event handlers for this.

Let me know if you find out anything.

Thanks,

-Ben

"newToOutlookProgramming" wrote:

[Quoted Text]
> Hi,
>
> i m facing exact same issue (wtih vsto 2005 se / ol2003 sp2 )
>
> any updates ?
>
> thks
>
> "bstrum" wrote:
>
> > I have created a commandbarcombox on an inspector commandbar like this:
> >
> > MO.CommandBarComboBox ctl = (MO.CommandBarComboBox)ctls.Add(
> > MO.MsoControlType.msoControlEdit,
> > System.Reflection.Missing.Value,
> > System.Reflection.Missing.Value,
> > System.Reflection.Missing.Value,
> > true);
> > ctl.Caption = "txt";
> > ctl.Style = MO.MsoComboStyle.msoComboNormal;
> > ctl.Visible = true;
> > ctl.Text = "Some Value";
> >
> > The control shows up on the toolbar but there is a usability issue under
> > Office XP and 2003. After the user enters text in this control, it reverts
> > back to the original text if the user clicks somewhere else (such as the
> > message body). Hitting tab, however, preserves the newly entered text. Why
> > is this and how do I make this control behave like a textbox should?
> >
> > Thank you,
> >
> > Benjamin Strum
> > ThinkTron Corporation

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