Search found 204 matches

by tatanas
Thu Apr 11, 2024 11:23 am
Forum: Windows
Topic: ListIcon and image transparency
Replies: 20
Views: 917

Re: ListIcon and image transparency

I'm so stupid... I completely forgot the coordinate prequisite of FillRect :oops:
by tatanas
Thu Apr 11, 2024 10:26 am
Forum: Windows
Topic: ListIcon and image transparency
Replies: 20
Views: 917

Re: ListIcon and image transparency

Thank you it work fine ! But I don't undestand why ? This code doesn't work : Procedure WndProc(hWnd, Message, wParam, lParam) Protected *lparam.NMHDR, *lvcd.NMLVCUSTOMDRAW Select Message Case #WM_NOTIFY If lParam *lparam = lParam If *lparam\hwndFrom = GadgetID(ListIcon) Select *lparam\code Case #NM...
by tatanas
Thu Apr 11, 2024 9:03 am
Forum: Windows
Topic: ListIcon and image transparency
Replies: 20
Views: 917

Re: ListIcon and image transparency

I've got a similar problem when I want to center the image/icon inside its column. The highlight of the line is erased by the redraw of the subitem image : Global ImgList, OldWndProc, ListIcon Procedure ListIcon_SetItemImage(tempListIconGadget, index_item.w, index_subitem.w, index_image.w) Protected...
by tatanas
Thu Apr 04, 2024 7:40 am
Forum: Windows
Topic: ListIcon and image transparency
Replies: 20
Views: 917

Re: ListIcon and image transparency

Thank you very much. Both of you did a great job !

Why hasn't Microsoft done anything to simplify this ? All this just to display an icon with a transparent backgound in listview...
by tatanas
Wed Apr 03, 2024 10:06 am
Forum: Windows
Topic: ListIcon and image transparency
Replies: 20
Views: 917

Re: ListIcon and image transparency

Great code breeze4me ! The problem is that I'm using #PB_ListIcon_FullRowSelect style and the image background stays grey or white instead of the highlight color when selected. I tryed adding a SetListIconLineColorsHighLight() function with GetSysColor_(#COLOR_HIGHLIGHT) as background color and then...
by tatanas
Thu Mar 28, 2024 12:46 pm
Forum: Windows
Topic: ListIcon and image transparency
Replies: 20
Views: 917

Re: ListIcon and image transparency

That's what I did...
by tatanas
Thu Mar 28, 2024 8:42 am
Forum: Windows
Topic: ListIcon and image transparency
Replies: 20
Views: 917

Re: ListIcon and image transparency

Better but not perfect. The horizontal offet disappeared but the vertical one still remains.

Do you think it would be easier with WM_NOTIFY and CustomDraw ?
by tatanas
Wed Mar 27, 2024 4:31 pm
Forum: Windows
Topic: ListIcon and image transparency
Replies: 20
Views: 917

Re: ListIcon and image transparency

Sorry, I can't see any difference with the previous version.
by tatanas
Wed Mar 27, 2024 1:39 pm
Forum: Windows
Topic: ListIcon and image transparency
Replies: 20
Views: 917

Re: ListIcon and image transparency

Nice ! I don't know for you but it's almost good for me.
I've got a tiny offset (or resize) of the image (1 pixel vertical/height, 2 pixels horizontal/width).
Here is a screenshot : https://ibb.co/kXF9qn7
by tatanas
Wed Mar 27, 2024 1:23 pm
Forum: Feature Requests and Wishlists
Topic: DebugOutput window / Script line
Replies: 5
Views: 221

Re: DebugOutput window / Script line

I know about macro and #PB_Compiler_File constant but I suppose it's pretty easy to add it in DebugOuput through a parameter.
by tatanas
Wed Mar 27, 2024 11:06 am
Forum: Feature Requests and Wishlists
Topic: DebugOutput window / Script line
Replies: 5
Views: 221

DebugOutput window / Script line

Hi,

Is there a way to show in the DebugOutput window the script line number from where the Debug command was executed ?
If not, It could be added as a checkbox option in the Preferences > Debugger.

Thanks.
by tatanas
Wed Mar 27, 2024 8:57 am
Forum: Windows
Topic: ListIcon and image transparency
Replies: 20
Views: 917

Re: ListIcon and image transparency

Thank you RASHAD. But on my PC, there is no transparency. Look at this screenshot : https://ibb.co/mT0k37w (I change the background color from $F5F5F5 to $E1E1E1 to boost the contrast) EDIT : This topic https://stackoverflow.com/questions/632622/imagelist-transparency-on-listviews seems to evoke the...
by tatanas
Mon Mar 25, 2024 10:07 am
Forum: Windows
Topic: ListIcon and image transparency
Replies: 20
Views: 917

ListIcon and image transparency

Hi, I've got a problem with the transparency of image inside a Listicon. If I use SetGadgetColor(ListIcon, #PB_Gadget_BackColor, ...) there is no problem with the image. If I use SetGadgetItemColor(ListView, i, #PB_Gadget_BackColor, ...) (inside the AlternateListViewBackColor procedure) the image is...
by tatanas
Fri Mar 22, 2024 9:09 am
Forum: Coding Questions
Topic: Icon display messed up
Replies: 11
Views: 381

Re: Icon display messed up

Thank you everyone for your tips.
I will add some error check inside the function.

RASHAD : I'm intrigued by your comment. Do you mean I should add some delay between each call of this function ?
by tatanas
Thu Mar 21, 2024 3:03 pm
Forum: Coding Questions
Topic: Icon display messed up
Replies: 11
Views: 381

Re: Icon display messed up

Sorry but I'm going to repeat myself :
I was just wondering if the function and its use was right.
If there is no error with the use of this function, I will investigate other part of my code.