2014-04-11 13:59 UTC
Hi guys,
I'm wondering if there is a way to add an entry to a layer combo box (a combo box whose style is 13).
The addlist and addstring methods don't seem to work on a "layer-styled" combobox (which may be intentional?).
Here is why I want to do this:
The built in layer-styled combobox works great but I would like to add in one more item which will be something like "Current". This is part of a configuration menu for a module and if "Current" is selected then later in the code the program will use whatever layer is current when it needs a target layer.
Maybe you have some insight on a better way to do this or have done something similar in the past?
I'm wondering if there is a way to add an entry to a layer combo box (a combo box whose style is 13).
The addlist and addstring methods don't seem to work on a "layer-styled" combobox (which may be intentional?).
Here is why I want to do this:
The built in layer-styled combobox works great but I would like to add in one more item which will be something like "Current". This is part of a configuration menu for a module and if "Current" is selected then later in the code the program will use whatever layer is current when it needs a target layer.
Maybe you have some insight on a better way to do this or have done something similar in the past?