For most controls, one can map mouseevents to the corresponding touch event. However, I'm stumped at how to get the slider to move in a revlet or standalone.
Any suggestions?
TIA
Lumpo
Using slider in OSX/Win
Moderators: heatherlaine, kevinmiller, robinmiller, malte, splash21
-
- Livecode Opensource Backer
- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
- Location: Bordeaux, France
Re: Using slider in OSX/Win
Lumpo..
I'm a little confused about what you want to do,but if you want to move a scrollbar of type 'slider' then drag it.
Dixie
I'm a little confused about what you want to do,but if you want to move a scrollbar of type 'slider' then drag it.
Dixie
Re: Using slider in OSX/Win
Sorry, perhaps I was unclear. In the IDE or iOS simulator the standard 'slider' (ie scrollbar-like control) works as anticipated. As one moves the 'knob' the equivalent of the thumbposition is sent and can be trapped into a field or whatever. In a revlet, the slider control is inert. It responds to nought. As mentioned above, whereas mouseMove, MouseUp etc can be mapped to touch events, I'm not sure what extra code is necessary to make the slider responsive in the revlet. This is using Safari 5.0.5 (5.1of course is broken with revlets).
Hope that's a little clearer
Hope that's a little clearer
-
- Livecode Opensource Backer
- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
- Location: Bordeaux, France
Re: Using slider in OSX/Win
lumpo...
I have attached a revlet... all it contains is a slider and you can drag it. The revelet was made with rev 4.0 and I tested it with Firefox 5.0.1 and it works... but, it doesn't work with omniWeb 5.11, Opera 11.50 or as you observed Safari 5.1.
be well
Dixie
I have attached a revlet... all it contains is a slider and you can drag it. The revelet was made with rev 4.0 and I tested it with Firefox 5.0.1 and it works... but, it doesn't work with omniWeb 5.11, Opera 11.50 or as you observed Safari 5.1.
be well
Dixie
- Attachments
-
- Slide.zip
- (15.9 KiB) Downloaded 294 times
Re: Using slider in OSX/Win
Thanks but it decodes in a fashion that I can't get it to open except in coda or bbedit etc (ie looks like the raw text dump of a rev file).
Lumpo
Lumpo
Re: Using slider in OSX/Win
OK problem solved - operator error. Worked easily in simple new projects with one control. Therefore went back and tracked the code line by line and there it was ... a comma instead of a semicolon. All is well.
Thanks for advice
Thanks for advice