OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: marcoheuer on May 31, 2011, 10:42:23 AM

Title: combobox style 12
Post by: marcoheuer on May 31, 2011, 10:42:23 AM
hello,
I have the following problems with combobox style 12:
1. I need 3 clicks, so that the directory selection opens (the first time after opening the dialog).
2. as an example: if the drive c: is selected, i open the directory selection, mouse move over drive e: (do not click), so that drive e: looks chosen (it's not because you do not click) and then somewhere else click anywhere, close the directory selection and drive E: is displayed as selected.

can someone that reproduce?
(i use version 6.0.2.3)

in german:

hallo,
ich habe folgende probleme mit combobox style 12.
1. ich benötige 3 klicks, damit sich die verzeichniswahl öffnet (beim ersten mal nach öffnen des dialogs).
2. als bsp: wenn laufwerk c: ausgewählt ist, ich die verzeichniswahl öffne, die maus über laufwerk e: bewege (nicht anklicke), so dass laufwerk e: ausgewählt ausschaut (es aber nicht ist, da nicht angeklickt) und dann irgendwo anders hinklicke, geht die verzeichniswahl zu und laufwerk e: wird als ausgewählt angezeigt.

kann das jemand nachvollziehen?
(ich verwende version 6.0.2.3)

best regards
marco
Title: Re: combobox style 12
Post by: roy_043 on June 01, 2011, 12:51:36 AM
1: No
2: Yes
Title: Re: combobox style 12
Post by: Fred Tomke on June 01, 2011, 01:32:39 AM
Hello, marco, I've already seen your post yesterday but I needed a sample at first to test. I cannot reproduce that it would take 3 clicks to select an existing folder from the list, even if the control is not the first in the Z/Tab order list. But I detected that the Dir (http://www.opendcl.com/HelpFiles/index.php?page=Reference/Method/ComboBox/Dir.htm)-method does not fill the combobox. I've attached my example.

Regards, Fred
Title: Re: combobox style 12
Post by: marcoheuer on June 01, 2011, 02:54:50 AM
hello roy_043 and fred,
thanks for testing.

@fred
the problem of 3 clicks at the first open of the directory selection is also in your example (for me).
for the other problem i have add in the function c:dir_dlg_dir_cbb_dir_OnSelChanged (alert strPath).
- when i open the directory selection and click a directory then opens the alert dialog
- when i open the directory selection, mouse move over drive directory (do not click), so that the directory looks chosen (it's not because you do not click) and then somewhere else click anywhere, close the directory selection, directory is displayed as selected, but not open the alert dialog. that is my problem.

best regards
marco
Title: Re: combobox style 12
Post by: Fred Tomke on June 01, 2011, 03:17:24 AM
Hi, marco,

I could reproduce that the selection has changed although the event was not fired.
On my workstation (Win7 x64, Map 2012 x64) I see the following:

I still cannot reproduce that it would take 3 clicks to open the drop down. Have you already tried on another workstation?

Fred
Title: Re: combobox style 12
Post by: Fred Tomke on June 01, 2011, 03:37:20 AM
Hi, marco, I've updated the code and added two other events. Please have a look if there's a difference in the behavior when clicking outside the form. I think you have also to catch OnKillFocus and OnMouseMove to compare the latest selection and the current selection. It seems the OnSelChanged is not enough.

That leads me to the thought: what does the combobox do with simple texts when clicking outside the form?

Regards, Fred
Title: Re: combobox style 12
Post by: Fred Tomke on June 01, 2011, 03:46:28 AM
Forgotten to add the files:
Title: Re: combobox style 12
Post by: marcoheuer on June 01, 2011, 05:04:42 AM
problem 1
i have make a few tests:

computer 1 (win xp 32bit):
acad 2007: 3 clicks
acad 2010: 3 clicks
in vm win xp 32 bit, acad 2007: 1 click

computer 2 (win 7 64 bit):
acad 2011: 1 click
in vm win xp 32 bit, acad 2007: 1 click

what the f...
(my problem)

problem 2:
OnKillFocus is not bad, but too late.
if the selection / display is changed, i need the new value immediately.

best regards
marco




Title: Re: combobox style 12
Post by: marcoheuer on June 01, 2011, 05:57:28 AM
Quotewhat does the combobox do with simple texts when clicking outside the form?

it only changed, when I was clicking from the drop down list (normal)

best regards
marco
Title: Re: combobox style 12
Post by: marcoheuer on June 01, 2011, 07:01:01 AM
and another thing:
with the english version of odcl i have the same behavior as fred:
Quote... When I move the mouse over the combobox the latest highlighted item suddenly appears in the integrated textbox so the seems to be selected but the OnSelect-event won't be fired.

and with the german version the same behavior as I wrote at the beginning:
Quote... and then somewhere else click anywhere, close the directory selection and drive E: is displayed as selected.

best regards
marco
Title: Re: combobox style 12
Post by: Fred Tomke on June 01, 2011, 08:42:49 AM
Quote from: marcoheuer on June 01, 2011, 07:01:01 AM
and another thing:
with the english version of odcl i have the same behavior as fred:
Quote... When I move the mouse over the combobox the latest highlighted item suddenly appears in the integrated textbox so the seems to be selected but the OnSelect-event won't be fired.

Hm, should I tell you that I only use the German release?

Regards,
Fred
Title: Re: combobox style 12
Post by: marcoheuer on June 01, 2011, 08:48:37 AM
QuoteHm, should I tell you that I only  use the German release?
;D or  :'(
Title: Re: combobox style 12
Post by: owenwengerd on June 04, 2011, 10:51:57 PM
I've made a few changes to fix the behavior so that it doesn't change the current combo selection until you left-click or press enter. I can't reproduce the extra click behavior, so I don't know if these changes affect that.
Title: Re: combobox style 12
Post by: marcoheuer on June 05, 2011, 06:38:01 AM
thanks owen

best regards
marco