Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00950768
Message ID:
00950781
Views:
9
Just comment first tree rows
WITH ThisForm.combo1

*  .ColumnCount = 2
*  .ColumnWidths = TRANSFORM(.Width) + ",0"
*  .ColumnLines = .F.
.....


>I want to set the width of a combo in code. I have the following code:
>
>The width of the drop down section is wider than the control. How can
>I can I make it equal to the width of the control?
>
><pre>
>
>WITH ThisForm.combo1
>
>  .ColumnCount = 2
>  .ColumnWidths = TRANSFORM(.Width) + ",0"
>  .ColumnLines = .F.
>	
>  .AddListItem("One", 1, 1)
>  .AddListItem("One1", 1, 2)
>	
>  .AddListItem("Two", 2, 1)
>  .AddListItem("Two2", 2, 2)
>
>  .AddListItem("Three", 3, 1)
>  .AddListItem("Three3", 3, 2)
>
>ENDWITH
>
>RETURN
>
>
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform