PureBasic 6.10 LTS is out !

Developed or developing a new product in PureBasic? Tell the world about it.
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 »

Ah thanks. Good news.
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
Axolotl
Enthusiast
Enthusiast
Posts: 798
Joined: Wed Dec 31, 2008 3:36 pm

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

Post by Axolotl »

Question about -> Added: Parent window support to all requesters

What are the benefits of this extension?
-> make a specific window the parent instead of the window with the input focus.

Because I thought that the extension would center the requester on the parent window and not always display it in the middle of the screen.

If it is being worked on now anyway, perhaps an additional flag #PB_MessageRequester_WindowCentered similar to #PB_Window_WindowCentered could be added?

Anyway, some topics related to MessageRequester (mostly the positioning)
Re: [Implemented] Improve the input requester
MessageRequester Bug (maybe another reason)
Path Requester a simple way to control X Y?
Set Requester Position ...
Additional flag for MessageRequester to center requester on app window
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

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

Post by AZJIO »

Axolotl wrote: Wed Dec 27, 2023 3:38 pm What are the benefits of this extension?
I previously used AutoIt3 and the parent window descriptor parameter was always there. It was unusual for me when the message is a separate equivalent window. I am used to the message blocking access to the parent window until it is closed. If you do not need a lock, then do not specify the parent window.
Closing the parent window should close the child windows.
Axolotl
Enthusiast
Enthusiast
Posts: 798
Joined: Wed Dec 31, 2008 3:36 pm

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

Post by Axolotl »

I am very sure that requester windows have always blocked the other application windows.
I don't want to speculate any further, so I guess I'll have to wait for the help doc.
And, to reiterate, the positioning of requesters was the most frequently mentioned request (according to my research.)
Just because it worked doesn't mean it works.
PureBasic 6.04 (x86) and <latest stable version and current alpha/beta> (x64) on Windows 11 Home. Now started with Linux (VM: Ubuntu 22.04).
AZJIO
Addict
Addict
Posts: 2141
Joined: Sun May 14, 2017 1:48 am

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

Post by AZJIO »

If I created a window with the program settings, it should be a child in relation to the parent. Next, if a message appears, then in relation to which window will it be a child, if my 2 windows are the same in status?
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post by Fred »

If you don't use the new parentid parameter it automatically look for the active window and use this as parent. Sometimes it didn't used the expected window, so now you can specify it.
zikitrake
Addict
Addict
Posts: 868
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

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

Post by zikitrake »

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?
For me WebViewGadget is working ok but Webgadget with flag #PB_Web_Edge displays a blank window

Image

Windows 11 64, PB 6.10 Beta 64 with last Webview2 runtime installed
PB 6.21 beta, PureVision User
User avatar
Kiffi
Addict
Addict
Posts: 1484
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

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

Post by Kiffi »

@zikitrake:

If you do not set the URL directly but with SetGadgetText(), then it works

Code: Select all

    WebGadget(0, 10, 10, 580, 280, "", #PB_Web_Edge)
    SetGadgetText(0, "https://www.purebasic.com")
Hygge
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 »

it does not, when the URL is a local file file://C:\whatnot\whatever/html (no matter \ or / or URL encoded).
S.T.V.B.E.E.V.
zikitrake
Addict
Addict
Posts: 868
Joined: Thu Mar 25, 2004 2:15 pm
Location: Spain

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

Post by zikitrake »

Kiffi wrote: Fri Dec 29, 2023 2:57 pm @zikitrake:

If you do not set the URL directly but with SetGadgetText(), then it works

Code: Select all

    WebGadget(0, 10, 10, 580, 280, "", #PB_Web_Edge)
    SetGadgetText(0, "https://www.purebasic.com")
Thank you!
Image
PB 6.21 beta, PureVision User
User avatar
Kiffi
Addict
Addict
Posts: 1484
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

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

Post by Kiffi »

@pamen: The same as zikitrake:

Code: Select all

  WebGadget(0, 0, 0, 800, 800, "", #PB_Web_Edge)
  SetGadgetText(0, "file://c:/temp/helloworld/index.html")
Hygge
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 »

@Kiffi
sorry, I'm getting this only in a single form simple example, in a complex form scenario (some forms hidden, no web gadget, some visible, web gadgets) I get no gadget, just the container, no matter if I put "" on creation or not.
I will check again in a month, I'm sure I cannot be the only one having issue with instantiating WebGadget with Chrome.
S.T.V.B.E.E.V.
akee
Enthusiast
Enthusiast
Posts: 496
Joined: Wed Aug 18, 2004 9:52 am
Location: Penang, Malaysia

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

Post by akee »

Saw this... PackEntryDate()... PureBasic developers rock...

Thanks Fred...
User avatar
ChrisR
Addict
Addict
Posts: 1466
Joined: Sun Jan 08, 2017 10:27 pm
Location: France

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

Post by ChrisR »

pamen wrote: Sat Dec 23, 2023 1:15 pm @Fred:
Something is off / different with the handling of pointers as return values of a function.
I also noted that pointers defined as long variables used to work, but this is no longer the case now for Windows x64 compilations.
At default of a *pointer variable, an Integer is now required.

Code: Select all

lpbData.l = AllocateMemory(256)
FreeMemory(lpbData) <== Crash

rulptr.l = @RulesList() <== Wrong pointer
I had to fix a few old programs, and they work as expected now, with 6.10 beta1.
But I've also noted some code here and there on the forum that uses long variables for pointers, unfortunately, they won't work anymore if compiled in 64-bits, with version 6.10 now.
Fred
Administrator
Administrator
Posts: 18153
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post by Fred »

Using .l for pointer in x64 is programming mistake, i'm even suprised it worked for you before.
Post Reply