Page 1 of 1

Need example for iOSTable-like listview

Posted: Tue May 03, 2016 11:06 am
by Johan
I'm trying to figure out if a web App is possible with SB. I tried a simple listview but scrolling on the iPhone didn't work at all. Maybe I'm missing something.

Can this be done? Is SB suitable for this?

A simple example would be great.

Re: Need example for iOSTable-like listview

Posted: Tue May 03, 2016 5:48 pm
by TheMexican
Well, the first issue is how Spiderbasic runs web apps.
It opens the browser window and then the Spiderbasic windows appear within the Browser window.
I thought I saw another post on how to disable having a MDI window, I haven't try it.

The only way I know would be to make the browser window the same size as the iPhone window and then adding some of the components.
There should be no difference between Javascript mobile apps and Spiderbasic.

The only issue is the MDI look.
I am just a beginner, just barely starting with SpiderBasic. :oops:

Re: Need example for iOSTable-like listview

Posted: Tue May 03, 2016 8:44 pm
by Peter
here is a simple example code (don't know if it works on an iPhone):

Code: Select all

#Window = 0
#ListViewGadget = 0

OpenWindow(#Window, 0, 0, 0, 0, "", #PB_Window_Background)
ListViewGadget(#ListViewGadget, 0, 0, WindowWidth(#Window), WindowHeight(#Window))

For Counter = 0 To 100
  AddGadgetItem(#ListViewGadget, -1, "Item No." + Str(Counter))
Next
Greetings ... Peter