09-13-2015 05:45 AM
Hi all,
Has anybody ever created a string input control that has an 'X' at the right corner to reset the values in the control. If yes, how to do? I do have plenty of filters for my data in my application and it would be sweet to have similar input reset button as with the most aple applications.
Thank u 🙂
09-13-2015 09:19 AM
Hmm, an interesting idea. Why couldn't you create a Cluster with two elements, String (a String, naturally) and Reset (a Latching Boolean). I haven't tried making the appropriate Custom Control, but I can envision it ... . I'm sure someone will give it a shot ... (maybe even I).
Bob Schor
09-13-2015 09:34 AM
Hey, it works! It was even easier than I thought it would be -- it's just a cluster, with some appropriate sizing and arranging the elements (Auto-sizing) horizontally. I'm attaching the control -- feel free to play with it.
Bob Schor
09-13-2015 11:55 AM
Cool! Thank you! 🙂
09-13-2015 01:38 PM
09-14-2015 12:57 AM
09-14-2015 03:23 AM
Have a look at this tutorial for XControls:
Creating New Front Panel Objects with LabVIEW XControls - National Instruments
http://www.ni.com/tutorial/3198/en/
It explains it pretty nicely. There is also a LabVIEW Example that you can use as a starting point.
Refer to the Simple Dual Mode Thermometer XControl project in the labview\examples\Controls and Indicators\XControls\Dual Mode Thermometer directory.
09-21-2015 07:26 AM
Hi all,
Thanks for your input. At the same time you recommended to so solve this task with xcontrols, I attended the lv adavnced architecture training and xcontrols are part of it. here's the solution:
Thank you all!
02-23-2017 04:17 AM
hi again,
the xcontrol I posted some time ago works like a charm, except the key focus. This seems to be an issue with any type of xcontrol that you cannot set the focus via the application anymore. I had the idea of a workaround to use methods, but I didn't got it to work. Any suggestions how to set the key focus of a xcontrol?
Thanks all!
02-23-2017 08:04 AM
What have you tried? I would be very surprised if the application key focus property worked. My expectation would be that it would give focus to the XControl as a whole, not controls within it.
Mike...