LabVIEW

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 8
(4,069 Views)

Hi ritesh,

 

you already named it: use a picture ring control...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 8
(4,067 Views)

Hi Gerd,

maybe, if you look at the graph palette it'll make more sense.

The palellte looks like this 

NI_GraphPalette.JPG

 

And when you select the zoom control, it looks like this

NI_GraphPaletteZoom.JPG

0 Kudos
Message 3 of 8
(4,061 Views)

Hi Ritesh,

 

when I create a picture ring with several images included it looks the same!

Have you even tried?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 8
(4,058 Views)

Yes, I have already implemented that part.

In the picture control, the control shows the currently selected picture.

NI_MyPictRing.JPG

 

 

But in the palette, the control always displays the zoom button

NI_GraphPaletteZoom.JPG

 

Seems like the palette is using a boolen button for zoom, and somehow making the picture ring control menu visible when you click on it. 

0 Kudos
Message 5 of 8
(4,050 Views)

Hi Ritesh,

 

is it that bad to show the current state of the zoom mode selection?

 

If you want to simulate the graph palette in all and every feature, I would suggest to use (customized) boolean buttons. When the user clicks on "zoom" you open a small window (positioned above "zoom") showing another boolean buttons!

 

Maybe someone else will have a more simple idea...

 

Btw. you could have explained your actual point in this question a lot earlier...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 8
(4,047 Views)

Hi GerdW,

Even though it is not necessary to show the "zoom" pic on the control, I really like the way it is implemented in the palette. So I am just curious to know how it can be implemented as it looks really nice and slick.

 

Thanks,

Ritesh

0 Kudos
Message 7 of 8
(4,036 Views)

Hi there,

 

I created an XControl which has the functionallity you describe.

 

I showed the functionallity in a gif image:

 

Graph Palette XControl

 

Here is the link:

Graph Palette XControl

 

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

 

Let me know what you think of it and wether or not you want some improvements.

Message 8 of 8
(3,992 Views)