Page 1 of 5

[SOLVED] ListIconGadget was working fine now is blank/empty

Posted: Fri Jul 19, 2024 11:29 pm
by Randy Walker
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.

Re: ListIconGadget was working fine now is blank/empty

Posted: Sat Jul 20, 2024 12:10 am
by jacdelad
Ah, come on. Without a minimum code we can't even remotely help you...

Re: ListIconGadget was working fine now is blank/empty

Posted: Sat Jul 20, 2024 12:39 am
by Randy Walker
jacdelad wrote: Sat Jul 20, 2024 12:10 am Ah, come on. Without a minimum code we can't even remotely help you...
@jacdelad
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?

Re: ListIconGadget was working fine now is blank/empty

Posted: Sat Jul 20, 2024 6:01 am
by Randy Walker
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.

Re: ListIconGadget was working fine now is blank/empty

Posted: Sat Jul 20, 2024 11:11 am
by mk-soft
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.

Re: ListIconGadget was working fine now is blank/empty

Posted: Sat Jul 20, 2024 11:36 am
by jacdelad
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.

Re: ListIconGadget was working fine now is blank/empty

Posted: Sat Jul 20, 2024 10:10 pm
by Randy Walker
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.
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).

Re: ListIconGadget was working fine now is blank/empty

Posted: Sat Jul 20, 2024 10:15 pm
by RASHAD
Are you using Normal ListIcon or Virtual ListIcon ?
Just guessing :
It may be a Global var issue

Re: ListIconGadget was working fine now is blank/empty

Posted: Sat Jul 20, 2024 10:25 pm
by Randy Walker
Oh!! hello Rashad :)
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)
Scroll right---> It's a long line.

Re: ListIconGadget was working fine now is blank/empty

Posted: Sat Jul 20, 2024 10:44 pm
by RASHAD
Hi Randy
If you are using now PB v6.xx it maybe the problem of using long while you should use integer
Check

Re: ListIconGadget was working fine now is blank/empty

Posted: Sat Jul 20, 2024 10:47 pm
by jacdelad
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
This seems to become some kind of running gag...

Re: ListIconGadget was working fine now is blank/empty

Posted: Sun Jul 21, 2024 1:17 am
by Randy Walker
PB v6.xxx was over my head so I am still using v5.40 LTS

Re: ListIconGadget was working fine now is blank/empty

Posted: Sun Jul 21, 2024 1:21 am
by Randy Walker
jacdelad wrote: Sat Jul 20, 2024 10:47 pm
This seems to become some kind of running gag...
Gag???!! No gag about it. We play for real. :oops:

Re: ListIconGadget was working fine now is blank/empty

Posted: Sun Jul 21, 2024 3:33 am
by BarryG
jacdelad wrote: Sat Jul 20, 2024 10:47 pmThis seems to become some kind of running gag
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

Re: ListIconGadget was working fine now is blank/empty

Posted: Sun Jul 21, 2024 6:55 am
by Randy Walker
BarryG 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
Maybe that's why I gave up trying to use 6.xx
27000+ lines in my main program alone, was just way too much to troubleshoot.