12-03-2008 05:02 PM
12-04-2008 02:36 AM
Could you post an example containing such controls?
I checked all standard digital numeric controls in LV 8.6 and they justify the number to the left. The digital numeric control from the system palette does not have increment/decrement arrows, the others have....
hope this helps,
Norbert
12-04-2008 07:32 AM
Hello Norbert,
Here's a better explanation of what I'm looking for, put together without any get-out-of-the-office-before-5-oclock rush wording. 🙂
The Modern/Numeric control defaults to showing the INC/DEC arrows and is left justified. I don't want the arrows, and I want the control right justified. After I place a Modern/Numeric, I have to tweak it to remove the INC/DEC arrows. After I place and tweak one, I can do a copy/paste or a control-drag to duplicate the control, but I find that I always have to tweak the first one. Plus, any time I use a block diagram "Create Control" shortcut, it places a Modern/Numeric that is left justified and has the arrows.
What I'd like to do is change LabVIEW's default settings so that when I place a Modern/Numeric, it does not show the arrows and is already right-justified.
I know I can create a custom control/typedef, but the problem with that approach is that now you have another file to distribute. Also, it wouldn't override LV's "Create Control" on normal numeric wires.
Is there a way to fiddle with LV's defaults, or am I out of luck?
Thanks!
12-04-2008 07:42 AM
No, there is no way in changing the default set of visual appearance of NI controls.
But working with custom controls is not that difficult. You can create your own control/typedef and the insert it into your palette (Tools >> Advanced >> Edit Palette Set).
Regarding distribution:
- If you distribute for developers, use the application builder to create a source distribution
- If distributing for end users, you should compile an exe. So typedefs either get disconnected or the .ctl is included in the exe.
hope this helps,
Norbert
12-04-2008 08:05 AM
12-04-2008 08:05 AM - edited 12-04-2008 08:09 AM
Hi PConrad,
well, no way to make own default controls.
But:
You can write a small vi, that gets references to all controls of a second vi. Then you parse that array of references and change the properties of each numeric control to your needs - each setting is available by property nodes too!
You can even put this vi into the Tools menu (like is done with CCT [CodeCaptureTool]).
12-04-2008 10:25 AM
Instructions for adding VI to the tools menu can be found here:
http://digital.ni.com/public.nsf/allkb/2ED4443B186788E18625714000757C03