Page 14 of 23

Re: PureBasic 6.10 beta 4 is out !

Posted: Fri Feb 02, 2024 6:39 pm
by gamparono
Quin wrote: Sun Jan 21, 2024 6:21 pm What kind of increase are we talking here? It may be completely worth it, especially because we could possibly get MP3 like discussed above.
What about the size jump in beta from 5KB to 140KB on empty .exe? library size is not much to that :)

Re: PureBasic 6.10 beta 4 is out !

Posted: Fri Feb 02, 2024 9:57 pm
by mk-soft
gamparono wrote: Fri Feb 02, 2024 6:39 pm
Quin wrote: Sun Jan 21, 2024 6:21 pm What kind of increase are we talking here? It may be completely worth it, especially because we could possibly get MP3 like discussed above.
What about the size jump in beta from 5KB to 140KB on empty .exe? library size is not much to that :)
See PureBasic Team Blog: https://www.purebasic.fr/blog/?p=538

Re: PureBasic 6.10 beta 4 is out !

Posted: Sat Feb 03, 2024 6:12 pm
by useful

Re: PureBasic 6.10 beta 5 is out !

Posted: Sun Feb 04, 2024 9:37 am
by Fred
2024-02-04: beta 5 is ready to test. It mainly brings a new DPI Aware mode for OS X (the IDE tabs on OS X shouldn't be blurry anymore on retina display, yeah !) and the usual bugs fixes. Don't hesitate to test it and we are close to the final release.

Code: Select all

Added: DPI-Aware support for OS X
Added: GetGadgetFont(#PB_Default) support on OSX to get the system gadget font 
Added: Documentation is up-to-date now for all new commands (english only)

Re: PureBasic 6.10 beta 5 is out !

Posted: Sun Feb 04, 2024 10:00 am
by Psychophanta
1ST to say thanks! :) 8) :!:

Re: PureBasic 6.10 beta 5 is out !

Posted: Sun Feb 04, 2024 4:48 pm
by Lebostein
Can you fix this please before the final comes? I hope this is a small, but important one with regard to the new functions:
https://www.purebasic.fr/english/viewtopic.php?t=83272
Thanks

Re: PureBasic 6.10 beta 5 is out !

Posted: Mon Feb 05, 2024 5:35 am
by jacdelad
I don't use MacOS, but DPI awareness seems like a great progress. :D

Re: PureBasic 6.10 beta 5 is out !

Posted: Wed Feb 07, 2024 11:20 am
by CalamityJames
For me, one of the best improvements for this version is the introduction of the WebViewGadget. Up to now I have been using the WebGadget and the excellent CoMate plus to automate the logging in to some websites by entering text and "pressing" buttons. This has become less effective as the WebGadget (based on Internet Explorer) fails to show some websites correctly. The WebGadget with the #PB_Web_Edge flag does show them correctly but then Comate Plus can't be used.

The WebViewGadget has the ability to execute javascript (with WebViewExecuteScript()) and I thought this would solve the problem of automatic logging-in but this gadget does not have the events associated with the WebGadget such as #PB_EventType_DownloadEnd. You can't run a script until the page is loaded, and building in a timed delay is not satisfactory.

I therefore urge the team either to expose the WebViewGadget to the same events as the WebGadget or to allow the WebGadget to execute scripts.

Re: PureBasic 6.10 beta 5 is out !

Posted: Wed Feb 07, 2024 11:40 am
by pamen
CalamityJames wrote: Wed Feb 07, 2024 11:20 am I therefore urge the team either to expose the WebViewGadget to the same events as the WebGadget or to allow the WebGadget to execute scripts.
There is a thread about it already - I face the same issues plus no possibility to get a return value from a JS function.
https://www.purebasic.fr/english/viewto ... 12#p615312

The problem being in general - great new browsers support, but without more complete interface we will all go back to the same "tricks" for each OS and lots of (possibly buggy) includes.
Fred said he will think about it, which is a very good thing.

Re: PureBasic 6.10 beta 6 is out !

Posted: Sat Feb 10, 2024 10:56 am
by Fred
2024-02-10: beta 6 is out ! Mostly a bug fix release, with some addition for the WebViewGadget() and WebGadget() on Windows

Code: Select all

Added: #PB_WebView_ICoreController attribute support WebGaget() and WebViewGadget()
Added: All ICoreWebView2 interfaces and constants as residents, thanks to Justin (Windows)
Bugfixes for this version:This list was created automatically. All updated bug threads from the date of the last final version have been determined.

A small example to get the interface on Windows for WebViewGadget()

Code: Select all

OpenWindow(0, 100, 100, 400, 400, "Hello", #PB_Window_SystemMenu)

WebViewGadget(0, 0, 0, 400, 400, #PB_WebView_Debug)

; Get the ICoreController interface 
;
Controller.ICoreWebView2Controller = GetGadgetAttribute(0, #PB_WebView_ICoreController)

; Get the ICoreWebView2 interface 
;
Controller\get_CoreWebView2(@Core.ICoreWebView2)
Core\Navigate("https://www.purebasic.com")

DataSection
	IID_ICoreWebView2Controller2:
	Data.l $C979903E
	Data.w $D4CA, $4228
	Data.b $92, $EB, $47, $EE, $3F, $A9, $6E, $AB
EndDataSection

If Controller\QueryInterface(?IID_ICoreWebView2Controller2, @Controller2.ICoreWebView2Controller2) = #S_OK
  Debug "ICoreWebView2Controller2 found: " + Controller2
Else
  Debug "Can't query ICoreWebView2Controller2"
EndIf

Repeat 
  Event = WaitWindowEvent()
Until Event = #PB_Event_CloseWindow

Re: PureBasic 6.10 beta 6 is out !

Posted: Sat Feb 10, 2024 11:19 am
by Kiffi
Fred wrote: Sat Feb 10, 2024 10:56 am

Code: Select all

Added: #PB_WebView_ICoreController attribute support WebGaget() and WebViewGadget()
Added: All ICoreWebView2 interfaces and constants as residents, thanks to Justin (Windows)
Thanks a lot! Image

Re: PureBasic 6.10 beta 6 is out !

Posted: Sat Feb 10, 2024 2:37 pm
by Psychophanta
Many THANKS!

Re: PureBasic 6.10 beta 6 is out !

Posted: Sat Feb 10, 2024 2:53 pm
by Quin
Thanks so much Fred! Especially for the WASAPI fix!

Re: PureBasic 6.10 beta 6 is out !

Posted: Sat Feb 10, 2024 5:18 pm
by Lebostein
:D :D :D
For me PB 6.10 is the best update since years! Thanks!

Re: PureBasic 6.10 beta 6 is out !

Posted: Sun Feb 11, 2024 9:11 am
by Psychophanta
Lebostein wrote: Sat Feb 10, 2024 5:18 pm :D :D :D
For me PB 6.10 is the best update since years! Thanks!
Perhaps the ONLY bad new is that it is not valid for WinXP :cry:
But we already can use the previous 5.xx or 6.0x versions :D
So then: ¡PERFECT!