ImageCombo Text limit issue

Started by garcigj, January 05, 2014, 07:04:26 AM

Previous topic - Next topic

garcigj

Seems not to work or not to consider the parameter "Text Limit".
- No work assigned a value of 0 or greater than 0 in Design Mode
- Assigned a value does not work in run mode:
   (dcl_Control_SetTextLimit (vl-doc-ref 'MyProy_MyForm_ImageCombo1) 640)


Windows 7 (x64)
Autocad 2010 - 2012 - 2014 (x64)
OpenDCL version: OpenDCL Runtime [7.0.1.4] loaded
José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

owenwengerd

I did a quick test in AutoCAD 2010 using a form that has both a Combo Box and Image Combo Box with TextLimit set to 5, and it seems to be working for me on Windows 7. When I type the 6th character, it beeps and doesn't accept any more input.
Owen Wengerd (Outside The Box) / ManuSoft

garcigj

Owen,

Try indicate more than 16 characters ..
I can not.
José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

owenwengerd

I tested with a Text Limit of 20, and it still works as expected for me.
Owen Wengerd (Outside The Box) / ManuSoft

garcigj

Owen,
Can you test with more than 40 characters.?
José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)

owenwengerd

This is from MSDN: "If the combo box does not have the style CBS_AUTOHSCROLL, setting the text limit to be larger than the size of the edit control will have no effect." You didn't say what type of combo box this is, but apparently it does not have the needed style. I may be able to add the CBS_AUTOHSCROLL window style, but I need to know which combo box type exhibits the problem.
Owen Wengerd (Outside The Box) / ManuSoft

owenwengerd

I was able to reproduce the problem with a standard image combo. I have now fixed the code for the next build to include the CBS_AUTOHSCROLL style.
Owen Wengerd (Outside The Box) / ManuSoft

garcigj

Thanks Owen,
links to msdn are fine, I understand.
José Luis García Galán
Hispacad.com - Expertos en CAD 
Madrid (Spain)