Started by garcigj ·
2014-01-05 15:04 UTC ·
7 replies · SMF topic #2085
garcigj
2014-01-05 15:04 UTC
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
owenwengerd
2014-01-07 01:11 UTC
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.
garcigj
2014-01-07 11:26 UTC
Owen,
Try indicate more than 16 characters ..
I can not.
owenwengerd
2014-01-07 16:40 UTC
I tested with a Text Limit of 20, and it still works as expected for me.
garcigj
2014-01-09 21:20 UTC
Owen,
Can you test with more than 40 characters.?
owenwengerd
2014-01-09 22:56 UTC
This is from
{2}: "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.
owenwengerd
2014-01-09 23:44 UTC
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.
garcigj
2014-01-10 01:33 UTC
Thanks Owen,
links to msdn are fine, I understand.