It is currently Sun Nov 19, 2017 7:05 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: PureBasic 5.46 LTS Beta 1 is out for testing !
PostPosted: Tue Nov 07, 2017 1:28 pm 
Offline
Administrator
Administrator

Joined: Wed Apr 23, 2003 7:57 pm
Posts: 1315
Location: Belgium
Thx Fred :D

_________________
Berikco

http://www.vispluk.be


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.46 LTS Beta 1 is out for testing !
PostPosted: Sat Nov 11, 2017 12:26 pm 
Offline
Addict
Addict
User avatar

Joined: Wed Jun 11, 2003 9:33 pm
Posts: 4385
Location: Spa, relaxing and thinking, and learning...
Thanks a lot :wink: :!:

_________________
http://www.zeitgeistmovie.com

While world=business:world+mafia:Wend
While (world==business) {world+=mafia}


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.46 LTS Beta 1 is out for testing !
PostPosted: Wed Nov 15, 2017 6:01 am 
Offline
New User
New User

Joined: Fri Sep 03, 2010 6:15 pm
Posts: 7
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,


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.46 LTS Beta 1 is out for testing !
PostPosted: Wed Nov 15, 2017 12:34 pm 
Offline
Enthusiast
Enthusiast

Joined: Sat Mar 02, 2013 9:17 am
Posts: 677
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:

_________________
http://www.nachtoptik.de - The home of Bucketfill_advanced (BF) and QUICK_AES_256


Top
 Profile  
Reply with quote  
 Post subject: Re: PureBasic 5.46 LTS Beta 1 is out for testing !
PostPosted: Thu Nov 16, 2017 4:43 pm 
Offline
Enthusiast
Enthusiast

Joined: Thu May 30, 2013 4:39 pm
Posts: 342
Would be great to fix this also in this release.
http://www.purebasic.fr/english/viewtopic.php?f=13&t=69629&p=514948#p514948


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye