DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   Favorites   Watched Topics     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

SysImageList problem

 
   Reply to topic       DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 170

PostPosted: 22/06/04 09:04    Post subject: SysImageList problem Reply with quote

Hi, I have little problem with SysImageList, concretly with drawning icons. The problem is that icon is placed on non-transparent white square and no settings about drawning style, or bk color can change it. maybe screen will show it:
Back to top
View user's profile Visit poster's website
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 506
Location: Tehran, Iran

PostPosted: 22/06/04 10:11    Post subject: Reply with quote

Probably you set the DrawingStyle property of TSysImageList to dsNormal. It should be dsTransparent.
Back to top
View user's profile Send e-mail Visit poster's website
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 170

PostPosted: 22/06/04 13:58    Post subject: Reply with quote

it is dsTransparent by Default.. i tried to change blend and bk color to cl none but that doesn't help...
Back to top
View user's profile Visit poster's website
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 506
Location: Tehran, Iran

PostPosted: 22/06/04 19:45    Post subject: Reply with quote

It could not be because of TSysImageList, because the component just set the image list handle, and doesn't override the base class methods.

Are you using a third party XP Theme Manager?
Back to top
View user's profile Send e-mail Visit poster's website
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 170

PostPosted: 23/06/04 09:40    Post subject: Reply with quote

Well i do use ThemeManager from Delphi Germs, but when i removed it (completly, so there are no even single call or unit left knowing 'bout existence of it) and problem still exist...
Back to top
View user's profile Visit poster's website
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 506
Location: Tehran, Iran

PostPosted: 27/06/04 21:05    Post subject: Reply with quote

Is the drawing okay when you use TImageList instead of TSysImageList?
Back to top
View user's profile Send e-mail Visit poster's website
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 170

PostPosted: 29/06/04 16:31    Post subject: Reply with quote

Icons & bitmaps works fine, but i didn't tried 32 bits icons. i try later, more sets but it seems that this problem is hard to solve...
Back to top
View user's profile Visit poster's website
Kambiz
Administrator


Joined: 07 Mar 2003
Posts: 506
Location: Tehran, Iran

PostPosted: 30/06/04 16:30    Post subject: Reply with quote

Hi,

Suddenly today I encountered to the same problem in my own application.

The controls use either ImageList_Draw or ImageList_DrawEx API function to draw an imagelist image on their device context. The controls that using the second API, have problem with image transparency.

ImageList_DrawEx API as one of its parameters needs the background color, and imagelist provides a value for this parameter by BkColor property. To have a transparent image, the BkColor property must be clNone.

To resolve the problem in SysImageList, I changed the default value of BkColor property to clNone.

The update is available to download.

Cheers,
Kambiz
Back to top
View user's profile Send e-mail Visit poster's website
Johnny_Bit
Moderator


Joined: 15 Jun 2003
Posts: 170

PostPosted: 04/07/04 10:29    Post subject: Reply with quote

heh... i didn't thinked that it was it... i've got same problem with api functions when i tried to make nice gray out effect and hotlight efect on images... damn.. if i had just hard line connection to internet on my home computer... it would be great. thanks a lot Kambiz
Back to top
View user's profile Visit poster's website
Display posts from previous:   
   Reply to topic       DELPHI AREA Forum Index -> DELPHI AREA's Products All times are GMT
Page 1 of 1

Add to favorites

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group