Jump to content

Create and resize buttons in a running VI

Recommended Posts


 is it possible to create and resize a button in a running vi's front panel?
I would like for example to place a square button where I press mouse down and then, if I drag left and right borders, resize it.
I've done something similar in the past using images, but this time I need buttons to be single objects I can move in a second time

Link to comment

Yes there is no real native solution for this.  NXG did tease a dynamic control creation but I'm not sure it made it far into development.  Depending on your needs I would suggest different solutions.  I have accomplished similar functions with picture controls in the past for creating a dynamic ribbon interface.  Here a running VI can generate an image that looks like a set of group buttons, and tabs and allows for setting of various background colors.  Another less polished solution revolves around parent and child relationships of windows, and dynamically running VIs.  I called this the Multi Panel Interface and honestly it didn't make it pas the proof of concept phase.  But for simple stuff, and a finite set of controls, you're probably better off just having the controls, then showing or hiding them as needed.

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.

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.