473,668 Members | 2,586 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ToolBar Icons problem

Hi,
I created a toolbar, added button and Icons from an ImageList.
The icons are transparent for disable mode.

The problem is that the icons does not look good, a blue outlet is added to
the icon.

If the image is not transparent everything looks good, but of-course, when
the buttons are disabled, the icons all gray.

I tired bmp, jpg, png, gif
I tried seveal icons sizes : 16x16, 17x18, 25x25

Any Ideas ?

Thanks in advance.
Nov 17 '05 #1
4 3071
As well as the picture, you must set the mask property as well. The mask is
a picture in black and white where white denotes the transparent areas and
black the non-transparent areas.

/Mats-Lennart

"udir" <ud**@discussio ns.microsoft.co m> wrote in message
news:EA******** *************** ***********@mic rosoft.com...
Hi,
I created a toolbar, added button and Icons from an ImageList.
The icons are transparent for disable mode.

The problem is that the icons does not look good, a blue outlet is added
to
the icon.

If the image is not transparent everything looks good, but of-course,
when
the buttons are disabled, the icons all gray.

I tired bmp, jpg, png, gif
I tried seveal icons sizes : 16x16, 17x18, 25x25

Any Ideas ?

Thanks in advance.

Nov 17 '05 #2
If I understand you I've done that, didn't work.
My images are masked as you suggested.

( I have only one set of images, If you mean that I need another set of
images for disable mode, please detail how do I do that)

Thanks for your response.

"Mats-Lennart Hansson" wrote:
As well as the picture, you must set the mask property as well. The mask is
a picture in black and white where white denotes the transparent areas and
black the non-transparent areas.

/Mats-Lennart

"udir" <ud**@discussio ns.microsoft.co m> wrote in message
news:EA******** *************** ***********@mic rosoft.com...
Hi,
I created a toolbar, added button and Icons from an ImageList.
The icons are transparent for disable mode.

The problem is that the icons does not look good, a blue outlet is added
to
the icon.

If the image is not transparent everything looks good, but of-course,
when
the buttons are disabled, the icons all gray.

I tired bmp, jpg, png, gif
I tried seveal icons sizes : 16x16, 17x18, 25x25

Any Ideas ?

Thanks in advance.


Nov 17 '05 #3
Hi Udir,
I had faced the same problem earlier and the solution to remove
the BLUE border of the images is
make the Toolbar button size same as the Image size
i.e
if ur image is of 16 X 16 then the toolbar button size should be 16X16
This will work just try it.

Regards,
Pramod


"udir" <ud**@discussio ns.microsoft.co m> wrote in message
news:02******** *************** ***********@mic rosoft.com...
If I understand you I've done that, didn't work.
My images are masked as you suggested.

( I have only one set of images, If you mean that I need another set of
images for disable mode, please detail how do I do that)

Thanks for your response.

"Mats-Lennart Hansson" wrote:
As well as the picture, you must set the mask property as well. The mask is a picture in black and white where white denotes the transparent areas and black the non-transparent areas.

/Mats-Lennart

"udir" <ud**@discussio ns.microsoft.co m> wrote in message
news:EA******** *************** ***********@mic rosoft.com...
Hi,
I created a toolbar, added button and Icons from an ImageList.
The icons are transparent for disable mode.

The problem is that the icons does not look good, a blue outlet is added to
the icon.

If the image is not transparent everything looks good, but of-course,
when
the buttons are disabled, the icons all gray.

I tired bmp, jpg, png, gif
I tried seveal icons sizes : 16x16, 17x18, 25x25

Any Ideas ?

Thanks in advance.


Nov 17 '05 #4
Thank You Very Much !!!!!!!!!!!!!!

"Pramod" wrote:
Hi Udir,
I had faced the same problem earlier and the solution to remove
the BLUE border of the images is
make the Toolbar button size same as the Image size
i.e
if ur image is of 16 X 16 then the toolbar button size should be 16X16
This will work just try it.

Regards,
Pramod


"udir" <ud**@discussio ns.microsoft.co m> wrote in message
news:02******** *************** ***********@mic rosoft.com...
If I understand you I've done that, didn't work.
My images are masked as you suggested.

