Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 10 total
Thread Re: Floating point support?
Mon, May 27 2013 6:43 AMPermanent Link

Matthew Jones

It supports "double" and has FloatToStr.

/Matthew Jones/
Mon, May 27 2013 7:21 AMPermanent Link

Greentram Software Pty Ltd

In article <memo.20130527114340.7152B@nothanks.nothanks.co.uk>, Matthew
Jones wrote:
> It supports "double" and has FloatToStr.

Thanks

--
Tony Bryer, Greentram Software Pty Ltd, Melbourne, Australia
'Software to build on'  http://www.greentram.com



Mon, Dec 16 2013 10:42 AMPermanent Link

Matthew Jones

You were however quite right. Can't see in front of me! Once I'd added the
mousedown and up's to the functions, it is all working. Thank you for stating the
obvious.

/Matthew Jones/
Tue, Jan 21 2014 6:37 AMPermanent Link

Matthew Jones

I have now read the help on the Animate procedure. I think it needs a lot of added
description to avoid too much experimentation. If anyone has any examples that
would be good. Actually, I guess a demo page should probably exist - is it included
in the samples?

Questions I have are:
1. Does it block, or can you set up an animation and leave it to complete.
2. Is there a way to know when it has completed (a callback) so that a next
animation can be started?
3. It seems that this is rather in need of an overloaded set of animations, to cut
dead parameters for most modes. Easy to do oneself of course.
4. It looks like the End* params are only for the asMove mode yes?
5. Is there a way to control the fade level? It looks like there is no way to have
it fade to 50% transparent, for example.
6. If I have an image (for example) that is not currently visible, how would I make
it fade in? I sort of presume I'd set Opacity to 0, then mark it visible, then fade
it in, yes? And to fade it out, will it still be "visible"?

A handy set of options though, look forward to playing with it.

/Matthew Jones/
Tue, Jan 21 2014 6:53 AMPermanent Link

Uli Becker

Matthew,

the only thing I used till now is fading which looks very good.
With a panel e.g. I don't use the property "visible" any more, but set
the opacity to 0. Easy to handle, but there doesn't seem to be a way to
let it fadein to a certain value though except hacking the sources.

Here the source:

asFadeIn:
         begin
         if (FControl.Opacity=100) then
            Cancel
         else
            FControl.Opacity:=FControl.Opacity+FStep;
         if (not DoStep) then
            Cancel;
         end;
      asFadeOut:
         begin
         if (FControl.Opacity=0) then
            Cancel
         else
            FControl.Opacity:=FControl.Opacity-FStep;
         if (not DoStep) then
            Cancel;
         end;

Uli
Tue, Jan 21 2014 10:12 AMPermanent Link

Matthew Jones

> Here the source:

Always a good thing to check... Thank you.

/Matthew Jones/
Tue, Jan 21 2014 12:24 PMPermanent Link

Uli Becker

Matthew,

you can have a look at some FadeIn and FadeOut animations here:

http://www.beckersoft-online.de/movies/fadetest.html

Just my first expermiments with animations.

Type "James Bond" in the edit-field and press ENTER.

Uli
Tue, Jan 21 2014 2:49 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

Firstly, this was just added as a stop-gap measure, so don't expect too much
from it.  It's not something that will likely stay the same for 2.0.

<< 1. Does it block, or can you set up an animation and leave it to
complete.  >>

*Nothing* blocks in the browser, period.  The animations are no exception.

<< 2. Is there a way to know when it has completed (a callback) so that a
next animation can be started? >>

Not currently, no.  You have to use the OnAnimate event handler and do some
comparisons to determine if you're "done".  If you want more control over
the animation, you should check out the TAnimator class, which is used by
TControl to do the animations (WebCtrls unit).

<< 3. It seems that this is rather in need of an overloaded set of
animations, to cut dead parameters for most modes. Easy to do oneself of
course. >>

See above.

<< 4. It looks like the End* params are only for the asMove mode yes? >>

No, they also work for the expand and contract options.

<< 5. Is there a way to control the fade level? It looks like there is no
way to have it fade to 50% transparent, for example. >>

No.

<< 6. If I have an image (for example) that is not currently visible, how
would I make it fade in? I sort of presume I'd set Opacity to 0, then mark
it visible, then fade it in, yes? >>

Correct.

<< And to fade it out, will it still be "visible"? >>

It will be visible according to the EWB properties, but will *not* be
visible to the end-user.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Jan 21 2014 2:55 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< you can have a look at some FadeIn and FadeOut animations here: >>

Nice. Smile I've been wanting to do a "Netflix/Amazon Instant Video" type of
demo, but haven't had the chance yet.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, Feb 11 2014 11:23 AMPermanent Link

Matthew Jones

> << And to fade it out, will it still be "visible"? >>
>
> It will be visible according to the EWB properties, but will *not*
> be visible to the end-user.

Point to note on this, if you fade out a panel that is on top of other components,
then it will stop those components working (receiving input). It is dead easy
though to take the code from TControl.Animate and customise it to hide the panel in
AnimationComplete:

procedure TMyForm.CustomAnimationComplete(Sender: TObject);
begin
   if TAnimator(Sender).Style = asFadeOut then
       TAnimator(Sender).Control.Visible := false;
   Sender.Free;
end;


/Matthew Jones/
Image