2016-06-10 10:58 UTC
I have a Layer Combo Box (style 13), and every time I start the dialogue the layer list is "doubled" - after three starts of dialogue I have 3 times Layer 0, 3 times layer Defpoints, .....
At the moment I don't see where it is coming from - the only code which is related to the list is
a) where I select an entry from the list and save the value
b) select an entry based of an existing value.
The detection of the layer is done by OpenDCL.
(setq lst_layer (dcl-ComboBox-GetLBText Formator/main/lst_layer (dcl-ComboBox-GetCurSel Formator/main/lst_layer)))
......
(if (and lst_layer
(tblsearch "layer" lst_layer))
(dcl-ComboBox-SetCurSel Formator/main/lst_layer (dcl-ComboBox-FindString Formator/main/lst_layer lst_layer))
(dcl-ComboBox-SetCurSel Formator/main/lst_layer 0)
)
At the moment I don't see where it is coming from - the only code which is related to the list is
a) where I select an entry from the list and save the value
b) select an entry based of an existing value.
The detection of the layer is done by OpenDCL.
(setq lst_layer (dcl-ComboBox-GetLBText Formator/main/lst_layer (dcl-ComboBox-GetCurSel Formator/main/lst_layer)))
......
(if (and lst_layer
(tblsearch "layer" lst_layer))
(dcl-ComboBox-SetCurSel Formator/main/lst_layer (dcl-ComboBox-FindString Formator/main/lst_layer lst_layer))
(dcl-ComboBox-SetCurSel Formator/main/lst_layer 0)
)