Found an issue in SpiderBasic ? Please report it here !
User avatar
Niffo
 
Posts: 32
Joined: Sat Jun 16, 2018 10:30 pm

2.21B1 : ScrollArea does not scroll on mobile devices

by Niffo Fri Nov 09, 2018 2:20 pm

ScrollArea does not scroll on mobile devices (seen on Android 8)

[Edit] Seems to work on borderless windows but then CanvasGadget does not work [/Edit]

Code: Select all
OpenWindow(0, 100, 100, 300, 300, "ScrollAreaTest")
ScrollAreaGadget(0, 10, 10, WindowWidth(0) - 20, WindowHeight(0) - 20, 250, 500)
For i = 1 To 100
   TextGadget(i, 10, i * 30, 150, 20, "Text Gadget", #PB_Text_Border)
Next
CloseGadgetList()


Or

Code: Select all
  #Dialog = 0
  #Xml = 0
 
  XML$ = "<window id='#PB_Any' name='test' text='Dialog example' minwidth='auto' minheight='auto' flags='#PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_SizeGadget'>" +
         " <scrollarea width='auto' height='auto' innerwidth='250' innerheight='500' >" +
         "  <vbox>" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  <text text='Text Gadget' flags='#PB_Text_Border' />" +
         "  </vbox>" +
         " </scrollarea>" +
         "</window>"
 
  If ParseXML(#Xml, XML$) And XMLStatus(#Xml) = #PB_XML_Success
   
    If CreateDialog(#Dialog) And OpenXMLDialog(#Dialog, #Xml, "test", 100, 100, 300, 300)
      ;Debug "Dialog created"     
    Else
      Debug "Dialog error: " + DialogError(#Dialog)
    EndIf
  Else
    Debug "XML error: " + XMLError(#Xml) + " (Line: " + XMLErrorLine(#Xml) + ")"
  EndIf
Return to Bugs Reports

Who is online

Users browsing this forum: No registered users and 2 guests