dbTalk Databases Forums  

Custom task icons

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Custom task icons in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alexander Sinitsin
 
Posts: n/a

Default Custom task icons - 07-20-2004 , 07:24 AM






Hello, All!

As far as I can see, DTS Designer utilizes icons of different sizes for task
pane (16x16) and for designer pane (32x32). But I can't use two icons for
custom task. As result, only one icon looks well. Is there some trick with
icons?

Thanks.

With best regards, Alexander Sin



Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Custom task icons - 07-20-2004 , 07:56 AM






You need to add two sizes of icons into a single file. Strictly speaking you
also need different color depths.

This is probably bit over the top for a DTS icon, but gives you plenty of
info-

Creating Windows XP Icons
(http://msdn.microsoft.com/library/de...-us/dnwxp/html
/winxpicons.asp)

Lots of icon tools out there, as well as that built into Visual Studio, and
VS.Net is has a marginally better tool.

--
Darren Green
http://www.sqldts.com


"Alexander Sinitsin" <a.sinitsin (AT) alvion (DOT) com.ua> wrote

Quote:
Hello, All!

As far as I can see, DTS Designer utilizes icons of different sizes for
task
pane (16x16) and for designer pane (32x32). But I can't use two icons for
custom task. As result, only one icon looks well. Is there some trick with
icons?

Thanks.

With best regards, Alexander Sin





Reply With Quote
  #3  
Old   
Alexander Sinitsin
 
Posts: n/a

Default Re: Custom task icons - 07-20-2004 , 09:05 AM



Hello, Darren!
You wrote on Tue, 20 Jul 2004 13:56:34 +0100:

DG> You need to add two sizes of icons into a single file. Strictly
DG> speaking you also need different color depths.

Thanks for your response, Darren. I take a lot of experiments with icons
size and color depth. I'm try to use 16x16 pixel icon (16 colors) with
32x32x16 colors and 24x24x16 colors and don't get needed result. Better
touch - use 16x16 icon. In this case on task pane icon looks well, but on
designer pane this icon is scaled and looks strange.

Your link is very educational, but not conserned with custom tasks.

Thanks.
With best regards, Alexander Sinitsin. E-mail: al_sin[dog]ukr.net



Reply With Quote
  #4  
Old   
Darren Green
 
Posts: n/a

Default Re: Custom task icons - 07-20-2004 , 01:02 PM



In message <#8NfqKmbEHA.384 (AT) TK2MSFTNGP10 (DOT) phx.gbl>, Alexander Sinitsin
<al_sin@[dog].invalid> writes
Quote:
Hello, Darren!
You wrote on Tue, 20 Jul 2004 13:56:34 +0100:

DG> You need to add two sizes of icons into a single file. Strictly
DG> speaking you also need different color depths.

Thanks for your response, Darren. I take a lot of experiments with icons
size and color depth. I'm try to use 16x16 pixel icon (16 colors) with
32x32x16 colors and 24x24x16 colors and don't get needed result. Better
touch - use 16x16 icon. In this case on task pane icon looks well, but on
designer pane this icon is scaled and looks strange.

Check out the "Icon Color Size Tester" download I've just put up here,
last one on the page-

Sample Code & Packages
(http://www.sqldts.com/default.aspx?271)

The icon includes all sizes and two color depths, although I may have
messed up on the later. Using the icon supplied for a task registration,
I get a yellow on the task bar (16x16) and purple on the designer
(32x32).

If you open the icon in a suitable tool that allows you to see all
images in that single file you can see how it was put together, with a
different color for each size and depth combination.

Quote:
Your link is very educational, but not conserned with custom tasks.

No, and I don't think you'll find one specific for custom tasks, but
most of the information is still relevant. Icons are icons regardless of
their display host.

--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com

PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org



Reply With Quote
  #5  
Old   
Alexander Sinitsin
 
Posts: n/a

Default Re: Custom task icons - 07-21-2004 , 03:44 AM




DG> I get a yellow on the task bar (16x16) and purple on the designer
DG> (32x32).

Thanks Darren!
I catch this.

I have a RES file inside my project and two icons in this file. At time of
task registering I put same value for 'Task location' and 'Icon location'
(DLL contain two icons). In this case only one icon used.

If we will create ICO file with two icons inside, and use this file at time
of task registering, DTS will utilize both icons.

So, registering procedure will be a bit harder.

Thanks for your help.



Reply With Quote
Reply




Thread Tools
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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.