![]() |
CommandBarComboBox on inspector toolbar
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 |
CommandBarComboBox on inspector toolbar (ol2003)
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 |
CommandBarComboBox on inspector toolbar (ol2003)
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: 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 |
CommandBarComboBox on inspector toolbar (ol2003 + vsto 2005 se)
I have created a commandbarcombox on an inspector commandbar via a OL addin .
I am facing this issue of loose-value-on-mouse-click v/s retain-value-when-keyboard-TAB for the text entered in that commandbarcombox . (Q1) Any body any ideas on how to resolve this ? (Q2) Is this a Microsoft bug or am I doing anything wrong ? using Office = Microsoft.Office.Core; .. .. .. MyCmdBarCbx = (Office.CommandBarComboBox)MyUICommandBar.Controls .Add( Office.MsoControlType.msoControlEdit, _MyMissing, _MyMissing, cmdBarControlPosition, 1); MyCmdBarCbx.Width = 120; MyCmdBarCbx.Tag = MyEntryId + MyRandomNo + MyStrings; Office._CommandBarComboBoxEvents_ChangeEventHandle r MyCmdBarCbxHandler = new Office._CommandBarComboBoxEvents_ChangeEventHandle r(MyCmdBarCbx_Change); MyCmdBarCbx.Change += MyCmdBarCbxHandler; Thanks |
All times are GMT +1. The time now is 08:59 AM. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com