LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically add front panel objects

hello,

 

I would like to programmatically add controls and indicators to a front panel. I have read a thread:

 

http://forums.ni.com/ni/board/message?board.id=170&message.id=70347&query.id=10819#M70347

 

Ben Rayner describes a technique which takes an image of the relavant object, then adds this image to a picture on the front panel. I was wondering if anyone has an example of this techinique? Or if there is a simpler method of doing it?

 

Thanks,

paul.

 

0 Kudos
Message 1 of 4
(4,050 Views)

Hi Paul,

 

This thread contains a collection of Picture related threads.

 

Contained in that collection you will find a link to this thread where in reply #52 I posted an entry for the "Obfuse Code Challenge" . In that example I grab the image of a boolean and use it in a Picture control to play a game of Hang Man" while executing a random walk to speel out "Hello World". That code is not documented since the game was to be obfuse.

 

In reply #33 of this thread, I posted a new version of the CC and Friends" project where I used a picture control to display an arbitrary set of images.

 

Ading to the above:

 

I have developed and delivered "Controls on the Fly" applications

 

 *

 

add they were well recieved, BUT....

 

They are not trivial!

 

So if you would like to share what you are trying to accomplish, we may be able to makes suggestions that are esier to implement. 

 

Ben

 

* Art work by Christian Altenbach

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 4
(4,043 Views)

thanks for your reply Ben.

 

I found a simpler way for my aim, which is to have a cluster of controls in an array and then adding/removing array elements as the user requires. 

The controls never need to change, so this will work for me. I should have thought of that earlier!

 

Cool fly!

thanks again.

 

 

0 Kudos
Message 3 of 4
(4,028 Views)

labJunky wrote:

thanks for your reply Ben.

 

I found a simpler way for my aim, which is to have a cluster of controls in an array and then adding/removing array elements as the user requires

The controls never need to change, so this will work for me. I should have thought of that earlier!

 

Cool fly!

thanks again.

 

 


THAT is the correct solution!

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 4 of 4
(4,009 Views)