12-19-2007 03:37 PM
12-19-2007 04:02 PM - edited 12-19-2007 04:06 PM
I'm not sure if you just want to automatically populate your FP with LV control and indicators that you will latter develop the code for
OR
Want an application that will populate the FP while it is running.
If you just want drop controls based on the SQL query that you will then wire up, then look at LAVA's Scripting thread. BE advised that NI will NOT support code involving scripting.
If your app has do this while running, then you can use the Picture Control as previously mentioned by Christian Altenbach. To help you out with this version, I have been collecting links to Picture Related threads in a thread that can be found here. Everything you will need to create controls on the fly can done using those links. You may want to skip to the recent link ( here ) were I posted some code that gets you most of the way there. (see image)
That example shows you how get your image, put it in a picture and latter determine which object the user clciked.You JUST have to adapt it for your use. I have used this technique for years and sometimes fool myself when I attempt to double-click one of my "Virtual Controls" only to find the terminal for the Picture control.
I should warn you, that this approach is not intended for the more timid amoung us.
Ben
PS Great picture Christian!12-19-2007 04:22 PM
12-19-2007 04:31 PM
12-19-2007 05:06 PM
Roons,
After looking at your picture closer,
I strongly urge you to look at the code and discusion in this thread where Jean-Pierre and I started brain-storming "how to create dynamic controls" starting on 8-Feb-2002. His posted code was intended to be driven by a DB.
Please read that thread and look at his code.
Ben
PS It may need some updating but the ideas are still the same.
12-20-2007 02:48 AM - edited 12-20-2007 02:57 AM
12-20-2007 06:40 AM - edited 12-20-2007 06:45 AM
12-20-2007 07:39 AM
03-11-2008 08:45 AM
Hi Christian,
I'd like to use your picture for a paper I have to write. Of course I will cite you as the artist.
So would you mind granting me permision to use it?
Ben
03-11-2008 11:24 AM
Ben wrote: So would you mind granting me permision to use it?