Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Using SlideTo method
Wed, Nov 2 2016 11:26 AMPermanent Link

Trinione

Shouldn't the following code slide a form off the screen to the right?

 Form1.SlideTo(Parent.ClientWidth, 0, asExpoEaseInOut, 300);
Wed, Nov 2 2016 3:53 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< Shouldn't the following code slide a form off the screen to the right?

 Form1.SlideTo(Parent.ClientWidth, 0, asExpoEaseInOut, 300); >>

Well, you're also specifying 0 for the Y coordinate, so it should slide up and to the right (unless the form's Top value is already 0).

What are you seeing ?

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Nov 2 2016 8:38 PMPermanent Link

Trinione

Tim Young [Elevate Software] wrote:

<< What are you seeing ? >>


Form1, in this example, takes up the entire screen (lpTopLeft and lpBottomRight). With the command the form does not move, it just fades out.
Thu, Nov 3 2016 3:29 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com


<< Form1, in this example, takes up the entire screen (lpTopLeft and lpBottomRight). With the command the form does not move, it just fades out. >>

If you've got the form pegged to a specific layout, then SlideTo won't change that.  Instead, use this method first:

http://www.elevatesoft.com/manual?action=viewmethod&id=ewb2&comp=TControl&method=Float

It will "float" the control/form so that it's parent is the application surface (the default for forms, so nothing changes in your case), but more importantly it disables all layout properties for the control/form.

Tim Young
Elevate Software
www.elevatesoft.com
Image