Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sizing DesignerControls

Status
Not open for further replies.

ClivePerkins

Programmer
May 19, 2000
3
GB
Hi,<br><br>Does anybody know how to fix the size of a design time listbox with a style set to listbox.<br><br>I have the following code<br><br>&lt;!--METADATA TYPE=&quot;DesignerControl&quot; endspan--&gt;<br>&lt;/TD&gt;&lt;/TR&gt;&lt;/TABLE&gt;<br>&lt;/P&gt;&lt;/TD&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;TD align=middle style=&quot;WIDTH: 35%&quot; vAlign=center width=&quot;35%&quot;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;!--METADATA TYPE=&quot;DesignerControl&quot; startspan<br>&lt;OBJECT classid=&quot;clsid:B5F0E450-DC5F-11D0-9846-0000F8027CA0&quot; height=69 id=HobbiesListbox2_MULT <br> style=&quot;HEIGHT: 69px; LEFT: 0px; TOP: 0px; WIDTH: 296px&quot; width=196&gt;<br> &lt;PARAM NAME=&quot;_ExtentX&quot; VALUE=&quot;2540&quot;&gt;<br> &lt;PARAM NAME=&quot;_ExtentY&quot; VALUE=&quot;1826&quot;&gt;<br> &lt;PARAM NAME=&quot;id&quot; VALUE=&quot;HobbiesListbox2_MULT&quot;&gt;<br> &lt;PARAM NAME=&quot;DataSource&quot; VALUE=&quot;&quot;&gt;<br> &lt;PARAM NAME=&quot;DataField&quot; VALUE=&quot;&quot;&gt;<br> &lt;PARAM NAME=&quot;ControlStyle&quot; VALUE=&quot;1&quot;&gt;<br> &lt;PARAM NAME=&quot;Lines&quot; VALUE=&quot;5&quot;&gt;<br> &lt;PARAM NAME=&quot;Enabled&quot; VALUE=&quot;-1&quot;&gt;<br> &lt;PARAM NAME=&quot;Visible&quot; VALUE=&quot;-1&quot;&gt;<br> &lt;PARAM NAME=&quot;Platform&quot; VALUE=&quot;256&quot;&gt;<br> &lt;PARAM NAME=&quot;UsesStaticList&quot; VALUE=&quot;0&quot;&gt;<br> &lt;PARAM NAME=&quot;RowSource&quot; VALUE=&quot;rsCustomerHobbies&quot;&gt;<br> &lt;PARAM NAME=&quot;BoundColumn&quot; VALUE=&quot;lkCode&quot;&gt;<br> &lt;PARAM NAME=&quot;ListField&quot; VALUE=&quot;lkPrompt&quot;&gt;<br> &lt;PARAM NAME=&quot;LookupPlatform&quot; VALUE=&quot;0&quot;&gt;<br> &lt;PARAM NAME=&quot;LocalPath&quot; VALUE=&quot;&quot;&gt;&lt;/OBJECT&gt;<br>--&gt;<br><br>When I change the width properties, regardless of what I put, all I see is a thin strip until data is put into the box.&nbsp;&nbsp;Then it seems to automatically resize to the width of the longest textual element.<br><br>If it is not possible with this control, how else could I achieve it without putting objects on the client<br><br>Cheers<br><br><br>
 
Dear Clive,<br><br>I believe that under the current HTML and CSS standards the 'listbox' and 'combobox' elements only size to the width of the largest string. If this is the case then the behavior is completely unrelated to the design time control since it just generates the HTML for you.<br><br>If my assesment is incorrect perhaps someone else will jump in here and help us out.<br><br>-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top