A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

CommandBarComboBox on inspector toolbar



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 21st 07, 01:42 AM posted to microsoft.public.outlook.program_addins
bstrum
external usenet poster
 
Posts: 19
Default 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
Ads
  #2  
Old June 27th 07, 10:38 PM posted to microsoft.public.outlook.program_addins
newToOutlookProgramming
external usenet poster
 
Posts: 9
Default 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

  #3  
Old June 27th 07, 11:16 PM posted to microsoft.public.outlook.program_addins
bstrum
external usenet poster
 
Posts: 19
Default 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

  #4  
Old September 17th 07, 11:50 PM posted to microsoft.public.outlook.program_addins
newToOutlookProgramming
external usenet poster
 
Posts: 9
Default 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

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 05:30 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-2025 Outlook Banter.
The comments are property of their posters.