Page 5 of 5
Re: ObjectColor (Dark Mode)
Posted: Sat Jan 28, 2023 2:37 am
by ChrisR
BarryG wrote: Sat Jan 28, 2023 2:07 am
Does this mean I can use it on windows that are created on-the-fly now? Like for my app where the number of windows is indeterminate and are opened/closed during runtime of my app?
Yes it should work now for windows created on-the-fly.
Once the new Window is created with all its Gadgets, just call SetObjColor() again.
When calling SetObjColor(), the enumeration (PB_Object_Enumerate) is always done now and the new Window and new Gadgets are written in the map. Then put in hierarchy with the backgound colors.
When a window is closed, the window and its child gadgets are removed from the map and the brushes are also released.
Just for info, in case, I won't be home the next 3 days.
Re: ObjectColor (Dark Mode)
Posted: Sat Jan 28, 2023 2:47 am
by BarryG
ChrisR wrote: Sat Jan 28, 2023 2:37 amJust for info, in case, I won't be home the next 3 days.
LOL, I understand what you're getting at. I won't download/test it for a while anyway, as I have other priorities right now. Just wanted to confirm it does what I think you said, and now I know. Noted for future implementation, and many thanks for adding this new way of doing it. Appreciate it!
Re: ObjectColor (Dark Mode)
Posted: Mon Jan 30, 2023 1:15 am
by ShadowStorm
Hi,
Ah yes not bad at all, very very good, thank you very much ChrisR !

Re: ObjectColor (Dark Mode)
Posted: Tue Jun 20, 2023 8:29 am
by firace
Excellent work!
I've noticed a coloring issue with the ListIconGadget though, when resizing columns (or if the listicon is simply wider than the column set)
