Linux no scrollbar window

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Justin
Addict
Addict
Posts: 829
Joined: Sat Apr 26, 2003 2:49 pm

Linux no scrollbar window

Post 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
Oma
Enthusiast
Enthusiast
Posts: 312
Joined: Thu Jun 26, 2014 9:17 am
Location: Germany

Re: Linux no scrollbar window

Post 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
PureBasic 5.4-5.7, Linux: (X/L/K)Ubuntus+Mint - Windows XP (32Bit)
PureBasic Linux-API-Library & Viewer: http://www.chabba.de
Justin
Addict
Addict
Posts: 829
Joined: Sat Apr 26, 2003 2:49 pm

Re: Linux no scrollbar window

Post by Justin »

I will check it, thanks.
Post Reply