Page 4 of 5

Re: ListIconGadget was working fine now is blank/empty

Posted: Tue Jul 23, 2024 2:56 am
by Randy Walker
I suspect this may have something to do with it not working:

Code: Select all

Updating Registry entries...
ERROR: Access is denied.
ERROR: Access is denied.
ERROR: Access is denied.
ERROR: Access is denied.

Error installing WinHlp32

Re: ListIconGadget was working fine now is blank/empty

Posted: Tue Jul 23, 2024 3:46 am
by BarryG
You need to run the BAT file as admin. Worked for me with Win 11 Pro.

Re: ListIconGadget was working fine now is blank/empty

Posted: Tue Jul 23, 2024 5:47 am
by Randy Walker
Ok, ran as administrator again as I did the first time but F1 on i command still does nothing.
The post I gave above with all the Access denied errors was I think without admin.
I copied the reg entries from the bat file and put them into a separate reg file to try to see what the problem was. The reg file failed too.

My reg file:

Code: Select all

reg add "HKLM\SOFTWARE\Microsoft\WinHelp" /v "AllowProgrammaticMacros" /t REG_DWORD /d "0x00000001" /f

reg add "HKLM\SOFTWARE\Microsoft\WinHelp" /v "AllowIntranetAccess" /t REG_DWORD /d "0x00000001" /f

reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\WinHelp" /v "AllowProgrammaticMacros" /t REG_DWORD /d "0x00000001" /f

reg add "HKLM\SOFTWARE\Wow6432Node\Microsoft\WinHelp" /v "AllowIntranetAccess" /t REG_DWORD /d "0x00000001" /f

Re: ListIconGadget was working fine now is blank/empty

Posted: Tue Jul 23, 2024 6:14 am
by BarryG
Don't know, sorry. I didn't create the info, I just zipped it into an archive that I use when needed. Maybe try it with your AV disabled?

Re: ListIconGadget was working fine now is blank/empty

Posted: Tue Jul 23, 2024 1:25 pm
by Axolotl
I was looking what the command in the bat file do by typing this in a console:

Code: Select all

reg add /?


You can open the RegEdit by press WIN + R and accept the User Account Control Message.
browse to the path from the bat (your post) and try to edit the keys by hand.
But this is with no warranty whatsoever.

BTW: On my registry ther is no WinHelp, maybe you need to create the key first, and than create the DWORD values .....
Keep in mind that this is an educated guess, not proofed

Code: Select all

reg add HKLM\SOFTWARE\Microsoft\WinHelp

I did the task on my system and deleted again. So RegEdit worked here. (Maybe a work around for you too?)

Re: ListIconGadget was working fine now is blank/empty

Posted: Tue Jul 23, 2024 7:06 pm
by AZJIO
Randy Walker
Try [IDE Tool] Help

It seems to me that you are solving two completely different issues in one topic, this will turn into trash

Re: ListIconGadget was working fine now is blank/empty

Posted: Tue Jul 23, 2024 9:20 pm
by Randy Walker
Hi Axolotl and thanks for reading and joining in the battle.
AZJIO wrote: Tue Jul 23, 2024 7:06 pm Randy Walker
Try [IDE Tool] Help

It seems to me that you are solving two completely different issues in one topic, this will turn into trash
AZJIO -- You are so right, so to help clean it up a bit I went back to my OP, edited the subject line to show solved and added a comment at the bottom of that OP to explain the final resolution. I hope that will help.
You said Try [IDE Tool] Help
That unfortunately looks like a major project to begin with and not sure it would actually replace the user friendly nature of the F1 on any API to get help for that API that I get in the JaPBe.

Re: ListIconGadget was working fine now is blank/empty

Posted: Tue Jul 23, 2024 10:23 pm
by Randy Walker
Axolotl wrote: Tue Jul 23, 2024 1:25 pm I was looking what the command in the bat file do by typing this in a console:

Code: Select all

reg add /?
Good clue!! I stupidly tried to convert the reg commands form the original bat file into a .reg file and that of course did not work. So following your lead I reverted my .reg file back into a bat file and added your suggested line to the top as follows:

Code: Select all

HKLM\SOFTWARE\Wow6432Node\Microsoft\WinHelp /f
I ran that bat as administrator, checked inside regedit and all the entries were there, but still didn't fix my F1 inside JaPBe, so not sure where to go from here. Maybe a reboot -- I will try that.

Re: ListIconGadget was working fine now is blank/empty

