Solved

Transparent  and treeview

Posted on 2001-07-05
7
967 Views
Last Modified: 2008-02-01
Hi EEs:

This is the scenario:

I have a treeview and imagelist controls.
Imagelist is loaded with transparent gifs images.

Why those images haven't transparent background when are seeing on treeview?

Thanks

0
Comment
Question by:Richie_Simonetti
7 Comments
 
LVL 3

Accepted Solution

by:
TheRedGuy earned 50 total points
ID: 6258888
Dunno, can you not just convert the gifs to icons?
0
 
LVL 3

Expert Comment

by:CesarGon
ID: 6259000
You have to set the ImageList's MaskColor property to the color in your GIF images you want to see as "transparent" when used on the TreeView. It won't take the transparency settings of the GIF files.

Best,
Cesar.
0
 
LVL 4

Expert Comment

by:VincentLawlor
ID: 6259014
What colour is the background when they are in the TreeView ?

If it always the same then in your image list control
in the Color tab change the mask color to the color of the background.

Hope this helps
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 4

Expert Comment

by:VincentLawlor
ID: 6259086
In your ImageList load the gif images and set the mask color to the background color that it appears as in the imagelist (usually black). Make sure the UseMaskColor option is checked.

The pictures should now appear as transparent in your TreeView.

Vin.
0
 
LVL 16

Author Comment

by:Richie_Simonetti
ID: 6259462
Well, i already tried Usemaskcolor property without solve the problem.
VincentLawlor, i would reject your answer until i have received more input from others EE.

At the momment of posting question, i had this:
All Gif background are &HFF00FF (Nice color, isn't it?) and all are 256 color depth, loaded to imagelist at design time.
Maskcolor = &HFF00FF
UseMaskColor=true

By the way, i am working with those controls from within VBA.

Thanks for yours comments, i am waiting...
0
 
LVL 16

Author Comment

by:Richie_Simonetti
ID: 6259838
TheRedGuy, your comment is close enought.
I would like to know why it doesn't works with gif.
0
 
LVL 16

Author Comment

by:Richie_Simonetti
ID: 6261579
I don't like to use BMPs simbce they are so heavy. I was using gif instead for that reason.
Ico files are less weight than BMP and it works.
TheRedGuy you have the answer. Thanks
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question