Welcome, Guest
Username: Password: Remember me
General discussions, feature requests for CodeTyphon Project and discussions that don't fit in any of the other specific CodeTyphon forum categories.
  • Page:
  • 1

TOPIC:

How to access to TD2 Object in LAVA Object 12 years 3 weeks ago #1799

  • FredyCC
  • FredyCC's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Database/Developer
  • Posts: 60
  • Thank you received: 10
I created several buttons inside the object D2Scene also TD2ImageControl control, my question is, How to access the properties of this last component, because I want to assign an image at runtime. :(

I would appreciate your comments, thank you very much

Please Log in or Create an account to join the conversation.

Re: How to access to TD2 Object in LAVA Object 12 years 3 weeks ago #1804

  • FredyCC
  • FredyCC's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Database/Developer
  • Posts: 60
  • Thank you received: 10
After hours I found a way; you need to set a BindingName to LAVA object, after that you can access it easily, for example:
   TD2ImageControl(D2Scene1.Root.FindBinding('Img1')).Bitmap.LoadFromStream(BlobStream); 

:cheer:

that's all

Regards
The following user(s) said Thank You: Konstantinos Papadoulas

Please Log in or Create an account to join the conversation.

  • Page:
  • 1