StringGadget & #PB_String_BorderLess BUG?

Linux specific forum
arma
User
User
Posts: 57
Joined: Sun Jul 24, 2016 11:54 pm

StringGadget & #PB_String_BorderLess BUG?

Post by arma »

Hello;
I am NOT sure if ths is Purebasic BUG or if Ubuntu does NOT support this...

StringGadget(a,x,y,w,h,"TEST",#PB_String_BorderLess)

Does NOT effect on Ubuntu... But it works fine on Windows side... What is the reason?
Fred
Administrator
Administrator
Posts: 16623
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: StringGadget & #PB_String_BorderLess BUG?

Post by Fred »

Seems to work here on Ubuntu 14.04, can anybody else confirm ?

Code: Select all

If OpenWindow(0, 300, 200, 300, 100, "Test", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
   StringGadget(1, 5, 5, 290, 26, "test", #PB_String_BorderLess)
   
   Repeat
      Select WaitWindowEvent()
         Case #PB_Event_CloseWindow
           End
           
         Case #PB_Event_Gadget
            Select EventGadget()
               Case 0
                  
            EndSelect
      EndSelect
   ForEver
EndIf
netep
New User
New User
Posts: 7
Joined: Wed Oct 19, 2016 11:49 am
Location: Hamburg/Germany

Re: StringGadget & #PB_String_BorderLess BUG?

Post by netep »

works fine on lubuntu 16.04.01 x64

peter
User avatar
Shardik
Addict
Addict
Posts: 1989
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: StringGadget & #PB_String_BorderLess BUG?

Post by Shardik »

Whether the border is suppressed is dependant on the desktop manager of your Linux distribution. For comparison I have executed the following program in PB 5.44 x86 using GTK3 on 9 different Linux distributions each utilizing a different desktop manager:

Code: Select all

OpenWindow(0, 100, 100, 300, 50, "Linux distribution + Desktop manager")
StringGadget(1, 10, 10, 280, 26, "Borderless StringGadget", #PB_String_BorderLess)

Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
Image

Image

Image

Image

Image

Image

Image

Image

Image

You should also compare the differing height of the window although each window was created with a height of 50... :shock:
Post Reply