Found an issue in SpiderBasic ? Please report it here !
User avatar
Peter
 
Posts: 689
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080

SplitterGadget() and TrackBarGadget() doesn't work...

by Peter Wed Mar 25, 2020 6:25 pm

... properly in a borderless window in mobile view.

Hi,

while SplitterGadget() and TrackBarGadget() work fine in a normal window, they don't work in a borderless window when the app is displayed in a mobile view (for example on a mobile phone).

Example with SplitterGadget():
Image

The same behavior also occurs in a window with the #PB_Window_Background flag.

Code: Select all
EnableExplicit

Define W1, W2
Define B1, B2, SG

W1 = OpenWindow(#PB_Any, 10, 10, 300, 300, "Window1")
B1 = ButtonGadget(#PB_Any, 0, 0, 0, 0, "Button1")
B2 = ButtonGadget(#PB_Any, 0, 0, 0, 0, "Button2")
SG = SplitterGadget(#PB_Any, 0, 0, WindowWidth(W1), WindowHeight(W1), B1, B2)


W1 = OpenWindow(#PB_Any, 10, 360, 300, 300, "Window2", #PB_Window_BorderLess)
B1 = ButtonGadget(#PB_Any, 0, 0, 0, 0, "Button1")
B2 = ButtonGadget(#PB_Any, 0, 0, 0, 0, "Button2")
SG = SplitterGadget(#PB_Any, 0, 0, WindowWidth(W1), WindowHeight(W1), B1, B2)

CloseDebugOutput()
useful
 
Posts: 33
Joined: Tue Feb 25, 2014 1:15 pm

Re: SplitterGadget() and TrackBarGadget() doesn't work...

by useful Thu Mar 26, 2020 2:53 am

Code: Select all
EnableExplicit
Define W11,B11,B12,SG1
Define W21,B21,B22,SG2

W11 = OpenWindow(#PB_Any, 10, 10, 300, 300, "Window1")
B11 = ButtonGadget(#PB_Any, 0, 0, 0, 0, "Button1")
B12 = ButtonGadget(#PB_Any, 0, 0, 0, 0, "Button2")
SG1 = SplitterGadget(#PB_Any, 0, 0, WindowWidth(W11), WindowHeight(W11), B11, B12)


W21 = OpenWindow(#PB_Any, 10, 360, 300, 300, "Window2", #PB_Window_BorderLess)
B21 = ButtonGadget(#PB_Any, 0, 0, 0, 0, "Button1")
B22 = ButtonGadget(#PB_Any, 0, 0, 0, 0, "Button2")
SG2 = SplitterGadget(#PB_Any, 0, 0, WindowWidth(W21), WindowHeight(W21), B21, B22)

CloseDebugOutput()
2B or not 2B = FF
User avatar
Peter
 
Posts: 689
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080

Re: SplitterGadget() and TrackBarGadget() doesn't work...

by Peter Thu Mar 26, 2020 8:03 am

@useful: I'm not sure what you want to show me with your code, but it doesn't work like mine does.
useful
 
Posts: 33
Joined: Tue Feb 25, 2014 1:15 pm

Re: SplitterGadget() and TrackBarGadget() doesn't work...

by useful Thu Mar 26, 2020 7:33 pm

I have a splitter with my code that works in both the first and second windows.
And with your code, it only works in the first window.

Maybe I misunderstood your problem?
2B or not 2B = FF
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 0 guests