LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

custom picture ring: disabling the popup menu

Solved!
Go to solution

I have custom picture ring controls -classic ones- and they work fine when clicking the increment and decrement arrows, however clicking anywhere else on the picture will cause a small popup to appear -like the ring menu control- which shows all pictures. I'd like to disable this during runtime; how to achieve?

 

 Im on Labview 8.6

Message Edited by _Faust on 03-22-2010 08:15 AM
0 Kudos
Message 1 of 10
(3,833 Views)

Hi Faust,

 

one way is to use an event structure to catch & cancel the mouse-clicks. Do you speak of left-clicks or right-clicks?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 10
(3,824 Views)

Yes this works fine for right mouse clicks, but in this case I'm referring to the left mouse click on the control.

 

Snippet attached to shwo what I mean. I want this popup NOT to show and the user only to use the increment/decrement buttons.

0 Kudos
Message 3 of 10
(3,799 Views)

Hi Faust,

 

what happens when you place a transparent decoration over the pictures of the ring (but not over the inc/dec arrows)?

That should do the trick of prohibiting the user to click the picture ring...

Best regards,
GerdW


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

It is  a no-go unfortunately. I've tried pasting a transparant PNG over it. Wont work.

 

As a matter of fact I've found out that the area that responds to the left-mouse click is also the maximum bounding box of what is visible of the picture. I.e. I tried making it very small, resulting in my button disappearing :'(

 

Any other suggestions?

 

 

0 Kudos
Message 5 of 10
(3,783 Views)

Hi Faust,

 

my suggestion was to use a decoration from the decorations palette (and make it transparent), not to paste a PNG...

 

Edit: see attachment for an example...

Message Edited by GerdW on 03-23-2010 12:11 AM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 10
(3,781 Views)

Would you mind saving it for LV 8.6?

 

Really curious about the solution. I'm probably being n00b again 😉

0 Kudos
Message 7 of 10
(3,778 Views)
Solution
Accepted by topic author _Faust

Hi Faust,

 

it's just a picture ring with a decoration on top, but here you go...

I only set the inner area transparent and left the border of the decoration in black so you can actually see the decoration... 

Message Edited by GerdW on 03-23-2010 12:15 AM
Best regards,
GerdW


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

AAAAAAAAHHHHHHHHH yeah it finally got through to me what you meant. BRILLIANT.

I was still busy in the customize control VI.

Maybe a bit of a weird solution but it works perfectly THANK YOU.

 

Maybe in future LV version an option for disabling this would be ok -just as it is available for the RMB-

 

thanks again!

 

 

Message Edited by _Faust on 03-22-2010 06:15 PM
0 Kudos
Message 9 of 10
(3,774 Views)

Hi Faust,

 

that's what the IdeaExchange is good for Smiley Wink

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 10
(3,770 Views)