Bug in ComboBox 4.1.2.2?

Started by velasquez, July 03, 2008, 07:22:57 AM

Previous topic - Next topic

velasquez

OpenDCL version 4.1.2.2 
AutoCAD 2007 and 2009 
Control ComboBox 
Why DropDown not for in the last visible item of the list? 
This didn't happen before. 
That is a bug or I are making some wrong thing?
I posted a video to show.

Fred Tomke

Hello, velasquez,

wasn't there a property dropdown height for comboboxes also in odcl 4? I'm not sure. In release 5 there is one. You only have to increase the dropdown height (not the height property!!! I mean DropDownHeight).

But maybe I misunderstood you...

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

velasquez

Hello Fred 
I am talking about the movement of the mouse on the list. 
This makes the list to slide. 
This never happened. 
See the video that I posted. 
 
Velasquez

owenwengerd

Does anything change if you set the NoIntegralHeight property to false?
Owen Wengerd (Outside The Box) / ManuSoft

velasquez

Hello Owen, 
I didn't see the property NoIntegralHeight for ComboBox in OpenDCL 4.1.2.2
Do I need to change through LISP?

owenwengerd

That property may not have existed in OpenDCL 4.1.  I recommend to upgrade to OpenDCL 5 to see if the problem has been addressed.
Owen Wengerd (Outside The Box) / ManuSoft

velasquez

Hello Owen 
   
I found the property inside of OpenDCL.17.arx 4.1.2.2 
 
See as I placed dcl_Control_SetNoIntegralHeight inside of the function OnInitialize

(defun c:DuctilCAD_DuctilCAD_MainForm_OnInitialize (/)
;;;Joga a lista de fontes no comboBox
    (dcl_ComboBox_AddList
      DuctilCAD_DuctilCAD_MainForm_ComboBox4
      JoyFontList
    ) ;_ fim de dcl_ComboBox_AddList
;;;
;;;Seleciona o primeiro item no ComboBox
    (dcl_ComboBox_SetCurSel
      DuctilCAD_DuctilCAD_MainForm_ComboBox4
      0
    ) ;_ fim de dcl_ComboBox_SetCurSel

;;;
;;;TESTING
    (dcl_Control_SetNoIntegralHeight
      DuctilCAD_DuctilCAD_MainForm_ComboBox4
      0
    ) ;_ fim de dcl_Control_GetNoIntegralHeight
;;;
  )

   
Nothing does happen if I inform a wrong value for the property. 
I will test with OpenDCL 5.0

velasquez

Hello Owen, 
I made the test of ComboBox in OpenDCL 5.0.0.19. 
The problem with the sliding of the List continues. 
It is difficult to select the last visible item of the list. 
The property NoIntegralHeight, appears in the file ARX but she doesn't work. 
See in the image the error message in AutoCAD 2007 and 2009.

owenwengerd

Quote from: velasquez on July 06, 2008, 06:05:33 AM
The property NoIntegralHeight, appears in the file ARX but she doesn't work. 

In OpenDCL 5 you must pass T or NIL for boolean properties.
Owen Wengerd (Outside The Box) / ManuSoft

velasquez

No value works T or Nil 1 or 0. 
In AutoCAD 2007 and 2009.   
Please see in the image that the function NoIntegralHeight is not found. 
;;;Funcoes de inicializacao
  [b](defun c:DuctilCAD_DuctilCAD_MainForm_OnInitialize (/)
    (dcl_Control_SetNoIntegralHeight
      DuctilCAD_DuctilCAD_MainForm_ComboBox4
      T
    ) ;_ fim de dcl_Control_GetNoIntegralHeight[/b]
;;;
;;;Joga a lista de fontes no comboBox
    (dcl_ComboBox_AddList
      DuctilCAD_DuctilCAD_MainForm_ComboBox4
      JoyFontList
    ) ;_ fim de dcl_ComboBox_AddList
;;;
;;;Seleciona o primeiro item no ComboBox
    (dcl_ComboBox_SetCurSel
      DuctilCAD_DuctilCAD_MainForm_ComboBox4
      0
    ) ;_ fim de dcl_ComboBox_SetCurSel
;;;
  ) ;_ fim de defun

Thanks

Fred Tomke

Hello, I can reproduce that NoIntegralHeight property is supported by ListBox but not by Combobox.
But I've still no solution to avoid autoscroll in comboboxes.

I've attached an example of mine. I can reproduce this but I must say that it doesn't really hurt me (if DropDownHeight is high enough).

Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

velasquez

Hello Fred 
The problem is that not always DropDownHeight is high enough. 
In my case it cannot be. 
Thanks 
Velasquez

owenwengerd

Sorry, I see now that the NoIntegralHeight property is only for list boxes.

After some experimenting, it looks like you can prevent the auto scrolling if you set the DropDownHeight so that there are no partial items showing.  For example, a standard string combo on my system uses an item height of 13 pixels, plus a 1 pixel border at both the top and bottom, so any size of ((N * 13) + 2) for an integer N displays exactly N rows and does not auto scroll.

I did notice that the Height property of combo boxes is not correctly updated when they are initially placed, and this affects the dropdown height calculation. The Height property gets corrected in the editor if you attempt to vertically resize a combo.
Owen Wengerd (Outside The Box) / ManuSoft

velasquez

Thank you for the attention Owen, 
Could you show me an example for the correct use of DropDownHeight? 
Excuse my English it is not good.

Thanks

velasquez

Hello Owen, 
I understood and I applied your method for DropDownHeight. 
ComboBox worked perfectly in OpenDCL 4.1.2.2 and OpenDCL 5.0.0.19 with AutoCAD 2007 and 2009. 
Once again thank you for your attention.