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
 TIELayer UserData
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

bmesser

United Kingdom
234 Posts

Posted - Nov 12 2012 :  13:25:56  Show Profile  Reply
Hi

I want to identify layers that I add to a TImageEnView component. I've noticed that there is a UserData property of type Pointer - how do I attach a datetime or come to that matter a string variable to it?

Is it as simple as

Layer.UserData:=Pointer(now)

or

Layer.UserData:=Pointer(str)?

Bruce.

w2m

USA
1990 Posts

Posted - Nov 12 2012 :  17:01:59  Show Profile  Reply
You could use Layer.Name := DateTimeToStr(Now) if you are not using it already.

William Miller
Go to Top of Page

bmesser

United Kingdom
234 Posts

Posted - Nov 13 2012 :  00:49:06  Show Profile  Reply
Thanks William I hadn't even noticed that layers had a Name property!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: