I need to create a dropdown listbox showing a static list with the look of a hierarchy, something like this:
DROPDOWN_TEST.addItem(1, "Option1");
DROPDOWN_TEST.addItem(11, "----SubOption11");
DROPDOWN_TEST.addItem(12, "----SubOption12");
...using blank spaces instead of '-'. The problem is that blank spaces are ignored when the contents of the list box is displayed, and both texts appear with the same left margin.
Is there any special scape sequence or character to emulate a blank space? I'd wish to avoid having to develope a new dropdown component only for this feature.
thank you for your help!