I'm trying to create some native iOS controls as part of a series of 
experiments, using the iPhone form factor. Among other things, I'm trying to 
create a scroller.  I seem to have fallen at the first fence. Within a 
preOpenCard handler for the first and only card in the stack, I use this bit of 
script which I got from an LC example ('Mobile Scroller Example') which works 
fine in the 5.1 iPhone simulator on my setup:

  if the environment is not "mobile" then
      exit preOpenCard
   end if
      iphoneControlCreate "scroller"
      put the result into theScID

after this of course come a lot of iPhoneControlSet statements.

The ONLY difference that I can see between the example that works and mine is 
that I have invented a new name for my scroller ID. Both examples appear to 
have the same iOS standalone parameters, both compile apparently error-free and 
the Simulator launches each one quite happily. Nevertheless, I can show that in 
my case the ID is empty and that there's no sign of the native control 
appearing on the card. I tried it with a native text control too 
(iPhoneControlCreate "input") - same result. The control never appears and the 
ID is empty.

This has got to be my fault, but I can't see where the problem lies. It just 
must be something stupid and obvious, but what?

Any help gratefully received.

Graham

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to