Page 1 of 1

Enhancing TreeGadget-capabilities

Posted: Fri Sep 09, 2022 11:16 pm
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.

Re: Enhancing TreeGadget-capabilities

Posted: Sat Sep 10, 2022 5:34 pm
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.

Re: Enhancing TreeGadget-capabilities

Posted: Sat Sep 10, 2022 5:57 pm
by jacdelad
Aye, great, thanks. Unfortunately I only can contribute windows stuff...