Jump to content

Configuring XControls using an .ini file


Recommended Posts

Hi. I have a front panel that consists of 30 XControls. Depending on the test each of them has to have different caption and position.

I use an .ini file to read the configuration data and assign it to the specific XControl.

xcontrol.jpg

But if I have many Xcontrols i have to create separate Property Nodes and assign the data for every control separately. Is there a way to put this inside a loop so the code uses smaller area of the screen?

Link to comment

In your init state of the XControl you could read the settings from the configuration file and load them.

If the XControl is an initial drop the previous version is different than 0.0.0.0, and you can get the label of the control to read the ini section.

Ton

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.