Citrix/Outlook COM Add-in PasteFace button issues

A

Anthony

Hi,

I have an Outlook COM Addin which adds toolbar buttons and menus. Images
are added to the CommandBarButtons using the following code (Clipboard
is a VB object)

Clipboard.SetData LoadResPicture(CStr(myPic), _
vbResBitmap)
newCtl.PasteFace

The clipboard is stored before any images are copied (preserving any
user's data) and restored once all images have been pasted. This code is
quite extensive and includes 'user32' library methods Open and
CloseClipboard, Get and SetClipboardData. I can provide the full list if
this will help.

This is extensively tested in a standard Windows environment where there
are no issues with button faces.

The issue arises when the addin in used in a Citrix environment. The
toolbar buttons are added and are functional except quite often there
are no button images, sometimes there are, sometimes there are not.

Can any assist?

Thanks in advance,
Anthony
 
M

Michael Bauer

Hi Anthony,

I don´t know Citrix, it´s just a try: Did you set the
CommandBarButton.State property to one of the msoButtonIcon* values?
 
A

Anthony

Thankyou for taking the time to reply.

This is only an issue when Outlook - with the COM Add-in - is run in a
Citrix environment, otherwise there are no problems. The buttons already
have the property 'MsoButtonStyle' set to 'msoButtonIcon'.

It seems to be an issue with the way the bitmap images are pasted onto
the buttons - possibly a clipboard issue within the Citrix
environment...?

Regards,
Anthony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top