[SOLVED] ListIconGadget was working fine now is blank/empty
-
- Addict
- Posts: 989
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
[SOLVED] ListIconGadget was working fine now is blank/empty
You can jump to the final solution here:
https://www.purebasic.fr/english/viewto ... 13#p637613
Please jump down to my last post: https://www.purebasic.fr/english/viewto ... 44#p637544
Sorry I cannot post my proprietary code here and do not believe it would help anyway. Here on my Asus Zenbook Win 11 Pro laptop I have a problem in my major project in the main ListIconGadget where it keeps coming up blank. I run the same program on 2 different Win 7 machines and the ListIconGadget is fully populated as it should be, so even if I were to share my code here, I expect you would also have no issues.
I expect what has happened is the ListIconGadget wrapper for the Windows Image Icon control API or more likely the API itself got broken. Does not matter if I try running any previous version of my main project, even years old -- they all come up blank in the ListIconGadget.
Anyone ever have a problem like this??? And figure it out??
THANKS for any help and thanks for reading.
[EDIT] Not the best solution. Read on if you like but the final solution was to revert to a Disk Image Restore.
https://www.purebasic.fr/english/viewto ... 13#p637613
Please jump down to my last post: https://www.purebasic.fr/english/viewto ... 44#p637544
Sorry I cannot post my proprietary code here and do not believe it would help anyway. Here on my Asus Zenbook Win 11 Pro laptop I have a problem in my major project in the main ListIconGadget where it keeps coming up blank. I run the same program on 2 different Win 7 machines and the ListIconGadget is fully populated as it should be, so even if I were to share my code here, I expect you would also have no issues.
I expect what has happened is the ListIconGadget wrapper for the Windows Image Icon control API or more likely the API itself got broken. Does not matter if I try running any previous version of my main project, even years old -- they all come up blank in the ListIconGadget.
Anyone ever have a problem like this??? And figure it out??
THANKS for any help and thanks for reading.
[EDIT] Not the best solution. Read on if you like but the final solution was to revert to a Disk Image Restore.
Last edited by Randy Walker on Sat Mar 15, 2025 11:37 pm, edited 5 times in total.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
Re: ListIconGadget was working fine now is blank/empty
Ah, come on. Without a minimum code we can't even remotely help you...
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
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
-
- Addict
- Posts: 989
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: ListIconGadget was working fine now is blank/empty
@jacdeladjacdelad wrote: Sat Jul 20, 2024 12:10 am Ah, come on. Without a minimum code we can't even remotely help you...
Thanks for reading. If you can't relate without code, you're not going to be able to relate. Pretty sure my windows API stuff is broken, but have no clue how to fix without doing the Windows 11 Reset, which I really do not want to do. Kinda like pulling out fingernails, you know?
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
-
- Addict
- Posts: 989
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: ListIconGadget was working fine now is blank/empty
I think (hope) I found my solution. Restore an Aomei disk image backup I created back in May of this year. Pretty sure (hopefully) the blank ListIconGadget issue occurred after that. Better than doing the dreaded Windows "Reset this PC" option that would be my last resort if image restore fails me.
BTW -- I've used the Aomei Backupper (standard) to migrate my 10" Asus from HDD to SDD and it turned out perfect so I am rather confident about doing an image restore here on my high price Asus Zenbook Duo Pro 15". Well worth the investment.
Aomei that is. Not so sure about the pricey Zenbook.
BTW -- I've used the Aomei Backupper (standard) to migrate my 10" Asus from HDD to SDD and it turned out perfect so I am rather confident about doing an image restore here on my high price Asus Zenbook Duo Pro 15". Well worth the investment.

- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
Re: ListIconGadget was working fine now is blank/empty
I think it's more likely that it's the Windows API you're using that works differently under Win 11.
Which API did you use? It will not be due to the PureBasic functions.
Which API did you use? It will not be due to the PureBasic functions.
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
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: ListIconGadget was working fine now is blank/empty
In theory the Windows APIs shouldn't work differently with Windows 11. I use a lot Windows APIs for LostIconGadgets and have no problems so far.
However, if you were able to restore a working backup, then you can maybe develop your code again until it doesn't work anymore. And circle the culprit.
However, if you were able to restore a working backup, then you can maybe develop your code again until it doesn't work anymore. And circle the culprit.
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
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
-
- Addict
- Posts: 989
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: ListIconGadget was working fine now is blank/empty
Well, problem with that theory is I didn't do any code modifications since my last disk image backup, And every archived copy of my compiled project also had the same empty ListIconGadget, so it's nothing I did in Purebasic to cause the issue. The problem was in the Windows OS, proven by the fact that the disk image restore fixed the whole problem. Case closed (more or less, still don't know what actually caused the problem or how to fix this problem in the broken OS).jacdelad wrote: Sat Jul 20, 2024 11:36 am However, if you were able to restore a working backup, then you can maybe develop your code again until it doesn't work anymore. And circle the culprit.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
Re: ListIconGadget was working fine now is blank/empty
Are you using Normal ListIcon or Virtual ListIcon ?
Just guessing :
It may be a Global var issue
Just guessing :
It may be a Global var issue
Egypt my love
-
- Addict
- Posts: 989
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: ListIconGadget was working fine now is blank/empty
Oh!! hello Rashad 
Good to see you again!
Thanks for reading. I used the Purebasic keyword as follows:
Scroll right---> It's a long line.

Good to see you again!
Thanks for reading. I used the Purebasic keyword as follows:
Code: Select all
CustList0.l = ListIconGadget(#CustList_0, 5, 33, lastLook_wW.l - 7 - SM_CXtotal, lastLook_wH.l - 344 - SM_CYtotal, " Parent Co.", Col0_0, #PB_ListIcon_FullRowSelect | #PB_ListIcon_AlwaysShowSelection | #PB_ListIcon_GridLines | #PB_ListIcon_MultiSelect)
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
Re: ListIconGadget was working fine now is blank/empty
Hi Randy
If you are using now PB v6.xx it maybe the problem of using long while you should use integer
Check
If you are using now PB v6.xx it maybe the problem of using long while you should use integer
Check
Egypt my love
Re: ListIconGadget was working fine now is blank/empty
This seems to become some kind of running gag...RASHAD wrote: Sat Jul 20, 2024 10:44 pm Hi Randy
If you are using now PB v6.xx it maybe the problem of using long while you should use integer
Check
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
PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
-
- Addict
- Posts: 989
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: ListIconGadget was working fine now is blank/empty
PB v6.xxx was over my head so I am still using v5.40 LTS
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
-
- Addict
- Posts: 989
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: ListIconGadget was working fine now is blank/empty
Gag???!! No gag about it. We play for real.

- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.
Re: ListIconGadget was working fine now is blank/empty
No, it's a real issue. Lots of items from pre-6.10 need updating from ".l" to ".i" type.
Here's my example from today -> https://www.purebasic.fr/english/viewto ... 96#p624596
-
- Addict
- Posts: 989
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Re: ListIconGadget was working fine now is blank/empty
Maybe that's why I gave up trying to use 6.xxBarryG wrote: Sun Jul 21, 2024 3:33 am No, it's a real issue. Lots of items from pre-6.10 need updating from ".l" to ".i" type.
Here's my example from today -> https://www.purebasic.fr/english/viewto ... 96#p624596
27000+ lines in my main program alone, was just way too much to troubleshoot.
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.