Enhancing TreeGadget-capabilities

Everything else that doesn't fall into one of the other PB categories.
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Enhancing TreeGadget-capabilities

Post by jacdelad »

I recently started using TreeGadgets a bit more. Since I know how to use Windows APIs, I found a lot of useful APIs. They usually use the handle to the items there (I can get it with GadgetItemID()), but is there an API or something that I can use to get the position of the item, when I have the ID?

Also, creating a module to make these functions easily accessible seems like a good idea (ListIconGadgets already have a lot of code floating around here). I could only do this for Windows, is this possible for Linux and MacOS? I guess the TreeGadgets there have comparable capabilities.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
User avatar
Shardik
Addict
Addict
Posts: 2060
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Enhancing TreeGadget-capabilities

Post by Shardik »

jacdelad wrote: Fri Sep 09, 2022 11:16 pm I could only do this for Windows, is this possible for Linux and MacOS? I guess the TreeGadgets there have comparable capabilities.
I maintain a list of links for cross-platform API code here. For the ListIconGadget there are currently 12 links listed. If you or someone else finds additional examples in the forum, please inform me about them, so I can add them.
User avatar
jacdelad
Addict
Addict
Posts: 2010
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: Enhancing TreeGadget-capabilities

Post by jacdelad »

Aye, great, thanks. Unfortunately I only can contribute windows stuff...
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Post Reply