![]() |
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
|
|||
|
|||
![]()
CommandBarComboBox on inspector toolbar (ol2003 + vsto 2005 se + windowsXP)
----------------------------------------------------------------------------------------------- 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-on-keyboard-TABOUT 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 ? relevant code is : 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; The control shows up fine on the toolbar. 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. For the first time when the original text is null, then on-clicking anywhere text reverts to null. Why is this and how do I make this control behave like a textbox should? Thanks a lot |
Ads |
#2
|
|||
|
|||
![]()
That's the way it works, you can't change it. Until the user clicks tab or
enter the text is not retained. Look at the built-in combo's in the ribbon or the Explorer toolbars and they behave the same way. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "newToOutlookProgramming" wrote in message ... CommandBarComboBox on inspector toolbar (ol2003 + vsto 2005 se + windowsXP) ----------------------------------------------------------------------------------------------- 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-on-keyboard-TABOUT 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 ? relevant code is : 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; The control shows up fine on the toolbar. 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. For the first time when the original text is null, then on-clicking anywhere text reverts to null. Why is this and how do I make this control behave like a textbox should? Thanks a lot |
#3
|
|||
|
|||
![]()
Hi ken,
did u mean this : " Until the user clicks (via mouse) OR tabsout (via keyboard) , the entered text is not retained." My issue is that entered-text is not retained when user clicks(via mouse). Moreover, in OL2003, there are not a lot of places with comboboxes. i see some dropdowns in default Explorer view in OL2003: (i) "Current View" - Messages, Last Seven Days etc ( this does not let entered-text retained on clicking) (ii) "Look for :" ___________ (i typed sm text here and text is retained after I click elsewhere) thanks for your help -manish "Ken Slovak - [MVP - Outlook]" wrote: That's the way it works, you can't change it. Until the user clicks tab or enter the text is not retained. Look at the built-in combo's in the ribbon or the Explorer toolbars and they behave the same way. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "newToOutlookProgramming" wrote in message ... CommandBarComboBox on inspector toolbar (ol2003 + vsto 2005 se + windowsXP) ----------------------------------------------------------------------------------------------- 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-on-keyboard-TABOUT 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 ? relevant code is : 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; The control shows up fine on the toolbar. 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. For the first time when the original text is null, then on-clicking anywhere text reverts to null. Why is this and how do I make this control behave like a textbox should? Thanks a lot |
#4
|
|||
|
|||
![]()
No, I meant that unless the Enter or Tab keys are pressed that's the way
things are, the text won't be retained and there's nothing you can do about it. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "newToOutlookProgramming" wrote in message ... Hi ken, did u mean this : " Until the user clicks (via mouse) OR tabsout (via keyboard) , the entered text is not retained." My issue is that entered-text is not retained when user clicks(via mouse). Moreover, in OL2003, there are not a lot of places with comboboxes. i see some dropdowns in default Explorer view in OL2003: (i) "Current View" - Messages, Last Seven Days etc ( this does not let entered-text retained on clicking) (ii) "Look for :" ___________ (i typed sm text here and text is retained after I click elsewhere) thanks for your help -manish |
#5
|
|||
|
|||
![]()
I am facing the same issue.
Well, I just happened to check the "Find" snap-in that just opens up in the explorer window, in there the text in the "Look for:" textbox seems to retain its text even though the focus is moved out via. a mouse-click. Need to know: - whether it is possible to create such snap-ins through VSTO? - whether that textbox is any different than the one in the commandbar? Would appreciate any pointers. - hiren. "Ken Slovak - [MVP - Outlook]" wrote: No, I meant that unless the Enter or Tab keys are pressed that's the way things are, the text won't be retained and there's nothing you can do about it. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "newToOutlookProgramming" wrote in message ... Hi ken, did u mean this : " Until the user clicks (via mouse) OR tabsout (via keyboard) , the entered text is not retained." My issue is that entered-text is not retained when user clicks(via mouse). Moreover, in OL2003, there are not a lot of places with comboboxes. i see some dropdowns in default Explorer view in OL2003: (i) "Current View" - Messages, Last Seven Days etc ( this does not let entered-text retained on clicking) (ii) "Look for :" ___________ (i typed sm text here and text is retained after I click elsewhere) thanks for your help -manish |
#6
|
|||
|
|||
![]()
MS has access to internal type command bar controls that can't be used by
us. So the behavior of built-in controls often can't be duplicated by outside developers. VSTO does not allow use of .NET controls in command bars. A 3rd party solution, Add-In Express, does allow using .NET controls on toolbars/menus, but then you have to use their framework and libraries to develop your solution. Otherwise you can't do what you are asking. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Hiren" wrote in message ... I am facing the same issue. Well, I just happened to check the "Find" snap-in that just opens up in the explorer window, in there the text in the "Look for:" textbox seems to retain its text even though the focus is moved out via. a mouse-click. Need to know: - whether it is possible to create such snap-ins through VSTO? - whether that textbox is any different than the one in the commandbar? Would appreciate any pointers. - hiren. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
CommandBarComboBox on inspector toolbar | bstrum | Add-ins for Outlook | 3 | September 17th 07 10:50 PM |
VSTO 2005 SE is final, free (w/VS Pro 2005) and supports OL2003 *s | Tadwick | Outlook and VBA | 5 | November 15th 06 06:54 PM |
HOWTO: Get the CommandBarComboBox event on the inspector | tonyl | Add-ins for Outlook | 3 | November 7th 06 01:18 PM |
Outlook 2007 Add-in using VSTO 2005 SE | Kenn | Outlook - Using Forms | 1 | November 4th 06 03:27 AM |
CommandbarComboBox-Event in COM Add-In (VB .net 2005) | mcp_virtue | Outlook and VBA | 0 | February 12th 06 09:00 PM |