Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox problem
Message
From
20/10/2003 16:50:57
 
 
To
20/10/2003 16:31:47
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00840452
Message ID:
00840462
Views:
27
This message has been marked as the solution to the initial question of the thread.
>Hello,
>
>I have a problem with the following combobox:
>
*-- INIT of combobox
>WITH THISFORM.cboProductionStep
>    .COLUMNWIDTHS = "192"
>    .INCREMENTALSEARCH = .T.
>    .SORTED = .T.
>    .ROWSOURCETYPE = 6
>    .ROWSOURCE = "Phases.phNodeDesc,phKey"
>    .BOUNDCOLUMN = 2
>    .BOUNDTO = .T.
>    .CONTROLSOURCE = "Functions.fuphKey"
>ENDWITH
>The result:
>The combobox is not sorted, incremental search does not work, and the width of the dropdown column is higher than the combobox itself, depending on the size of the field (phNodeDesc).
>
>What am I missing??
>Thanks, your help is highly appreciated.

From the Help file for the Sorted property:

"The Sorted property is only available if the RowSourceType property is set to 0 (None) or 1 (Value)."

For the IncrementalSearch:

"A combo box with the Style property set to 0 (Dropdown Combo) will only show incremental searching in the text box if the drop-down list is shown. With the Style property set to 2 (Dropdown List), incremental searching will show in the text box, regardless of whether the drop-down list is shown."

You might also need to check the values for _INCSEEK for VFP7 and later, or _DBLCLICK for VFP6 or earlier.

For the Column width being different than the drop down, you might need to set your ColumnCount property = to 0 or 1, depending on what your current setting is.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform