Bug in OpenDCL 8.1.1.x or something has changed

Started by Emiliano · 2016-10-17 13:46 UTC · 15 replies · SMF topic #2436

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?
author=owenwengerd link=topic=2436.msg12129#msg12129 date=1476723856 wrote:
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:

{2}
author=Tharwat link=topic=2436.msg12131#msg12131 date=1476818481 wrote:
I use this method to work around this accumulating process:

{2}


I do not understand.
What should I do?
author=Tharwat link=topic=2436.msg12131#msg12131 date=1476818481 wrote:
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:
Attachments
author=Tharwat link=topic=2436.msg12134#msg12134 date=1476903313 wrote:
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
author=Emiliano link=topic=2436.msg12135#msg12135 date=1476944457 wrote:
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

Attachments
#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)
)


author=Emiliano link=topic=2436.msg12153#msg12153 date=1477471837 wrote:
I resolved with the following workaround:  ;D ...

Fine, thanks for the contribution.

author=Emiliano link=topic=2436.msg12152#msg12152 date=1477470073 wrote:
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  ;)
author=Peter2 link=topic=2436.msg12154#msg12154 date=1477472243 wrote:
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!