![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
Ads |
#2
|
|||
|
|||
![]()
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 |
#3
|
|||
|
|||
![]()
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 |
#4
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiplying Inspector Toolbar in Mail Item | Irene | Outlook and VBA | 1 | December 29th 06 05:07 PM |
HOWTO: Get the CommandBarComboBox event on the inspector | tonyl | Add-ins for Outlook | 3 | November 7th 06 02:18 PM |
Inspector and adding a custom toolbar | Paul Heinisch | Add-ins for Outlook | 7 | September 5th 06 07:00 PM |
add toolbar in inspector contact item | Irene | Outlook and VBA | 1 | February 24th 06 10:23 PM |
Help! Inspector.Close is fired before Inspector.Activate handler finishes | Sergey Anchipolevsky | Add-ins for Outlook | 8 | February 9th 06 10:51 AM |