03-23-2007 03:21 PM
03-24-2007 05:55 AM
Up to CVI 7.1 the only escape code managed by rings is the separator bar ( \033m- ). Here a snippet from the documentation:
You can create columns in a list box control by embedding escape codes in the itemLabel parameter. Use \033 to indicate an escape code (...)
To insert a separator bar into a ring control (ring, menu ring, recessed menu ring, or pop-up menu ring), embed the escape code \033m- in the itemLabel parameter.
The separator bar is correctly handled by the ring control if it is the only constituent of the item lable as in the following code:
InsertListItem (panelHandle, controlID, -1, "\033m-", i);
if it is embedded in a more complex string it produces what you are seeing, a small box and the "m-" string shown in the item label.
03-27-2007 04:29 PM
03-27-2007 06:16 PM
03-28-2007 08:44 AM
Hi SBSB,
I going to take a wild guess but one rule you must abide by when using the
"\033m-" escape code for separator bars, is that the first item in a list cannot be a separator bar.
For example if you said
InsertListItem
(handle, ctrlID, 0, "\033m-", 0);
InsertListItem (handle, ctrlID, 1, "Item1", 1);
InsertListItem (handle, ctrlID, 2, "Item2", 2);
Then you would get the small square
(see attached First Item.jpg snapshot).
However if you said:
InsertListItem
(handle, ctrlID, 0, "Item1", 0);
InsertListItem (handle, ctrlID, 1, "\033m-", 1);
InsertListItem (handle, ctrlID, 2, "Item2", 2);
Then you
would receive good results with a separator bar as shown in the attached Good
Escape Code.jpg
Hope this helps and if you are still having issues, let me know.
Best Regards,
04-16-2007 02:30 PM
07-21-2009 12:56 AM
Hi Pal,
I wonder if there is a seperator bar for the ring control in LabVIEW
07-21-2009 05:03 AM
Hi NangSgi,
I'm not aware of a method to do so, but you may find a better help asking this question in the LabVIEW forum.
07-21-2009 10:24 PM
Thanks a lot!
I find it.
Add seperator to ring control by using"_" symbol.