Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Create Dynamic Instances of Objects
PostPosted: Thu Jun 21, 2018 10:33 pm 

Joined: Mon Jun 18, 2018 6:12 pm
Posts: 3

Offline
Is this possible to declare new instances and remove instances of objects on a screen on the fly.

eg: On_ScreenOpened, read some tag, draw n# instances at dynamic positions

then animate those instances individually from those positions and toggle visibility at different stages based on arbitrary tag values

// this bit could be done with a reset position and visibility control
finally remove those instances and create a new set of instances.


 Profile  
 
 Post subject: Re: Create Dynamic Instances of Objects
PostPosted: Mon Jun 25, 2018 6:44 am 

Joined: Mon Jun 11, 2012 2:10 pm
Posts: 119

Offline
d_reibelt,

Technically, this can be done, but I've never tried it before in iX. In C#, to add a control to the screen you would create the object, add it to the form's Controls list, then refresh the form. To remove it, you would remove the object from the controls list, etc. Doing some digging, it seems iX's equivalent to Controls is DrawingPrimitives.

_________________
Adam M.
Controls Engineer
FlexEnergy


 Profile  
 
 Post subject: Re: Create Dynamic Instances of Objects
PostPosted: Tue Jun 26, 2018 3:18 am 

Joined: Mon Jun 18, 2018 6:12 pm
Posts: 3

Offline
AMitchneck,

yes thanks, I found a way to do it using standard forms techniques. This key is understanding how iX is doing the same thing.


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron