LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Numeric Control

I'm trying to find a way to rotate the increment/decrement buttons on the classic numeric control (and the "regular" numeric control as well).  I have tried searching here, and also via the customizing of the controls but I have no luck.  I can change the size of the control and move it around, just not rotate the arrows like I need it.  So instead of the standard increment/decrement buttons I'd have something like this:  < > .  I'm not sure if someone could do this quickly or explain how it could be done, but I'm not great with editing the controls and customizing that way.  Again, i'm looking for it in both the regular and classic numeric controls.  I'm only asking since it fits my application at this time.
 
Any help anyone could provide, I'd be grateful.
 
Thanks...
 
 
                                                                                  
Using Labview 7.0 and 2010 SP1 with Windows XP and 7.
0 Kudos
Message 1 of 12
(4,988 Views)
Here you go. What I did was use left/right arrows on the decorations palette. I put them on the front diagram, copied them, and in the control editor, did an import. Each increment/decrement button has two separate picture items so I also used the recessed version of each decoration.
Message 2 of 12
(4,982 Views)
Could you repost the attachment for 7.0?  Not sure if you had this or not, but I'm looking for both the newer/standard regular control and the older "classic" control as well.
Using Labview 7.0 and 2010 SP1 with Windows XP and 7.
0 Kudos
Message 3 of 12
(4,975 Views)
Here's the new type control in 7.0. Try to follow my directions to create your own. If you get stuck, explain where you're having problems and we'll try to help. This modification is really one of the simpler ways to create a custom control.

Message Edited by Dennis Knutson on 01-17-2006 02:38 PM

Message 4 of 12
(4,972 Views)

Not sure if you forgot to attach the control or not in your last post.

 

Thanks for your help.

 

Using Labview 7.0 and 2010 SP1 with Windows XP and 7.
0 Kudos
Message 5 of 12
(4,964 Views)
Looks like I just missed your last post before you added the control.  Anyway, I followed your directions on what you did to create your control and came up with one of my own for the classic control, using the arrows already there.  I've attached it here.  It's my final result I was using, after a few modifications.
 
I was trying to do the same thing for the regular numeric control, but I was having trouble with copying and then importing the arrows back into Labview.  I've attached the image of that arrow also (not the best quality but I think you get the idea).  I can't get rid of the areas outside of the rounded arrow in the corner no matter what I do.  When I import it back, it is always a square image.  I was using Paint to do my modifications in.  Not sure if there is something better to do this or not, that would get rid of that area around the arrow.  It's not like this is a huge deal, but I'd like to have the option of using the regular control like I now have the classic control.   
 
Anyway, thanks for your help and suggestions, I appreciate it as always. 
Using Labview 7.0 and 2010 SP1 with Windows XP and 7.
0 Kudos
Message 6 of 12
(4,926 Views)
I suspect that you might find better success using transparent GIF files.

I use PainShop Pro, although any tool that allows creation of transparent GIF's will do the job, set the back ground colour (choose carefully) to be transparent when you save the file. Most tools alllow importing of bitmaps so you wont loose any work, but bitmaps can potentially store more colours than GIF files so you may find a colour reduction forced upon you; which in turn may degrade the graphic if you don't choose the reduction technique carefully. The other effect of the colour pallette reduction is that you may potentially get pallette conflict issues if the display has a reduced colour set i.e. 256 colours. If this happens you get strange colours displayed in the image. Finding 256 colour displays tends to be rarer these days, but it helps to be aware.

Hope this helps?

Message Edité par Conseils le 01-19-2006 08:18 AM

Message 7 of 12
(4,921 Views)

Hi Conseils, thanks for replying.  I tried setting the background in Paint to be transparent, but I didn't seem to have any luck after following your suggestion (although it did make sense to me).  I still seem to get the same result as before.  I do not have any other software that would do the job. 

Any chance you could copy the arrow to a picture, like I was trying to do?  Perhaps you'll have better luck with it.  I can take care of the control, I just need to figure out how to get the arrows to make it with.

Thanks for your advice and help...

Using Labview 7.0 and 2010 SP1 with Windows XP and 7.
0 Kudos
Message 8 of 12
(4,899 Views)
I did not think that Paint supported transparent images, we live and learn.
I am posting the image you put up as a transparent bitmap formatted as a transparent GIF, give it a go and see what results you get?

The transparent pallete entry is 25 (white 255:255:255)

Regards

Message 9 of 12
(4,877 Views)
Thanks Conseils.  Is there any chance you can do that same thing again for the button I am attaching here?  It is same button, but it is for when it is pressed down and grayed.  Also is the any chance you can rotate both of the images (buttons) so the arrows are facing the other way as well?  I can't seem to get that done on my computer for some reason like I thought I would with your image.
 
I appreciate your help.  By the way, what program did you say your using to get the image transparent like that?
 
 
Using Labview 7.0 and 2010 SP1 with Windows XP and 7.
0 Kudos
Message 10 of 12
(4,853 Views)