Page 5 of 23
Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
Posted: Sat Dec 23, 2023 5:32 pm
by Lebostein
AZJIO wrote: Sat Dec 23, 2023 1:16 pm
Code: Select all
CreatePreferences(Filename$, #PB_Preference_NoBOM)
Select EventType()
Case #PB_EventType_ColumnClick
Debug "ColumnClick"
EndSelect
Fingerprint(*Buffer , Size , #PB_Cipher_HMAC, Bits)
You must have misunderstood me. The new constants are not defined at all under Mac OS. The compiler reports "syntax error"
Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
Posted: Sat Dec 23, 2023 8:03 pm
by jayand
I hate to appear stupid,:but everyone else here seems to know where to get this beta. Can anyone give me a pointer to the download?
Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
Posted: Sat Dec 23, 2023 8:07 pm
by NicTheQuick
jayand wrote: Sat Dec 23, 2023 8:03 pm
I hate to appear stupid,:but everyone else here seems to know where to get this beta. Can anyone give me a pointer to the download?
It's in your
User Account at purebasic.com. Where did you look for it?
Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
Posted: Sat Dec 23, 2023 8:13 pm
by jayand
Thanks. It seems I need new glasses. I looked there earlier, but failed to see the link.
Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
Posted: Sat Dec 23, 2023 8:44 pm
by User_Russian
I tested the code with WebViewGadget from the first post in Win 7, Win 8 and Win 10, and the window is always empty (gadget is not initialized).
Does anyone have this code working fine?
WebGadget when using a flag #PB_Web_Edge it is also not initialized.
Is this a bug?
Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
Posted: Sat Dec 23, 2023 8:49 pm
by Little John
User_Russian wrote: Sat Dec 23, 2023 8:44 pm
I tested the code with WebViewGadget from the first post in Win 7, Win 8 and Win 10, and the window is always empty (gadget is not initialized).
Does anyone have this code working fine?
It works well here on Windows 11. I can't test on any other Windows version.
Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
Posted: Sat Dec 23, 2023 9:01 pm
by skinkairewalker
User_Russian wrote: Sat Dec 23, 2023 8:44 pm
I tested the code with WebViewGadget from the first post in Win 7, Win 8 and Win 10, and the window is always empty (gadget is not initialized).
Does anyone have this code working fine?
WebGadget when using a flag #PB_Web_Edge it is also not initialized.
Is this a bug?
I just tested it on Windows 11 and
Windows 10 ( It took a few seconds of a white screen due to junky hardware, but it worked fine) .
both worked for me...
Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
Posted: Sat Dec 23, 2023 9:21 pm
by the.weavster
User_Russian wrote: Sat Dec 23, 2023 8:44 pm
I tested the code with WebViewGadget from the first post in Win 7, Win 8 and Win 10, and the window is always empty (gadget is not initialized).
Does anyone have this code working fine?
WebGadget when using a flag #PB_Web_Edge it is also not initialized.
Is this a bug?
Do you have the latest version of MS Edge browser ( chrome based ) installed? I'm not a Windows user but I think you need that to ensure you have WebView2 on your system.
Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
Posted: Sat Dec 23, 2023 9:38 pm
by User_Russian
I installed Edge browser, but WebViewGadget still doesn't work.
Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
Posted: Sat Dec 23, 2023 9:53 pm
by User_Russian
It turned out that need to install WebView2 Runtime
https://developer.microsoft.com/en-us/m ... /webview2/
This will make it difficult to distribute applications with WebViewGadget.
Runtime size 170 MB. It is more than .NET Framework.
Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
Posted: Sat Dec 23, 2023 10:40 pm
by Fred
Yes you need the runtime, it's available natively on all Windows 11, and should be available on all up to date Windows 10. If not you can distribute the evergreen runtime installer which is the recommended way to ship your app.
Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
Posted: Sun Dec 24, 2023 12:10 am
by User_Russian
In the executable file created in PB 6.10 I found the text
mscoree.dll CorExitProcess
Now the application depends on .NET Framework?

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
Posted: Sun Dec 24, 2023 4:44 am
by DayDreamer
DayDreamer wrote: Sat Dec 23, 2023 4:22 am
Great stuff. But I need a little assistance and think I've missed something: ListIconGadget - what flag values do I specify for column alignment?
I've answered my own question. I'm running on Mac M1 with Sonoma 14.2.1. The constants for 6.10 beta 1 are not defined. After a bit of skulduggery, I've found that if I declare the required constants in my own code, new functionality for alignment of columns in ListIconGadget works a treat.
Code: Select all
;
; PB specific - new with v6.1b, not yet formally declared on MacOS.
;
#PB_ListIcon_Left = 0
#PB_ListIcon_Right = 1
#PB_ListIcon_Center = 2
#PB_ListIcon_ColumnAlignment = 5
;
; Now use the SetGadgetItemAttribute function to set alignment for listicongadget where:
; First parameter listbox = gadget ID of listicongadget
; Second parameter is ignored, just pass in 0
; Third parameter is new constant #PB_ListIcon_ColumnAlignment, which is instruction for aligning column in listicongadget
; Fourth parameter is new constant value, a choice between #PB_ListIcon_Left, #PB_ListIcon_Right and #PB_ListIcon_Center
; Fifth parameter is index number of column in listicongadget, where column numbering starts at 0.
;
; In following example (commented out), shows setting the alignment for fifth column of listicongadget to be right aligned.
;
; SetGadgetItemAttribute(listicongadget, 0, #PB_ListIcon_ColumnAlignment, #PB_ListIcon_Right,4)
I hope this is found to be useful. I expect in newer code releases that the need to specifically declare these constants in your apps will be removed.
Cheers,
DayDreamer

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
Posted: Sun Dec 24, 2023 10:31 am
by RSBasic
Re: PureBasic 6.10 beta 1 - Xmas Release - is out !
Posted: Sun Dec 24, 2023 10:34 am
by Fred
User_Russian wrote: Sun Dec 24, 2023 12:10 am
In the executable file created in PB 6.10 I found the text
mscoree.dll CorExitProcess
Now the application depends on .NET Framework?
No. Use dependencies walker to see which dll is used.