msoControlEdit and disappearing text

T

Tom at GSD

Hello,

I have developed a command bar for outlook which includes a combo box that
is set to msoControlEdit. I am able to programmatically set the text during
initialization and the text is displayed. However if I type text into the
edit control, as soon as the edit box looses focus the original text appears.
If I do not set the text during initialization the text just disappears and
the edit box becomes empty. So I believe that when the edit control looses
focus the text is cleared or reset to the default. Does anybody know what is
going on? I have done a VC6 add-in. I know that for IE toolbars the toolbar
has to have the edit control focus set when the toolbar has gained focus -
through the band object interface. Any help would be greatly appreciated.
Thanks,
Tom
 
T

Tom at GSD

It appears that I have answered my own question - some what anyhow? When you
type text into the edit box you have to use the enter key or the tab key.
Setting text into the text box and then using the mouse to click on another
button will cause the edit control to loose the text. So it looks like one of
the above mentioned key strokes have to take place.
 
Top