Bug in OpenDCL 8.1.1.x or something has changed

Started by Emiliano, October 17, 2016, 06:46:32 AM

Previous topic - Next topic

Emiliano

To populate a ComboBox I use the following code:

Code (autolisp) Select

(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

Code (autolisp) Select
(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?

owenwengerd

Owen Wengerd (Outside The Box) / ManuSoft

Emiliano

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"



Peter2

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.
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

Tharwat

Just call this function at the top to clear the combo-box and as shown in help document:

Emiliano

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

Peter2

#8
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

Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10

Jim Short

#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
Jim Short

Emiliano

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 ?

velasquez


Emiliano

#12
No solution?  :'(
Is there an alternative way to clear the list of a ComboBox?

Emiliano

I resolved with the following workaround:  ;D


Code (autolisp) Select

(defun ClearCombobox ()
  (repeat (dcl-ComboBox-GetCount APPNAME_Form/FormMain/PartList)
    (dcl-ComboBox-DeleteItem APPNAME_Form/FormMain/PartList 0)
  )
  (princ)
)



Peter2

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  ;)
Peter
ODCL 8.1.... German, AutoCAD 2017 - 2018, Win 7 x64, Win 10