Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Animation - unspected behaviour
Thu, Sep 24 2015 2:02 AMPermanent Link

Petter Topp

I have set up a very simple project to show some strange behavior - or possibly lack of understanding the concept...

Run the project, Click menu button to the right, click either "Show List" or "Show Edit" to toggle between two forms embedded in the main panel. Animation works fine.
Click "Show PopUp" to show PopUp form modal, Close the PopUp form and notice the layout of main form and menu panel. Click the menu button again, and notice that the main form is now animated. Click the menu button once more and the menu panel is animated.

Project is created with EWB 2.01

Br
Petter



Attachments: Animate-test.zip
Thu, Sep 24 2015 2:36 AMPermanent Link

Petter Topp

Unexpected is the word...
Thu, Sep 24 2015 12:58 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Petter,

<< Run the project, Click menu button to the right, click either "Show List" or "Show Edit" to toggle between two forms embedded in the main panel. Animation works fine.
Click "Show PopUp" to show PopUp form modal, Close the PopUp form and notice the layout of main form and menu panel. Click the menu button again, and notice that the main form is now animated. Click the menu button once more and the menu panel is animated. >>

The issue is that your "hidden" menu is obtaining focus when the popup form is closed.  By default, EWB will auto-focus back to the previously-focused control when a form is closed.

The solution is to un-comment this line:

       Visible := False;

in your AnimateSlideMenu method.

If you commented out that line because it messes up the animation, then you'll be happy to know that I've included a new OnComplete event in 2.02 for animations that allow you to hook into when the animation is complete for situations like this.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Sep 24 2015 1:08 PMPermanent Link

Petter Topp

Thanks Tim.

Br
Petter
Image