06-03-2011 09:32 AM
I am trying to do two things here regarding customizing controls.
The first is to add a down-arrow decoration to an enum so that it looks kind of like a menu ring (click the down arrow to drop down the selections). If I simply paste it on top of the control, the decoration will intercept the click and not drop the selections down. I want to have the control colored, so putting it behind and making the ring text background transparent doesn't really work either. If I make it part of the "Ring Text" background element, it's fine for that one size, but if I resize the control it gets all stretched out.
The second is to modify the "Page Labels Display" in a tab control. The only selection allowed when attempting to customize the tab control is to "replace" the page labels display with a different control type. Every enum or ring that I've tried has simply beeped at me with no replacement. I would really like to get the aforementioned Ring-styled enum in this box as well.
One other quirk that I haven't noticed before (Maybe since I haven't done a lot of work with tabs in the past), but when I'm trying to get context help for anything inside of a tab, the only thing that shows up is the context help for the tab itself. Is that "working as expected"?
Regards,
Mike
06-06-2011 05:49 PM
hi Mike,
there is another discussion forum covering your first question, but it sounds like your best bet would be a ComboBox:
This will give you the appearance you want, and behaves the same as an Enum.
In order to set up a similar drop down menu of the pages of a Tab Control, it will be a little more indirect. Take a look at the attached example, which populates a combo box with the pages of a Tab Control.
That quirk you mentioned with the Context Help and Tab Controls is a known bug, and is fixed in LabVIEW 2011. Hope this helps!
~kgarrett
04-17-2015 07:41 AM
Can you attach to Labview 2009
04-20-2015 08:03 AM
Hello this document can be useful if you want to use the same control in different VI or in other project as well.
http://zone.ni.com/reference/en-XX/help/371361H-01/lvconcepts/custom_cont_ind_type/