touch objects for iPhone

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

touch objects for iPhone

Post by bn » Fri Nov 05, 2010 9:57 pm

If you want your list on the iPhone or any other touch device it is not easy to code the "touch" into the objects. A touch is different from a mouseClick, since on a touch-device you often have a mouseMove message between mouseDown and mouseUp. If you want your object to scroll then you have to have a mouseMove handler. But then you have to figure out whether the user wants to scroll or click.

I learned this from an attempt to make a scrolling list field like in the address book of the iPhone. I guess this will be a fairly common interface element on any touch device. It allows you to scroll a list and to select one line of that list. Easily done in a mouse-driven environment, but tricky in a touch environment.

What RevMobile needs are objects for the mobile/touch interface. This with regards to functionality but also as far as design is concerned. This is currently up to the individual developer to implement.

I post this as a revlet:
http://berndniggemann.on-rev.com/iphonelistfieldrevlet/
and as a zipped stack
http://berndniggemann.on-rev.com/iphone ... vecode.zip

a "slotmachine" i.e. a endlessly scrolling "wheel" field, like on the iPhone to set timers etc. can be found here:
as revlet
http://berndniggemann.on-rev.com/slotma ... inerevlet/
as zipped stack
http://berndniggemann.on-rev.com/slotma ... ne.rev.zip

If you have comments/improvements/questions, they are welcome.
regards
Bernd

paul_gr
Posts: 319
Joined: Fri Dec 08, 2006 7:38 pm

Re: touch objects for iPhone

Post by paul_gr » Fri Nov 05, 2010 10:37 pm

Thanks Bernd.
much appreciated.

Paul

olive
Posts: 12
Joined: Tue Nov 02, 2010 6:43 pm

Re: touch objects for iPhone

Post by olive » Fri Nov 05, 2010 10:48 pm

Thank you very much Bernd for your reply and this post ! :-)

ystan2010
Posts: 26
Joined: Tue Mar 22, 2011 4:38 am

Re: touch objects for iPhone

Post by ystan2010 » Tue Mar 22, 2011 3:36 pm

Hi,

Thanks a lot for your assistance!

I am more looking for the real slot machine emulator like those in the casino. Do you have any scripts or codes for that by chance?

Thanks,
JYST

ystan2010
Posts: 26
Joined: Tue Mar 22, 2011 4:38 am

Re: touch objects for iPhone

Post by ystan2010 » Wed Mar 23, 2011 6:01 am

Hi, thanks for the post anyway. I am not looking for slot machine for iphone. I am looking for a real casino slot machine emulator. Can anyone here help me please?

Thanks,
JYST

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: touch objects for iPhone

Post by bn » Wed Mar 23, 2011 11:08 am

Hi Ystan,

lets discuss this in the original thread since what you have in mind is not for iOS/mobile.

http://forums.runrev.com/phpBB2/viewtop ... 624#p32624

Kind regards

Bernd

cocochen
Posts: 2
Joined: Wed Apr 06, 2011 8:23 am

Re: touch objects for iPhone

Post by cocochen » Fri May 20, 2011 8:24 am

bn wrote:If you want your list on the iPhone or any other touch device it is not easy to code the "touch" into the objects. A touch is different from a mouseClick, since on a touch-device you often have a mouseMove message between mouseDown and mouseUp. If you want your object to scroll then you have to have a mouseMove handler. But then you have to figure out whether the user wants to scroll or click.

I learned this from an attempt to make a scrolling list field like in the address book of the iPhone. I guess this will be a fairly common interface element on any touch device. It allows you to scroll a list and to select one line of that list. Easily done in a mouse-driven environment, but tricky in a touch environment.

What RevMobile needs are objects for the mobile/touch interface. This with regards to functionality but also as far as design is concerned. This is currently up to the individual developer to implement.

I post this as a revlet:


a "slotmachine" i.e. a endlessly scrolling "wheel" field, like on the iPhone to set timers etc. can be found here:
as revlet

regards
Bernd
Hi, thanks for the post anyway. I am not looking for slot machine for iphone. I am looking for a real casino slot machine emulator. Can anyone here help me please?

Thanks,
JYST

Post Reply