OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Emiliano on October 17, 2016, 06:46:32 AM

Title: Bug in OpenDCL 8.1.1.x or something has changed
Post by: Emiliano on October 17, 2016, 06:46:32 AM
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?
Title: Re: Bug in OpenDCL 8.1.1.x or something has changed
Post by: owenwengerd on October 17, 2016, 10:04:16 AM
Which combo style?
Title: Re: Bug in OpenDCL 8.1.1.x or something has changed
Post by: Emiliano on October 18, 2016, 07:26:42 AM
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"
Title: Re: Bug in OpenDCL 8.1.1.x or something has changed
Post by: 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)
Title: Re: Bug in OpenDCL 8.1.1.x or something has changed
Post by: Emiliano on October 19, 2016, 08:57:17 AM
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?
Title: Re: Bug in OpenDCL 8.1.1.x or something has changed
Post by: Peter2 on October 19, 2016, 11:36:52 AM
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.
Title: Re: Bug in OpenDCL 8.1.1.x or something has changed
Post by: 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:
Title: Re: Bug in OpenDCL 8.1.1.x or something has changed
Post by: Emiliano on October 19, 2016, 11:20:57 PM
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
Title: Re: Bug in OpenDCL 8.1.1.x or something has changed
Post by: Peter2 on October 20, 2016, 03:33:10 AM
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

Title: Re: Bug in OpenDCL 8.1.1.x or something has changed
Post by: Jim Short on October 20, 2016, 07:00:33 AM
#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
Title: Re: Bug in OpenDCL 8.1.1.x or something has changed
Post by: Emiliano on October 22, 2016, 06:47:34 AM
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 ?
Title: Re: Bug in OpenDCL 8.1.1.x or something has changed
Post by: velasquez on October 23, 2016, 03:59:59 AM
I also found the same problem.
Title: Re: Bug in OpenDCL 8.1.1.x or something has changed
Post by: Emiliano on October 26, 2016, 01:21:13 AM
No solution?  :'(
Is there an alternative way to clear the list of a ComboBox?
Title: Re: Bug in OpenDCL 8.1.1.x or something has changed
Post by: Emiliano on October 26, 2016, 01:50:37 AM
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)
)


Title: Re: Bug in OpenDCL 8.1.1.x or something has changed
Post by: Peter2 on October 26, 2016, 01:57:23 AM
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  ;)
Title: Re: Bug in OpenDCL 8.1.1.x or something has changed
Post by: Emiliano on October 26, 2016, 03:17:51 AM
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!