( I have only one set of images, If you mean that I need another set of
images for disable mode, please detail how do I do that)

Thanks for your response.

"Mats-Lennart Hansson" wrote:
As well as the picture, you must set the mask property as well. The mask is a picture in black and white where white denotes the transparent areas and black the non-transparent areas.

/Mats-Lennart

"udir" <ud**@discussio ns.microsoft.co m> wrote in message
news:EA******** *************** ***********@mic rosoft.com...
> Hi,
> I created a toolbar, added button and Icons from an ImageList.
> The icons are transparent for disable mode.
>
> The problem is that the icons does not look good, a blue outlet is added > to
> the icon.
>
> If the image is not transparent everything looks good, but of-course,
> when
> the buttons are disabled, the icons all gray.
>
> I tired bmp, jpg, png, gif
> I tried seveal icons sizes : 16x16, 17x18, 25x25
>
> Any Ideas ?
>
> Thanks in advance.


Nov 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3530
by: Philippe Meunier | last post by:
Hi, I am using the .NET toolbar with VB.NET 2003. My toolbar uses icons images that are actually PNG files and uses alpha blending on it. So to make alpha blending work correctly with the Toolbar and the Imagelist I had to use a tricky method with API calls that is described like this by a MS MVP : 1) Use v6 of the common controls (have a manifest) 2) Load the PNG using GDI+
0
990
by: udir | last post by:
Hi, I created a toolbar, added button and Icons from an ImageList. The icons are transparent for disable mode. The problem is that the icons does not look good, a blue outlet is added to the icon. If the image is not transparent everything looks good, but of-course, when the buttons are disabled, the icons all gray.
3
19610
by: Quan Nguyen | last post by:
I'm trying to look for the icons/images (New/Open/Save, Copy/Cut/Paste...) typically used in toolbars in Windows applications, such as MS Word. I'd appreciate if anyone can point me to a webpage that have those images. Thanks.
3
2016
by: Tam | last post by:
im at my wits end. where can i get icons for an application im building. i need the usual ones, align, font size etc but i simply cannot find the icons. im probably being dumb but ive tried all sorts. the net, groups, icon extractors (i had 15000 on my drive, but they were all icons, not toolbar icons) so, please, where can i source toolbar icons?
5
6194
by: Cecilia Bergengruen | last post by:
I need icons to put in my toolbar, for the following buttons: Print Next Previous First Last Duplicate Save Discard
3
10438
by: lindsay | last post by:
Hello, I am trying to make a toolbar at the bottom of my pocket pc app with 'New', 'Open', 'Delete', etc. icons on the buttons. I'm pretty sure that there are some standard system icons in VB.NET, but I have not been able to find them. Any Suggestions on how to add these images, if they exist, to my toolbar buttons? Thanks, Lindsay
3
2466
by: Al | last post by:
Hi All, I am trying to get a 24x24 "Windows XP" icon to display correctly on a button in my toolbar. My icon has 8 layers (16x16, 16x16, 24x24, 24x24, 32x32, 32x32, 48x48, 48x48) with each size having a 256 and windows xp colored image. When my application runs, the icon with 256 colors appears rather than the xp icon. I have tried using a manifest as well as Application.EnableVisualStyles. No luck. I have seen numerous articles...
7
2936
by: Mitchell Vincent | last post by:
I've been trying to get a standard toolbar to play nice with some nice icons that I have. When I put them on a button or anything they look perfect, but through an imagelist and on a toolbar they all have this blue aura around them. I assume that is from the transparency, but I don't understand why almost any other control displays them properly.. There really is no replacement for the toolbar (without paying!), so I hope someone can tell...
0
1689
by: KW | last post by:
I created custom toolbar icons that look and function similar to the standard MS Access Fill/Back Color and Fill/Fore Color toolbar icons. My custom icons call a function that uses the Terry Kreft and Stephan Lebans 'aDialogColor' function. I modified the function slightly to open the full color palette with CC_FULLOPEN + CC_RGBINIT and pass to the function the color that I want to set initially before calling ChooseColor. My issue is,...
0
8462
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8381
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8893
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8797
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8583
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8656
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6209
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4205
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2023
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.