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
 TIEAnimation with C++ Builder
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Polly

3 Posts

Posted - Nov 26 2013 :  09:04:45  Show Profile  Reply
Has anybody got an example for the following code, from the 'MViewFlow' demo program, in C++?
1. // specific TIEHorizontalFlow properties
if animation is TIEHorizontalFlow then
with animation as TIEHorizontalFlow do

2. case ComboBox1.ItemIndex of
0: ImageEnMView1.Animation := nil;
1: ImageEnMView1.Animation := TIEHorizontalFlow.Create();
2: ImageEnMView1.Animation := TIECircularFlow.Create();
end;

fab

1310 Posts

Posted - Jan 04 2014 :  06:27:28  Show Profile  Reply
1. becomes:
	switch (ComboBox1->ItemIndex) {
	case 0:
		ImageEnMView1->Animation = NULL;
		break;
	case 1:
		ImageEnMView1->Animation = new TIEHorizontalFlow;
		break;
	case 2:
		ImageEnMView1->Animation = new TIECircularFlow;
		break;
	default:
		;
	}



2. becomes:

	if (dynamic_cast<TIEHorizontalFlow*>(ImageEnMView1->Animation)) {
		TIEHorizontalFlow* animation = dynamic_cast<TIEHorizontalFlow*>(ImageEnMView1->Animation);
		animation->HorizontalDistance = 20;
		//...etc..
	}
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: