Browser Widget does not slide with card issue

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
mrcoollion
Posts: 738
Joined: Thu Sep 11, 2014 1:49 pm

Browser Widget does not slide with card issue

Post by mrcoollion » Wed Apr 27, 2016 10:57 am

I am working with the Browser widget.

When I put the widget on a card and slide to that card from a previous card with the below code the the widget is not sliding in like the Title widget but livecode is already starting to draw it during the card-slide .
Abyway to solve this or is this a bug :twisted: ?

Code: Select all

visual effect scroll left
 go to card "Card2"
See the example stack I included.

Regards,

Paul
Attachments
Browser Slide Issue 01.zip
Browser widget slide issue example
(653 Bytes) Downloaded 251 times

Klaus
Posts: 14208
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Browser Widget does not slide with card issue

Post by Klaus » Thu Apr 28, 2016 5:13 pm

Hi Paul,

Looks like a bug to me, even with the official syntax:
...
lock screen for visual effect
go to card "Card2"
unlock screen with visual effect scroll left
...
:D

Please file a but report here, so this can be fixed for the next RC:
http://quality.runrev.com


Best

Klaus

mrcoollion
Posts: 738
Joined: Thu Sep 11, 2014 1:49 pm

Re: Browser Widget does not slide with card issue

Post by mrcoollion » Thu Apr 28, 2016 5:41 pm

Hi Klaus,

Thanks for taking your time with this post.
I have reported the bug as recommended.

Regards,

Paul

mrcoollion
Posts: 738
Joined: Thu Sep 11, 2014 1:49 pm

Re: Browser Widget does not slide with card issue

Post by mrcoollion » Thu Jul 07, 2016 1:37 pm

Work around.

I have found a work around for this issue (see the attached stack).
Before entering the card with the widget on it, you need to have the visible set to false of the widget.
So I set the widget to false when I leave a card and set visible to true when I enter a card.
Also the visual effect I only got working as below (see more in the attached stack)

Code: Select all

visual effect scroll left fast
go card NextCard
The problem still is that the widget only shows at the moment the card is full in view.
I would rather have the widget slide in and out as any other object on the card.
So I tried to take a snapshot just before i leave the card and put it in an image on top and then i set the visible of the widget to false.
The idea is that when i leave the card i can do so with a visual effect and the next time i open that card the image will be shown with the visual effect while the widget is not visible.
However my code does not seem to work ?

Am i doing something wrong? Any idea's ?
Attachments
SnapShotWidget.zip
Workaround and snaphot issue
(2.33 KiB) Downloaded 239 times

Post Reply