iOS pickWheel woes....

BNig niggemann at
Tue Dec 7 13:53:14 EST 2010

Hi Jim,

I did not get the  iphonePick listOfData, curIndex to work.

Instead I used a workaround that may or may not suit your needs.

Make a list field (you already have that) and overlay that with a option
menu button in front of it.
set the blendlevel of the option menu button to 100 to make it transparent.
Set the script of the option menu button to 
on mouseDown
   put field "List of Data" into tData
   put the hilitedLine of field "List of Data" into tHilite
   set the text of me to  tData
   if tHilite is  not "" then set the menuHistory of me to tHilite
end mouseDown

on mouseUp
   put field "List of Data" into tData
   put the label of me into tLabel
   put lineOffset (tLabel,tData) into tNewSelection
   set the hilitedLine of field  "List of Data" to tNewSelection
end mouseUp

now if you seem to click into the list field you actually trigger the option
menu button
This button is populated by the content of the list field and its
hilitedLine on the fly. The hilitedLine becomes the default of the pick
wheel. Now if you make a choice on the click wheel this will hilite the
appropriate line in the list field. (or do with the label whatever you want)

This is an ugly hack and whether it works for you depends on what exactly
you are trying to do.

Apparently in this lesson:
they could not either figure it out how it returns a value. They did not
even attempt to do it.
That may be the reason why they spelled:


I hope Richmond does not find out about this. :)

kind regards


View this message in context:
Sent from the Revolution - User mailing list archive at

More information about the Use-livecode mailing list