UI Interest Group Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Graph Palette like control

Hi,

I am trying to implement Graph palette like control for my application.

Graph palette has 3 controls - cursor, zoom and hand tool. Cool thing is the zoom control. When you click on that - a picture menu(like, picture ring control) pops up. How can I implement a control like this?

Thanks,

Ritesh

0 Kudos
Message 1 of 11
(7,518 Views)

First thought: place the pop up controls on a one-page tab control and use the "visible" property node of the tab control. To make it cleaner and reusable, I'll bundle the whole thing into an X-control.

0 Kudos
Message 2 of 11
(4,625 Views)

You have options:

  1. Use a pict ring control (you mentioned this).  You can screen grab the graphics from the NI control if you do a print screen while the menu is shown.
  2. Create a custom dialog with multiple buttons and the pictures as button graphics.
  3. Create a custom dialog using a picture control with all the graphics, and location to pick the one clicked on.

The functionality itself is switched using the Palette»Active Tool graph property.

0 Kudos
Message 3 of 11
(4,625 Views)

Hi Ritesh,

don't create multiple posts!

Usually you should ask such questions (only) in the forum...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 11
(4,625 Views)

GerdW - You're right that double-posting is generally bad form, but where you ask a question depends on the type of question being asked. The forums are good for technical support, but NI Community is best for high-level questions about programming approaches.

0 Kudos
Message 5 of 11
(4,625 Views)

Hi there,

I created an XControl which has the functionallity you describe.

I showed the functionallity in a gif image:

custom graph palette.gif

Here is the link:

http://dl.dropbox.com/u/67794116/Custom%20graph%20palette.zip

You can change the visual appearance by replacing the image of each element (Swipe data, Scale Box, etc.)

0 Kudos
Message 6 of 11
(4,625 Views)

hi leonkec,

There is a missing vi from the xctl called Set origin from VI child to zero.vi. Can you reupload it please? Thanks.

0 Kudos
Message 7 of 11
(4,625 Views)

@ Rando

Added the missing VI to the zip file and reuploaded it. It should now work.

0 Kudos
Message 8 of 11
(4,625 Views)

Hi Rando,

Did you try it? What did you think of it? What would you like to see improved?

Greetings Leon Cranshof

0 Kudos
Message 9 of 11
(4,625 Views)

Hi

I would like to try it, but am currentlty using LabView 2010. Can you please downsave it to 2010 version?

Thank you

reto

0 Kudos
Message 10 of 11
(4,625 Views)