Posted: Fri Aug 23, 2024 8:14 pm
by Randy Walker
jacdelad wrote: Sun Jul 21, 2024 10:36 pm
Randy Walker wrote: Sun Jul 21, 2024 8:25 pm
jacdelad wrote: Sun Jul 21, 2024 11:02 am Windows 7 doesn't get updates for ages now. Good luck securing it...
It's not a matter of the OS (Operating System) Its a matter of the SO (Stupid Operator). I also fly with no antivirus Since forever and never any issue. Any SO will have issues even with the latest fully updated OS.
Security experts irritate the hell out of me with their ignorant comments about things they really don't understand.

I do use double firewall plus VPN to help insure true security.

Re: ListIconGadget was working fine now is blank/empty

Posted: Fri Aug 23, 2024 8:25 pm
by Randy Walker
BarryG wrote: Mon Jul 22, 2024 6:47 am
AZJIO wrote: Mon Jul 22, 2024 6:31 amDo a search for ".l" in your code, what's the problem?
See my post a little bit up. You can't just remove all ".l" to make everything work. I once thought that way, until I was corrected.
Like a true dummy I tried a blind search and replace, changing all .l with .i and ended up corrupting critical log files when I ran my code. (".LOG" <> ".iOG") Duh!!
Uh, but thanks for the suggestion :evil:

Re: ListIconGadget was working fine now is blank/empty [SOLVED -- NOT REALLY]

Posted: Sat Mar 15, 2025 12:30 am
by Randy Walker
I'm stuck. I can't move forward with any new features/improvements until I can get this listbox working again. Sorry I cannot share the code but maybe you can offer some ideas?

Ok, So here are a couple window grabs. First one shows the proper listing of the main ListIconGadget, as run from a very old compile on another machine:
Image

And what it looks like now in my latest compile. The listiconGadget is blank (mostly). looking closely I can see faint lines going across the list box corresponding to lines that should be separating record lines.
Image

Any ideas what could cause the ListIconGadget to be blank like that? I have 2 graphic adapters and I think we can rule that out because the list box is empty under either adapter. This is on a Windows 11 Pro machine using PB versions 4.50 32bit, and 64 bit 5.62 , 6.12 , 6.20
fresh compile or old compile render same anomaly.

Re: ListIconGadget was working fine now is blank/empty

Posted: Sat Mar 15, 2025 1:28 am
by ChrisR
Randy Walker wrote: Tue Jul 23, 2024 5:47 am My reg file:

Code: Select all

reg add "HKLM\SOFTWARE\Microsoft\WinHelp" /v "AllowProgrammaticMacros" /t REG_DWORD /d "0x00000001" /f
.....
To avoid the need for administrator rights, You could use HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE

Code: Select all

reg add "HKCU\SOFTWARE\Microsoft\WinHelp" /v "AllowProgrammaticMacros" /t REG_DWORD /d "0x00000001" /f
Or in PB (/k = /c + keep the window open at the cmd prompt, to view success or error messages)

Code: Select all

RunProgram(GetEnvironmentVariable("comspec"), "/k reg add HKCU\SOFTWARE\Microsoft\WinHelp /v AllowProgrammaticMacros /t REG_DWORD /d 0x00000001 /f", "", #PB_Program_Wait)

Re: ListIconGadget was working fine now is blank/empty [SOLVED -- NOT REALLY]

Posted: Sat Mar 15, 2025 2:42 am
by Randy Walker
Hi ChrisR,
I'm not sure what all that is supposed to do for me.

Re: ListIconGadget was working fine now is blank/empty [SOLVED -- NOT REALLY]

Posted: Sat Mar 15, 2025 10:27 am
by Marc56us
Hi,

I haven't read the 3-page topic in detail, but here's what I see here
We don't see header text in your Listicongadget ? DPI error ?

Some tests:
- Try the first sample of Listicongadget in help: if this is work, there is someting in your code.
- Use debug tools to see if your gadget if filled with data when run

Re: ListIconGadget was working fine now is blank/empty [SOLVED -- NOT REALLY]

Posted: Sat Mar 15, 2025 11:10 am
by Randy Walker
Marc56us wrote: Sat Mar 15, 2025 10:27 am Hi,

I haven't read the 3-page topic in detail, but here's what I see here
We don't see header text in your Listicongadget ? DPI error ?

Some tests:
- Try the first sample of Listicongadget in help: if this is work, there is someting in your code.
- Use debug tools to see if your gadget if filled with data when run
Thanks for reviewing my problem and for the suggestions Marc56us. Sample code from help worked fine -- my first step in troubleshooting. Debug has been no help so far so my next idea is to try to export data from the list box to a file.