Page 1 of 1

Linux no scrollbar window

Posted: Sat Dec 30, 2017 8:33 pm
by Justin
If you run this code and resize the window to cover the button scrollbars appear in linux but not in windows, because it has a GtkScrolledWindow container.
Often this causes unwanted scrollbars specially with nested containers, could this be removed? We can use a scrollarea i we wanted them and the behavior would be the same in both platforms.

Code: Select all

EnableExplicit

OpenWindow(#PB_Any, 0, 0, 400, 300, "", #PB_Window_SizeGadget | #PB_Window_SystemMenu)
ButtonGadget(#PB_Any, 200, 0, 80, 30, "b1")
Repeat
	
Until WaitWindowEvent() = #PB_Event_CloseWindow

Re: Linux no scrollbar window

Posted: Mon Jan 01, 2018 8:19 am
by Oma
Hi!
Have you tried the code on the newer PB 5.46beta2?
Please read (and test :wink: )...
http://www.purebasic.fr/english/viewtop ... 01#p514401

Regards and a happy new year, Charly

Re: Linux no scrollbar window

Posted: Mon Jan 01, 2018 10:36 am
by Justin
I will check it, thanks.