PureBasic 6.10 LTS is out !

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

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

Post by Psychophanta »

Uh! Lot of new stuff ready to test!
Thanks to all an merry happy days! :idea:
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
jacdelad
Addict
Addict
Posts: 1991
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

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

Post by jacdelad »

I don't care about Christmas. Now I do. Thanks Fred and team!
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
User avatar
thyphoon
Enthusiast
Enthusiast
Posts: 345
Joined: Sat Dec 25, 2004 2:37 pm

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

Post by thyphoon »

Fantastic 🥳Best christmas present 🥰🥰🥰🥰 Thanks Fred and The Pb Team !
Marc56us
Addict
Addict
Posts: 1600
Joined: Sat Feb 08, 2014 3:26 pm

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

Post by Marc56us »

skinkairewalker wrote: Sat Dec 23, 2023 9:01 pm
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...
Hi,

At home, WebView2 works well (and is used by several programs, including e-mail clients). It works with the WebViewGadget, but not as a flag for the WebGadget.
Why ?
Below is a code with my misuse of the WebViewGadget (but which works) and the correct use of the WebGadget but which doesn't work.
Tested on Windows 10 and Windows 11.
Do you have the same results?

Code: Select all

#URL = "https://www.purebasic.fr"

; Tests on Windows 10 and Windows 11

; Bad usage, but works (I will not use this, just to test WebView2)
OpenWindow   (0,  500,  0, 1000, 300, "WebViewGadget - Bad usage, but works! :o)", #PB_Window_SystemMenu) 
WebViewGadget(0, 10, 10,  980, 280)
*Buf = ReceiveHTTPMemory(#URL)
SetGadgetText(0, PeekS(*Buf, MemorySize(*Buf), #PB_UTF8|#PB_ByteLength))

; Good, but does not work
OpenWindow(1, 500, 350, 1000, 300,"WebGadget with #PB_Web_Edge - Blank page even after minutes... :-(", #PB_Window_SystemMenu)
WebGadget(1, 10, 10, 980, 280, #URL, #PB_Web_Edge)

Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
User avatar
useful
Enthusiast
Enthusiast
Posts: 402
Joined: Fri Jul 19, 2013 7:36 am

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

Post by useful »

Code: Select all

WebGadget(1, 10, 10, 980, 280, "", #PB_Web_Edge)
SetGadgetText(1, #URL)
It was experimentally obtained that it would work like this.
But it still needs clarification.
Dawn will come inevitably.
Marc56us
Addict
Addict
Posts: 1600
Joined: Sat Feb 08, 2014 3:26 pm

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

Post by Marc56us »

useful wrote: Sun Dec 24, 2023 4:16 pm

Code: Select all

WebGadget(1, 10, 10, 980, 280, "", #PB_Web_Edge)
SetGadgetText(1, #URL)
It was experimentally obtained that it would work like this.
But it still needs clarification.
Thanks Useful! this Works :P

:?: But @Team, is it the right way to use the new flag ?

My tests:

Code: Select all

#URL = "https://www.purebasic.fr"

; Tests on Windows 10 and Windows 11

; Bad usage, but works (I will not use this, just to test WebView2)
OpenWindow   (0,  500,  0, 1000, 300, "WebViewGadget - Bad usage, but works! :o)", #PB_Window_SystemMenu) 
WebViewGadget(0, 10, 10, 980, 280)
*Buf = ReceiveHTTPMemory(#URL)
SetGadgetText(0, PeekS(*Buf, MemorySize(*Buf), #PB_UTF8|#PB_ByteLength))

; Good, but does not work
OpenWindow(1, 500, 350, 1000, 300,"WebGadget without #PB_Web_Edge - OK ", #PB_Window_SystemMenu)
WebGadget(1, 10, 10, 980, 280, #URL)

; Good, but does not work
OpenWindow(2, 500, 700, 1000, 300,"WebGadget with #PB_Web_Edge - Blank page even after minutes... :-(", #PB_Window_SystemMenu)
WebGadget(2, 10, 10, 980, 280, #URL, #PB_Web_Edge)

; Good, but strange usage (thanks useful)
OpenWindow(3, 500, 1050, 1000, 300,"WebGadget with #PB_Web_Edge and then SetGadgetText - Works but is it the way ?", #PB_Window_SystemMenu)
WebGadget(3, 10, 10, 980, 280, "", #PB_Web_Edge)
SetGadgetText(3, #URL)

Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
HanPBF
Enthusiast
Enthusiast
Posts: 570
Joined: Fri Feb 19, 2010 3:42 am

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

Post by HanPBF »

Meanwhile...

Code: Select all

SetGadgetText(4, ~"<script>window.location='" + #URL + "';</script>")
User avatar
skywalk
Addict
Addict
Posts: 4210
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

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

Post by skywalk »

I just noticed support for RaspberryPi ARM32 :shock:
Was this just 6.10 or from an earlier version?
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
Wolf
Enthusiast
Enthusiast
Posts: 232
Joined: Sat Apr 03, 2004 12:00 pm
Location: S.T

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

Post by Wolf »

Thank you sooo much Fred & Freak 4 Xmas gift :D
User avatar
Sicro
Enthusiast
Enthusiast
Posts: 559
Joined: Wed Jun 25, 2014 5:25 pm
Location: Germany
Contact:

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

Post by Sicro »

Many thanks for the great new release. 8)

Merry Christmas to you all. :D
Image
Why OpenSource should have a license :: PB-CodeArchiv-Rebirth :: Pleasant-Dark (syntax color scheme) :: RegEx-Engine (compiles RegExes to NFA/DFA)
Manjaro Xfce x64 (Main system) :: Windows 10 Home (VirtualBox) :: Newest PureBasic version
User avatar
mk-soft
Always Here
Always Here
Posts: 6202
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

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

Post by mk-soft »

skywalk wrote: Sun Dec 24, 2023 7:03 pm I just noticed support for RaspberryPi ARM32 :shock:
Was this just 6.10 or from an earlier version?
Available since version v6.0 for Arm32 and Arm64. But does not only run on Raspberry.
You can also use the Arm64 on MacOS M1/M2 with VM Linux for ARM or other linux arm os.

At least Linux Debian 12 (bookworm) is required for v6.10.
The version v6.0x unfortunately does not run under Arm32 at the moment, because the BindEvent functions no longer work under Linux Debian 11 (bullseye) with the last update, but under Arm64 with Linux Dedian 11 (bullseye).

I hope that there will be an update for PB v6.04 for bullseye (Arm32).
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
pamen
Enthusiast
Enthusiast
Posts: 193
Joined: Sat Dec 31, 2022 12:24 pm
Location: Cyprus
Contact:

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

Post by pamen »

skinkairewalker wrote: Sat Dec 23, 2023 9:01 pm
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...
I also cannot get WebGadget with #PB_Web_Edge to work and create a Gadget (isgadget() returns correctly and ID but window does not exists)
Windows 11 with up to date WebView2 distribution: nothing shows
Windows 10 with WebView 2: Nothing
Earlier windows version (Vista, Windows 7, Windows 8) - it should obviously show IE, if WebView2 is not available but it does not.
Also it would be great to know what Browser is running to conditionally use older functions for Javascript, CSS capabilities and key processing

Checking the window I get "PureWebView" window class with CS_REDRAW and HS_REDRAW, but no browser.
I thought it should be a different class - not WebView But Somehting Like PureWebGadget ?
S.T.V.B.E.E.V.
pamen
Enthusiast
Enthusiast
Posts: 193
Joined: Sat Dec 31, 2022 12:24 pm
Location: Cyprus
Contact:

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

Post by pamen »

More.
1. In a simple project WebGadget with webView2 works (with all the issues with setting URL)
But in a complex project with 100 files and 20+ windows - I do not get any WebView - only host window class.
This is not random, I commented out all code doing any tweaks to IE, so the WebGadget is just created, nothing else - and blank, no browser client in the host "PureWebView".

2. File URLs are not accepted for whatever reason at all, see this example, replace filename with you valid html file (Internet settings should allow local files, and this should be default for apps):

Code: Select all

OpenWindow(3, 100, 100, 1000, 500,"WebGadget with #PB_Web_Edge - works only in a simple case", #PB_Window_SystemMenu)
Panel_0 = PanelGadget(#PB_Any, 0, 0, 900, 450)
AddGadgetItem(Panel_0, -1, "HTML")
webview = WebGadget(#PB_Any, 10, 10, 980, 280, "", #PB_Web_Edge) ; only works in simple app with single file, in a project with 20 forms - not working
AddGadgetItem(Panel_0, -1, "Another")
webview2 = WebGadget(#PB_Any, 10, 10, 980, 280, "", #PB_Web_Edge)

fileurl.s = "file://e:\PureBasicProjects\happyHour.html"
fileurl = ReplaceString(fileurl, "\", "/") ; should not be necessary with IE or WebView!
fileurl = URLEncoder(fileurl, #PB_UTF8) ; should not be necessary on Windows, only some MacOS versions
CloseGadgetList()
SetGadgetText(webview, "https://purebasic.com") ; yeah, works, unless specified in gadget creation
SetGadgetText(webview2, fileurl) ; never works, works on Edge and other WebView2 based apps though fine
Quit= 0 
Repeat 
  event = WaitWindowEvent() 
  If Event
    If Event =  #PB_Event_CloseWindow
      Quit = 1
    EndIf
  Else
    Delay(10)
  EndIf
Until Quit
S.T.V.B.E.E.V.
User avatar
jacdelad
Addict
Addict
Posts: 1991
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

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

Post by jacdelad »

Don't know if this was already cleared up: Are the new dates compatible with the old ones? If not, this would mean serious for all already stored dates.
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
Little John
Addict
Addict
Posts: 4775
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 »

jacdelad wrote: Wed Dec 27, 2023 10:08 am Are the new dates compatible with the old ones?
Yes, they are. See freak's message here
https://www.purebasic.fr/english/viewto ... 32#p613332
Post Reply