Window ListIconGadget With Owner Data (Very Fast)

Share your advanced PureBasic knowledge/code with the community.
User avatar
mk-soft
Always Here
Always Here
Posts: 6515
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Window ListIconGadget With Owner Data (Very Fast)

Post by mk-soft »

Update v1.06.1
- Added Header Color Support
- Added Compiler Option #USE_LISTICON_HEADER_COLOR

Update v1.06.2
- Bugfix delete brush objects

On request now also the header with colors. ;)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
ChrisR
Addict
Addict
Posts: 1563
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

Re: Window ListIconGadget With Owner Data (Very Fast)

Post by ChrisR »

Thank you for the header color :)
User avatar
mk-soft
Always Here
Always Here
Posts: 6515
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Window ListIconGadget With Owner Data (Very Fast)

Post by mk-soft »

Update v1.06.4
- Remove Compiler Option #USE_LISTICON_HEADER_COLOR
- Automatically initializes the ListIcon Header Color Callback

Only when setting the header colors are the required functions activated.
I hope I don't have a memory leak with the Header Color Brushed ;)

ChrisR wrote: Sat Jan 10, 2026 11:45 am Thank you for the header color :)
Thanks for answering ;)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
mk-soft
Always Here
Always Here
Posts: 6515
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Window ListIconGadget With Owner Data (Very Fast)

Post by mk-soft »

Update v1.07.1
- Added Special Function SortListIconGadgetEx

Description SortListIconGadgetEx
- Option: #PB_Sort_Ascending, #PB_Sort_Descending, #PB_Sort_NoCase
- Typ : #PB_String, #PB_Integer, #PB_Double
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
mk-soft
Always Here
Always Here
Posts: 6515
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Window ListIconGadget With Owner Data (Very Fast)

Post by mk-soft »

Update v1.07.2
- Some bug fixed

Fixed some missing default return values.

Edit: Go back to v1.07.2
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
pjay
Enthusiast
Enthusiast
Posts: 291
Joined: Thu Mar 30, 2006 11:14 am

Re: Window ListIconGadget With Owner Data (Very Fast)

Post by pjay »

Nice full-featured code, thanks a lot for sharing.
User avatar
mk-soft
Always Here
Always Here
Posts: 6515
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Window ListIconGadget With Owner Data (Very Fast)

Post by mk-soft »

Update v1.08.1
- Code reorganized

;)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
acreis
Enthusiast
Enthusiast
Posts: 250
Joined: Fri Jun 01, 2012 12:20 am

Re: Window ListIconGadget With Owner Data (Very Fast)

Post by acreis »

Thanks mk-soft,

I was working in something similar one or two years ago, it was far from being functional, but I noticed my code could be more encapsulated by using SetWindowSubclass to manage all the subclassing of the listicon, so the 'user' doesn't need to use SetWindowCalback() and manage the notifications message inside the window callback.

Just a tip, I understant your code is in a state of art.

Thanks again
User avatar
mk-soft
Always Here
Always Here
Posts: 6515
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Window ListIconGadget With Owner Data (Very Fast)

Post by mk-soft »

Edit
acreis wrote: Tue Jan 13, 2026 10:34 am Thanks mk-soft,

I was working in something similar one or two years ago, it was far from being functional, but I noticed my code could be more encapsulated by using SetWindowSubclass to manage all the subclassing of the listicon, so the 'user' doesn't need to use SetWindowCalback() and manage the notifications message inside the window callback.

Just a tip, I understant your code is in a state of art.

Thanks again
I already had the idea.
Thus, they also created a WindowSubClass for the parent events. But not work at time :cry:
Go back to v1.08.1
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
Andre
PureBasic Team
PureBasic Team
Posts: 2158
Joined: Fri Apr 25, 2003 6:14 pm
Location: Germany (Saxony, Deutscheinsiedel)
Contact:

Re: Window ListIconGadget With Owner Data (Very Fast)

Post by Andre »

Nice, thanks a lot for sharing! :D
Bye,
...André
(PureBasicTeam::Docs & Support - PureArea.net | Order:: PureBasic | PureVisionXP)
User avatar
mk-soft
Always Here
Always Here
Posts: 6515
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Window ListIconGadget With Owner Data (Very Fast)

Post by mk-soft »

Update v1.08.4
- Remove SetWindowCallback. Change to SetWindowSubClass
- Added FreeGadgetEx (Does not have to be used when closing the window)


Works now window sub class and we don't use a window callback ;)
Andre wrote: Tue Jan 13, 2026 9:25 pm Nice, thanks a lot for sharing! :D
Thanks for answering ;)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
mk-soft
Always Here
Always Here
Posts: 6515
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Window ListIconGadget With Owner Data (Very Fast)

Post by mk-soft »

Update v1.08.5
- Added CustomSortListIconGadgetEx

Example extended with custom sort and values with commas. ;)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
mk-soft
Always Here
Always Here
Posts: 6515
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Window ListIconGadget With Owner Data (Very Fast)

Post by mk-soft »

Update v1.08.7
- Remove UpdateListIconGadget.
- Added EventType Refresh
- Change RemoveGadgetItem

The update of the ListIconGadgetEx is now done automatically internally via the EventType #PB_EventType_Refresh.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
mk-soft
Always Here
Always Here
Posts: 6515
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Window ListIconGadget With Owner Data (Very Fast)

Post by mk-soft »

Update v1.08.8
- Bugfix RemoveGadgetColumn
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
mk-soft
Always Here
Always Here
Posts: 6515
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Window ListIconGadget With Owner Data (Very Fast)

Post by mk-soft »

Update v1.08.10
- Bugfix ListIconGadget with #PB_Any. Intern Bug from WM_NOTIFY invalid NMHDR\idFrom
- Update example
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply