Need example for iOSTable-like listview

Just starting out? Need help? Post your questions and find answers here.
Johan
Posts: 3
Joined: Fri Apr 29, 2016 2:30 pm

Need example for iOSTable-like listview

Post 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.
TheMexican
Posts: 17
Joined: Sun Jun 07, 2015 5:58 pm

Re: Need example for iOSTable-like listview

Post 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:
User avatar
Peter
Posts: 1197
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Need example for iOSTable-like listview

Post 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
Post Reply