OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: garcigj on January 05, 2014, 07:04:26 AM

Title: ImageCombo Text limit issue
Post by: garcigj on January 05, 2014, 07:04:26 AM
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
Title: Re: ImageCombo Text limit issue
Post by: owenwengerd on January 06, 2014, 05:11:25 PM
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.
Title: Re: ImageCombo Text limit issue
Post by: garcigj on January 07, 2014, 03:26:48 AM
Owen,

Try indicate more than 16 characters ..
I can not.
Title: Re: ImageCombo Text limit issue
Post by: owenwengerd on January 07, 2014, 08:40:07 AM
I tested with a Text Limit of 20, and it still works as expected for me.
Title: Re: ImageCombo Text limit issue
Post by: garcigj on January 09, 2014, 01:20:41 PM
Owen,
Can you test with more than 40 characters.?
Title: Re: ImageCombo Text limit issue
Post by: owenwengerd on January 09, 2014, 02:56:01 PM
This is from MSDN (http://msdn.microsoft.com/en-us/library/f02sebw9.aspx): "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.
Title: Re: ImageCombo Text limit issue
Post by: owenwengerd on January 09, 2014, 03:44:20 PM
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.
Title: Re: ImageCombo Text limit issue
Post by: garcigj on January 09, 2014, 05:33:19 PM
Thanks Owen,
links to msdn are fine, I understand.