ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Unknown transition
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

graphman

259 Posts

Posted - Aug 14 2016 :  06:13:29  Show Profile  Reply
Hi,
One of my users see an error message "Unknown transition" in the program.
I can't replicate this issue.
What might be the cause of the error and how to fix it?

w2m

USA
1990 Posts

Posted - Aug 14 2016 :  09:47:58  Show Profile  Reply
Provide some code or a demo. No one can reply to this unless you provide detail.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

xequte

38613 Posts

Posted - Aug 14 2016 :  15:22:34  Show Profile  Reply
Using pyschic debugging I would guess that you are running transition effects and setting the TIETransitionType numerically, e.g. Transition := TIETransitionType( Random( n ) + 1 ), where n is not in the range of TIETransitionType

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

graphman

259 Posts

Posted - Aug 21 2016 :  06:27:33  Show Profile  Reply
I use
transition = TIETransitionType(random(MAX_TRANSITIONS));
ImageEnView1->RunTransition(transition, duration);
Go to Top of Page

xequte

38613 Posts

Posted - Aug 21 2016 :  18:47:17  Show Profile  Reply
Hi

TIETransitionType( 0 ) is iettNone, which you do not want.

You should use:

transition = TIETransitionType(random(MAX_TRANSITIONS - 1) + 1);
ImageEnView1->RunTransition(transition, duration);



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

graphman

259 Posts

Posted - Aug 22 2016 :  09:01:48  Show Profile  Reply
Thanks.
But it could not be the cause of "Unknown transition" error.
Go to Top of Page

xequte

38613 Posts

Posted - Aug 22 2016 :  23:52:13  Show Profile  Reply
Yes, it could, because if you specify the transition type as iettNone, it will fall through to the "Unknown transition" error.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: