09-16-2013 03:07 PM
Hi,
is there a way to put color pallete/color selection box in custom run time menu?
Thanks,
Ritesh
09-16-2013 03:17 PM
You can use a colorbox control to enter colors at run time.
09-16-2013 04:28 PM
I want it in a run time menu and not a separate control
Is this possible?
09-17-2013 10:35 AM
I think you would have to create your own containers in order to accomplish this. I was hoping that ms paint would have an activeX control that could be implemented in order to accomplish this, but I haven't been able to find anything. So, in short, I think altenbach's suggestion is your best and easiest way to give the user a usable color palette - try putting a color box in a tab control, or something similar.
09-17-2013 12:47 PM
09-17-2013 01:21 PM
You could use a picture control that pops up.
http://forums.ni.com/t5/LabVIEW/Show-Color-dialog-color-selector-as-on-colorbox-click/td-p/1131577
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-20-2013 10:20 AM
Here's kind of a kludgy way to do it (I haven't tried it, but it should work):
Have a color box on the FP that's hidden.
Trap the 'Menu Selection?' event, and within that event case, unhide the color box and move it under the mouse pointer.
Discard the menu selection. Trap the 'Mouse down' event on the color box, and re-hide it.
09-20-2013 10:25 AM
@paul_cardinale wrote:
Here's kind of a kludgy way to do it (I haven't tried it, but it should work):
Have a color box on the FP that's hidden.
Trap the 'Menu Selection?' event, and within that event case, unhide the color box and move it under the mouse pointer.
Discard the menu selection. Trap the 'Mouse down' event on the color box, and re-hide it.
I have done just that before and the results are pretty good. As long as you remember to hide the color box again after a selection, or user dismisses the selection. Otherwise you have a one pixel color box on top of what ever part of the control the user right clicked.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord