I forgot to tell you that the width of the combobox is 350.
i also thought that using the ColumnWidths property, I could resize the drop down column to exactly the size of the control. But as you see, the column width depends on the cursor field length.
>Christian,
>After running your code I don't see a problem. The display area for the combo values stretched well beyond the actual text of the values.
>
>The test was performed using VFP 8 SP1 on a WinXP Pro SP1 system.
>
>>Hello,
>>
>>Using VFP 8, I have the following problem with the combobox control. I set the following properties:
>>
CREATE CURSOR TypeOfTestCombo(OptionText C(65), IdNr N(1))
>>INSERT INTO TypeOfTestCombo VALUES ("Ingredient",1)
>>INSERT INTO TypeOfTestCombo VALUES ("Packaging material",2)
>>*
>>THIS.cbo.ROWSOURCETYPE = 6
>>THIS.cbo.ROWSOURCE = "TypeOfTestCombo.OptionText,IdNr"
>>THIS.cbo.BOUNDCOLUMN = 2
>>THIS.cbo.CONTROLSOURCE = "Tests.teType"
>>THIS.cbo.COLUMNCOUNT = 1
>>THIS.cbo.COULUMNWIDTHS = "269"
>>What happens is that the drop down column width is much smaller than expected.
>>It seems that the width of the column depends on the values in the cursor. Only when I use more than one column to display (ColumnCount=2,ColumnWidths="269,25"), then the column has the expected width.
>>Is there a way to size the column width properly when using one column only?
Christian Isberner
Software Consultant