Hi All,
This forum message contains the final version of this stack.
It includes a Color version of this algorithm.
https://forums.livecode.com/viewtopic.php?f=10&p=159173#p159173
Thanks again to Malte Brill, Richard Gaskin, Hermann Hoch, Mark Waddingham,
Peter Reid, Ben Rubinstein, Bob Sneidar
That, and the standalone settings are on my list of things I want to take a
shot at when I get time. The PB is buggy, and I miss thumbnails.
On Fri, Oct 13, 2017 at 5:41 PM, Mark Wieder via use-livecode <
use-livecode@lists.runrev.com> wrote:
> On 10/13/2017 12:40 PM, J. Landman Gay via use-live
Hi All,
Effectively, SVG Icon widget grows and shrink
when rotating, but Peter Thirkell SVG Multicolor
widget does not. This Multicolor svg widget
only clips it's content and stays the same size.
Richmond, Have you installed SVG Multicolor
widget?
Download and install from this forum thread:
htt
What about this from the Master Library from Ken Ray?
function isDate pWhat
/* isDate Date
Syntax:
isDate (pWhat)
Examples:
isDate("10/10/2001")
Description:
Determines if the container passed to it in contains a valid
date.
Returns true or false.
Source:
Ken Ra
On 10/14/17 2:14 PM, Yves COPPE via use-livecode wrote:
Try this
function CheckDate pDateToCheck
return
matchText(pDateToCheck,"([1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-9][0-9][0-9][0-9])")
end CheckDate
Promising, but fails with dates like "1/1/19".
--
Jacqueline Landman Gay |
Another disadvantage of using a rotated SVG is that is will resize to
fill its rectangle when rotating. The clock hand will change its size on
each rotation.
On 10/14/17 2:17 PM, Tore Nilsen via use-livecode wrote:
That is why I suggest using a png-file, where all but the hand is transparent.
That is why I suggest using a png-file, where all but the hand is transparent.
Setting the resizeQuality to best should give a good result without reducing
the speed of any animation you do.
Tore
> 14. okt. 2017 kl. 21:06 skrev Richmond Mathewson via use-livecode
> :
>
> But one cannot make a
Hi,
Try this
function CheckDate pDateToCheck
return
matchText(pDateToCheck,"([1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-9][0-9][0-9][0-9])")
end CheckDate
answer CheckDate(tDate)
> Le 14 oct. 2017 à 19:27, Roger Eller via use-livecode
> a écrit :
>
> That's what I suspected. So to build
But one cannot make an SVG image "twice as long, with half of it
transparent": belive me
I have tried that already.
Richmond.
On 10/14/17 9:44 pm, Mark Wieder via use-livecode wrote:
On 10/14/2017 11:30 AM, Tore Nilsen via use-livecode wrote:
You would probably be better off using a transparen
On 10/14/2017 11:30 AM, Tore Nilsen via use-livecode wrote:
You would probably be better off using a transparent png-image that is square
for the clock hand, and where the rotation point of the clock hand was at the
center of the square. You could then put the clock hand on top of the clock
fa
You would probably be better off using a transparent png-image that is square
for the clock hand, and where the rotation point of the clock hand was at the
center of the square. You could then put the clock hand on top of the clock
face and rotate the hand at will. My students hand the same kind
I am getting a bit fudgey with clock hands.
I have used my SVG importer stack to import a minute and an hour hand as
SVG widgets, as well as
a clock face.
The "only snag" is that when I do this sort of thing:
set the angle of widget "hourHand" to 90
it rotates the widget round its centre rat
That's what I suspected. So to build a slightly better trap, I am doing
this:
if tDate is a date and length(tDate) > 5 and tDate contains "/" then
put "true"
else
put "false"
end if
I am sure there is probably a standard way to catch all possible date
formats (excluding "the seconds"),
Hi Roger,
> Am 14.10.2017 um 18:30 schrieb Roger Eller via use-livecode
> :
>
> put "11/20/2017" is a date
> returns true
>
> put "10" is a date
> returns true
>
> put "raccoon" is a date
> returns false
>
>
> WHY is "10" seen as a date?
looks like the engine is seeing seconds a
put "11/20/2017" is a date
returns true
put "10" is a date
returns true
put "raccoon" is a date
returns false
WHY is "10" seen as a date?
~Roger
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscrib
15 matches
Mail list logo