PureBasic 6.10 LTS is out !

Developed or developing a new product in PureBasic? Tell the world about it.
Lebostein
Addict
Addict
Posts: 826
Joined: Fri Jun 11, 2004 7:07 am

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post 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"
jayand
User
User
Posts: 22
Joined: Sat Mar 04, 2023 12:55 pm

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post 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?
User avatar
NicTheQuick
Addict
Addict
Posts: 1504
Joined: Sun Jun 22, 2003 7:43 pm
Location: Germany, Saarbrücken
Contact:

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post 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?
The english grammar is freeware, you can use it freely - But it's not Open Source, i.e. you can not change it or publish it in altered way.
jayand
User
User
Posts: 22
Joined: Sat Mar 04, 2023 12:55 pm

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by jayand »

Thanks. It seems I need new glasses. I looked there earlier, but failed to see the link.
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post 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?
Little John
Addict
Addict
Posts: 4777
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post 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.
User avatar
skinkairewalker
Enthusiast
Enthusiast
Posts: 772
Joined: Fri Dec 04, 2015 9:26 pm

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post 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...
User avatar
the.weavster
Addict
Addict
Posts: 1576
Joined: Thu Jul 03, 2003 6:53 pm
Location: England

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post 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.
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by User_Russian »

I installed Edge browser, but WebViewGadget still doesn't work.
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post 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.
Fred
Administrator
Administrator
Posts: 18161
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post 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.
User_Russian
Addict
Addict
Posts: 1518
Joined: Wed Nov 12, 2008 5:01 pm
Location: Russia

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post 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? :shock: :?
DayDreamer
User
User
Posts: 29
Joined: Thu Aug 03, 2023 5:44 pm
Location: Off Planet

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post 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
8)
User avatar
RSBasic
Moderator
Moderator
Posts: 1228
Joined: Thu Dec 31, 2009 11:05 pm
Location: Gernsbach (Germany)
Contact:

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post by RSBasic »

Thank you very much for this great update. :!: :!: :!:
Image
Image
Fred
Administrator
Administrator
Posts: 18161
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 6.10 beta 1 - Xmas Release - is out !

Post 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? :shock: :?
No. Use dependencies walker to see which dll is used.
Post Reply