PureBasic 5.46 LTS released !

Developed or developing a new product in PureBasic? Tell the world about it.
Berikco
Administrator
Administrator
Posts: 1326
Joined: Wed Apr 23, 2003 7:57 pm
Location: Belgium
Contact:

Re: PureBasic 5.46 LTS Beta 1 is out for testing !

Post by Berikco »

Thx Fred :D
User avatar
Psychophanta
Addict
Addict
Posts: 4969
Joined: Wed Jun 11, 2003 9:33 pm
Location: Lípetsk, Russian Federation
Contact:

Re: PureBasic 5.46 LTS Beta 1 is out for testing !

Post by Psychophanta »

Thanks a lot :wink: :!:
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB :mrgreen:
bal
New User
New User
Posts: 7
Joined: Fri Sep 03, 2010 6:15 pm

Re: PureBasic 5.46 LTS Beta 1 is out for testing !

Post by bal »

Testing one of my applications on Linux using this beta, and it seems it's not possible to create a button with arbitrary sizes. Is that a GTK3 "feature"?

It's not a problem in PB5.2x (GTK2?), but with PB5.4x the button will always be big/wide enough for its text and some padding, which means they using up more space then necessary, so I have to make the window bigger to fit all the gadgets.

Using 5.24 it's possible to create 1px wide buttons, even if there is text on them.

On 5.45 (or 5.46b1) if I set button width to 1px, it will be ignored and the button will be wide enough for its caption and some padding. However GadgetWidth(#mybutton) returns 1, which means my button is 1px wide. But visually it's clearly not. Luckily GadgetWidth(#mybutton, #PB_Gadget_RequiredSize) provides the minimum size required, however, like I said, I need to make the whole interface bigger which I would try not to do.

Try Gadget.pb example with 5.2x and 5.4x to see what I mean. Changed "Play" button width to 9 here:

ButtonGadget(1, 223, Top, 9, GadgetHeight, "Play") ; width was 72: ButtonGadget(1, 223, Top, 72, GadgetHeight, "Play")
Debug "Button Width: " + Str(GadgetWidth(1)) ; prints "Button Width: 9"
Debug "RequiredSize: " + GadgetWidth(1, #PB_Gadget_RequiredSize) ; prints "RequiredSize: 57"

Can anything be done with this or this is something we need to live with?

Thanks,
walbus
Addict
Addict
Posts: 929
Joined: Sat Mar 02, 2013 9:17 am

Re: PureBasic 5.46 LTS Beta 1 is out for testing !

Post by walbus »

This is a gtk3 "Feature"
Not a PB issue
This can change in the future with new gtk3 versions
You can use gtk2 or you must create your own custom buttons, as sample canvas based
What works now can no longer work in the future, or vice versa :shock:
Wolfram
Enthusiast
Enthusiast
Posts: 567
Joined: Thu May 30, 2013 4:39 pm

Re: PureBasic 5.46 LTS Beta 1 is out for testing !

Post by Wolfram »

Would be great to fix this also in this release.
http://www.purebasic.fr/english/viewtop ... 48#p514948
macOS Catalina 10.15.7
Wolfram
Enthusiast
Enthusiast
Posts: 567
Joined: Thu May 30, 2013 4:39 pm

Re: PureBasic 5.46 LTS Beta 1 is out for testing !

Post by Wolfram »

Hope you can fix these Bug in the 5.46 release too.
http://www.purebasic.fr/english/viewtop ... 19&t=69715
macOS Catalina 10.15.7
Fred
Administrator
Administrator
Posts: 16618
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 5.46 LTS Beta 1 is out for testing !

Post by Fred »

Sorry for the long delay between the beta. The beta 2 is out to test on your account ! :)
User avatar
Lord
Addict
Addict
Posts: 847
Joined: Tue May 26, 2009 2:11 pm

Re: PureBasic 5.46 LTS Beta 1 is out for testing !

Post by Lord »

Fred wrote:...
The beta 2 is out to test on your account ! :)
Thx!
Image
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: PureBasic 5.46 LTS Beta 2 is out for testing !

Post by srod »

Hi Fred,

I've taken a program which creates a quite fiddly GUI with some gadget placement which was, honestly, unworkable on PB 5.61 x64 Ubuntu/GTK3 (despite my best efforts) but it generally works fine on PB 5.46 beta 2 Ubuntu/GTK3 aside from one issue which is in the bugs section and there is a workaround posted by Oma.

Point I am making is that I can see what a nightmare GTK3's layout manager is for gadget placement and it has been quite a shock to a Window's man like myself! :) You and Timo must have been pulling your hair out in clumps!

Looks to me though that the 5.46 beta 2 has make huge progress on that score which is really appreciated. Thanks guys.

Will these fixes make their way to PB 5.61?
I may look like a mule, but I'm not a complete ass.
deeproot
Enthusiast
Enthusiast
Posts: 269
Joined: Thu Dec 17, 2009 12:00 pm
Location: Llangadog, Wales, UK
Contact:

Re: PureBasic 5.46 LTS Beta 2 is out for testing !

Post by deeproot »

srod wrote:Looks to me though that the 5.46 beta 2 has make huge progress on that score which is really appreciated. Thanks guys.
With srod on all those comments - my thoughts exactly. Great work from Freak and Fred - looking forward to next year !
Fred
Administrator
Administrator
Posts: 16618
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 5.46 LTS released !

Post by Fred »

Final version is out and contain a critical fix for OS X 10.13. Thanks a lot everyone for all the testing !
hoerbie
Enthusiast
Enthusiast
Posts: 119
Joined: Fri Dec 06, 2013 11:57 am
Location: DE/BY/MUC

Re: PureBasic 5.46 LTS released !

Post by hoerbie »

Hello Fred,

thanks, but may I ask, what the plans and time schedule are for the LTS, maybe of the newer 5.6 tree?

When coming out with the first LTS it was said, that every LTS tree will be active for about 2 years, the LTS 5.46 is now over this time, and the download area still says
This LTS version will be supported at least until September 2017.
I can think of a lot people loving the 5.4 LTS because of its last Utf and Ascii features, but a real new LTS with then only Utf and the new features of 5.6 would - for me - be more interesting.

The "having a stable tree for 2 years but then getting the new features" for me was the point to buy PureBasic.

Regards, Hoerbie
Fred
Administrator
Administrator
Posts: 16618
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 5.46 LTS released !

Post by Fred »

Next major version (probably 5.70) will be the new LTS. We don't switch an old version to LTS because the date has been hit. It said "at least until september 2017", which means it can last above this date. I hope it's a bit more clear now, feel free to propose some change to the wording to make it better :)
Fred
Administrator
Administrator
Posts: 16618
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PureBasic 5.46 LTS released !

Post by Fred »

A new version has been uploaded on your account for Linux x86 and x64 to fix some nasty bugs, so please download the 5.46 again if you need it.
User avatar
Psychophanta
Addict
Addict
Posts: 4969
Joined: Wed Jun 11, 2003 9:33 pm
Location: Lípetsk, Russian Federation
Contact:

Re: PureBasic 5.46 LTS released !

Post by Psychophanta »

Thank you very much!
I was waiting for this one!
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend
Will never leave this forum until the absolute bugfree PB :mrgreen:
Post Reply