custom slider for OSX and Ios

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

custom slider for OSX and Ios

Post by jmburnod » Sat Aug 05, 2017 9:01 am

Hi All,
Here is a new version of "stCustomSliderIosOsx001" (not tested on Windows and android)
This custom slider works fine except this case: :oops:
(I don’t know if that is LiveCode or my brain who doesn't work as expected).

1. Click on the slider bar
The slider comes correctly
2. Do a mousedown immediatly and try to move the slider (doesn't work during 1500 milliseconds).

Suggestions are welcome
Best regards
Jean-Marc
Attachments
stCustomSliderIosOsx001.zip
(2.91 KiB) Downloaded 252 times
https://alternatic.ch

Thierry
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 875
Joined: Wed Nov 22, 2006 3:42 pm

Re: custom slider for OSX and Ios

Post by Thierry » Sat Aug 05, 2017 3:55 pm

Bonjour Jean-Marc,

Just had a quick look and found out
that if you add this handler into your Slider graphic script,
you get the right behavior:

Code: Select all

on mousedoubledown
   -- put "you're too fast my friend :)"
end mousedoubledown
Bon dimanche,

Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: custom slider for OSX and Ios

Post by jmburnod » Sat Aug 05, 2017 4:58 pm

Bonsoir Thierry,
Thanks for hint but it works sometimes and sometimes not
Bon dimanche à toi aussi.
Jean-Marc
https://alternatic.ch

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: custom slider for OSX and Ios

Post by [-hh] » Mon Aug 07, 2017 2:09 pm

Hi Jean-Marc.

Extending Thierry's advice the following works here.
Add the two handlers to the script of your grc "mySlider":

Code: Select all

on mouseDoubleDown
  deSliderMD
end mouseDoubleDown

on mouseDoubleUp
  deSliderMU
end mouseDoubleUp
Hermann

p.s. Nice slider.
[ There is also a demo of Bernd to circular/linear sliders, see the source of the HTML standalone http://berndniggemann.on-rev.com/progress/progress.html ].
shiftLock happens

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: custom slider for OSX and Ios

Post by jmburnod » Mon Aug 07, 2017 7:27 pm

Hi Hermann,
I add mousedoubledown/up but its create trouble during the move of grc "MySlider". Sometimes it stop move.
Same result with LC 8.1.3 and 8.1.5
Jean-Marc
Thanks for Bernd's ressource which is already in my Bernd Folder :D
Jean-Marc
Last edited by jmburnod on Tue Aug 08, 2017 10:03 pm, edited 1 time in total.
https://alternatic.ch

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: custom slider for OSX and Ios

Post by bogs » Mon Aug 07, 2017 8:36 pm

jmburnod wrote:Thanks for Bernd's ressource which is already in my Bernd Folder :D
Kinda says "You've arrived !" when people without your name have a folder with your name on it :mrgreen:
Image

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”