To populate a ComboBox I use the following code:
(dcl_ComboBox_Dir APPNAME_Form_FormMain_PartList (findfile "namefolder\\L") "*.dwg")
This code works correctly in OpenDCL 8.0.5.0.
In fact, it replaces the list already present in ComboBox with a new list.
While in OpenDCL 8.1.1.x the same line of code is not a substitute exists but the list adds new items!
I have also tried using the following line of code
(dcl-ComboBox-Clear APPNAME_Form/FormMain/PartList)
In OpenDCL 8.0.5.0. it works properly (it empties the list ...), while in OpenDCL 8.1.1.x does not work (the list does not empty)!
Can you help me to solve this problem?
Which combo style?
Quote from: owenwengerd on October 17, 2016, 10:04:16 AM
Which combo style?
Hi Owen,
Thank you for your answer
The combo style is: "2 - Drop Down"
I use this method to work around this accumulating process:
http://www.opendcl.com/forum/index.php?topic=2377.msg11909#msg11909 (http://www.opendcl.com/forum/index.php?topic=2377.msg11909#msg11909)
Quote from: Tharwat on October 18, 2016, 12:21:21 PM
I use this method to work around this accumulating process:
http://www.opendcl.com/forum/index.php?topic=2377.msg11909#msg11909 (http://www.opendcl.com/forum/index.php?topic=2377.msg11909#msg11909)
I do not understand.
What should I do?
Quote from: Tharwat on October 18, 2016, 12:21:21 PM
I use this method to work around this accumulating process:...
This discusses
dcl-ComboBox-Clear which is already tried and used by Emiliano. It seem that I have the same problem (with combo-box style 0), but I have not analysed it in detail and in different versions.
Just call this function at the top to clear the combo-box and as shown in help document:
Quote from: Tharwat on October 19, 2016, 11:55:13 AM
Just call this function at the top to clear the combo-box and as shown in help document:
This method works in OpenDCL 8.0.5.0
While it does not work in OpenDCL 8.1.1.1: it does not empty the list!
Also in 8.0.5.0 I do not need to use this method to clear the list as with "dcl_ComboBox_Dir" I have no duplicates.
These problems are only present in 8.0.5.0
Quote from: Emiliano on October 19, 2016, 11:20:57 PM
This method works in OpenDCL 8.0.5.0
While it does not work in OpenDCL 8.1.1.1: it does not empty the list!...
I want to confirm the behaviour. Please take a look at the attached code and at the screencast here:
http://autode.sk/2eUrhnu
#787 (dcl-ComboBox-Clear cntrlName) failing in 8.1.0.0
(dcl-ComboBox-Clear cntrlName)
This function works in 8.0.5.0 but not in 8.1.0.0.
It returns true but does nothing.
Reported on 9-10-2016
Jim
I see that other developers have encountered the same problem.
Is there a solution?
When OpenDCL updated with the fix for this bug will release ?
I also found the same problem.
No solution? :'(
Is there an alternative way to clear the list of a ComboBox?
I resolved with the following workaround: ;D
(defun ClearCombobox ()
(repeat (dcl-ComboBox-GetCount APPNAME_Form/FormMain/PartList)
(dcl-ComboBox-DeleteItem APPNAME_Form/FormMain/PartList 0)
)
(princ)
)
Quote from: Emiliano on October 26, 2016, 01:50:37 AM
I resolved with the following workaround: ;D ...
Fine, thanks for the contribution.
Quote from: Emiliano on October 26, 2016, 01:21:13 AM
No solution? :'( ...
You have to be a little more patient - usually bugs and problems are fixed rather quick, but you know that OpenDCL is an open project and not a commercial software ;)
Quote from: Peter2 on October 26, 2016, 01:57:23 AM
You have to be a little more patient - usually bugs and problems are fixed rather quick, but you know that OpenDCL is an open project and not a commercial software ;)
Of course ;-)
I greatly thank all developers working on OpenDCL!