Eugen Graf Posted June 25, 2008 Report Share Posted June 25, 2008 Hello, does anybody know if it's possible to make something like this in LabVIEW ? Thank you Quote Link to comment
LAVA 1.0 Content Posted June 25, 2008 Report Share Posted June 25, 2008 QUOTE (Eugen Graf @ Jun 24 2008, 10:06 AM) Hello, does anybody know if it's possible to make something like this in LabVIEW ?Thank you Check out http://forums.lavag.org/Event-Value-change-during-the-change-and-not-at-the-end-t7388.html&pid=28049' target="_blank">this thread for some ideas. Once the mouse down is detected, move a hidden off-screen ring to over-lap the cell and set screen focus to it. Just trying to help, Ben Quote Link to comment
Eugen Graf Posted June 25, 2008 Author Report Share Posted June 25, 2008 Ok, thank you, I just made it. Quote Link to comment
Justin Goeres Posted June 25, 2008 Report Share Posted June 25, 2008 QUOTE (Eugen Graf @ Jun 24 2008, 06:39 AM) Ok, thank you, I just made it. In my experience, things like this are really tough to implement because there are lots of weird things that can happen after you display the ring control. The first one off the top of my head is what happens when the user pulls down the ring control, but instead of clicking inside it to select something, they click outside it? Normally, that's the behavior when the user wants to cancel what they were doing and exit the item selection without changing the current value of the selector. How do you handle that case? I'm asking not because I have an answer, and not because I think there's not an answer -- I just mean that the answer isn't obvious to me right now, but your users will expect it to work that way. I've historically found that replicating all the expected behaviors in a LabVIEW control is really hard if not impossible. If you've got a solution, I'd be really interested to hear it. Quote Link to comment
LAVA 1.0 Content Posted June 25, 2008 Report Share Posted June 25, 2008 QUOTE (Justin Goeres @ Jun 24 2008, 12:18 PM) In my experience, things like this are really tough to implement because there are lots of weird things that can happen after you display the ring control.The first one off the top of my head is what happens when the user pulls down the ring control, but instead of clicking inside it to select something, they click outside it? Normally, that's the behavior when the user wants to cancel what they were doing and exit the item selection without changing the current value of the selector. How do you handle that case? I'm asking not because I have an answer, and not because I think there's not an answer -- I just mean that the answer isn't obvious to me right now, but your users will expect it to work that way. I've historically found that replicating all the expected behaviors in a LabVIEW control is really hard if not impossible. If you've got a solution, I'd be really interested to hear it. Ring>>> Mouse Leave Event hides ring? Ben Quote Link to comment
Eugen Graf Posted June 25, 2008 Author Report Share Posted June 25, 2008 QUOTE (Justin Goeres @ Jun 24 2008, 06:18 PM) In my experience, things like this are really tough to implement because there are lots of weird things that can happen after you display the ring control.The first one off the top of my head is what happens when the user pulls down the ring control, but instead of clicking inside it to select something, they click outside it? Normally, that's the behavior when the user wants to cancel what they were doing and exit the item selection without changing the current value of the selector. How do you handle that case? I'm asking not because I have an answer, and not because I think there's not an answer -- I just mean that the answer isn't obvious to me right now, but your users will expect it to work that way. I've historically found that replicating all the expected behaviors in a LabVIEW control is really hard if not impossible. If you've got a solution, I'd be really interested to hear it. Of course I handle that case. I replace the Cell Value in the table only if the Value of the Combo Box was changed (Value Change Event). If the user will klick every else this event will not happen. Quote Link to comment
Ton Plomp Posted June 25, 2008 Report Share Posted June 25, 2008 QUOTE (neB @ Jun 24 2008, 06:33 PM) Ring>>> Mouse Leave Event hides ring?Ben As soon as you hover the options you will get a mouse-leave event. This can be triggered by just clicking the control. But hey a ring control has two super-duper events: 'Activated' this one gets triggered as soon as the control is clicked 'Dismissed' if the Activated event is well ehm dismissed Ton Quote Link to comment
Eugen Graf Posted June 25, 2008 Author Report Share Posted June 25, 2008 QUOTE (neB @ Jun 24 2008, 06:33 PM) Ring>>> Mouse Leave Event hides ring?Ben QUOTE As soon as you hover the options you will get a mouse-leave event. This can be triggered by just clicking the control. But hey a ring control has two super-duper events: 'Activated' this one gets triggered as soon as the control is clicked 'Dismissed' if the Activated event is well ehm dismissed Ton I use Combo Box, because I can change the Size of this control to the size of the table cell. Can I hange the size of a ring control? I didn't find this property. P.S. and here is the Front Pannel of the VI. Quote Link to comment
JDave Posted June 25, 2008 Report Share Posted June 25, 2008 I have played with this a bit, and agree that it is fraught with difficulties. But if the use case is limited, it should work great. QUOTE (tcplomp @ Jun 24 2008, 09:47 AM) As soon as you hover the options you will get a mouse-leave event.This can be triggered by just clicking the control. But hey a ring control has two super-duper events: 'Activated' this one gets triggered as soon as the control is clicked 'Dismissed' if the Activated event is well ehm dismissed Ton Where are these events, Ton? They sound awesome, but I have never seen them. Quote Link to comment
Ton Plomp Posted June 25, 2008 Report Share Posted June 25, 2008 QUOTE (JDave @ Jun 24 2008, 08:14 PM) I have played with this a bit, and agree that it is fraught with difficulties. But if the use case is limited, it should work great.Where are these events, Ton? They sound awesome, but I have never seen them. I am currently working in 8.2 and they are not present there, but they are available in 8.5 (they seem to be private though): I assume they are private because the help goes nowhere. Eugen, Is named Numeric size the one you are looking for? Ton Quote Link to comment
JDave Posted June 25, 2008 Report Share Posted June 25, 2008 QUOTE (tcplomp @ Jun 24 2008, 11:31 AM) I am currently working in 8.2 and they are not present there, but they are available in 8.5 (they seem to be private though):I assume they are private because the help goes nowhere. Ton Thanks!! It looks like I never put in the token for private properties in 8.5. That will help a lot to solve the issue with clicking on the current ring value. No event is generated from this event (until now :thumbup: ) Quote Link to comment
Ton Plomp Posted June 25, 2008 Report Share Posted June 25, 2008 QUOTE (JDave @ Jun 24 2008, 08:38 PM) Thanks!! It looks like I never put in the token for private properties in 8.5. That will help a lot to solve the issue with clicking on the current ring value. No event is generated from this event (until now :thumbup: ) I don't think an event is fired if the same value is selected again (haven't tested). Ton Quote Link to comment
JDave Posted June 25, 2008 Report Share Posted June 25, 2008 QUOTE (tcplomp @ Jun 24 2008, 11:42 AM) I don't think an event is fired if the same value is selected again (haven't tested).Ton You're right. What a loss. It only seems to fire when the escape button is pressed. Quote Link to comment
Eugen Graf Posted June 25, 2008 Author Report Share Posted June 25, 2008 I think it's something for X-Controls CR Quote Link to comment
JDave Posted June 25, 2008 Report Share Posted June 25, 2008 QUOTE (Eugen Graf @ Jun 24 2008, 02:14 PM) I think it's something for X-Controls CR Yeah, I started making into an XControl, but never finished it off. I suppose I could post it to the CR in Progress. One of the difficult things was that you can only get the events while the VI is running. And then I dreamed about incorporating the http://forums.lavag.org/-t10063.html&view=findpost&p=41598' target="_blank">new fancy MC Listbox that PJM_LabVIEW found. Yeah... that never happened. Quote Link to comment
wesramm Posted June 28, 2008 Report Share Posted June 28, 2008 QUOTE (Eugen Graf @ Jun 24 2008, 12:57 PM) I use Combo Box, because I can change the Size of this control to the size of the table cell. Can I hange the size of a ring control? I didn't find this property. P.S. and here is the Front Pannel of the VI. I have the need for this functionality and am playing around with the alignment of the combo box on the table. Did you have to customize the combo box itself to achieve good registration with the table cells below? At best, my first cut looks poor. Your's looks nice.. Any tips? Wes Quote Link to comment
Eugen Graf Posted June 28, 2008 Author Report Share Posted June 28, 2008 QUOTE (wesramm @ Jun 27 2008, 08:48 PM) I have the need for this functionality and am playing around with the alignment of the combo box on the table. Did you have to customize the combo box itself to achieve good registration with the table cells below? At best, my first cut looks poor. Your's looks nice.. Any tips?Wes No, I didn't customize Combo Box. I try always to use System Controls, not theese from LabVIEW Classic or Modern Palette. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.