Page 1 of 1
Option Menu on iPad
Posted: Sat May 31, 2014 8:18 pm
by Mag
I noticed that on an iPad, the Option Menu button displays a balloon with the available choices. It seems to work fine (I tested it only on iOS 7). Is this something you can reliable to? I mean, can you put it in a iPad app and it works? Is, so is there a way to hide it under another control which then you customize to the look and feel of app?
Re: Option Menu on iPad
Posted: Tue Jun 03, 2014 2:14 pm
by JacobS
Hi Mag,
From what I've experienced, the Option Menu and picker wheels are very reliable. I usually do not use LC's built-in Option Menu Button but instead use just a regular field with the following code:
Code: Select all
on focusIn
iphonePick the cText of me,0,cancelDone,picker
put the result into lineNum
if lineNum is a number and lineNum > 0 then
set the text of me to line lineNum of the cText of me
end if
focus on nothing
end focusIn
(Where the cText of the field is simply a custom property set somewhere else in code.)
This has worked very reliably for me and I have been able to customize the fields to the look and feel of the app, as you want to do.
Let me know if that helps.
-Jacob
Re: Option Menu on iPad
Posted: Wed Jun 04, 2014 11:58 am
by Mag
Thank you so much Jacob, I will try this way, seems very smart!
PS
BTW, in the mean time I found a simple way to hide an Option Menu and let it to work normally: just put a regular button over it and then make it disabled.
Re: Option Menu on iPad
Posted: Tue Jun 24, 2014 2:16 am
by quailcreek
You can also create a pickwheel like this. It can be in a button, field or whatever. This one collects all the names of the cards in the stack.
Code: Select all
on mouseUp
if the environment is "mobile" then
repeat with x = 1 to the number of cards
put the short name of card x & cr after tCardList
end repeat
put tCardList into pickList
iphonePick pickList ,1,"CancelDone"
put the result into ItemPicked
visual effect push left normal
go cd ItemPicked
end if
end mouseUp
Re: Option Menu on iPad
Posted: Tue Jun 24, 2014 6:24 am
by Mag
Thank you quailcreek