I'm not sure that the Blackberry renders font sizes based on the pixel
setting, but the ObjectList control allows two attributes (Font-Size and
Label-Font-Size) to control the font size:
<mobile:ObjectList ... Font-Size="Small" LabelStyle-Font-Size="Small" ... >
If that doesn't give the control you need, I've fallen back to using
DeviceSpecific and redefining all of my fields, like:
<mobile:ObjectList id="lstCompanies" runat="server" Font-Size="Small"
LabelStyle-Font-Size="Small"
LabelStyle-Font-Bold="True" CommandStyle-StyleReference="subcommand">
<DeviceSpecific>
<Choice Filter="isHTML32">
<ItemDetailsTemplate>
<font size="-1">
<table width="100%" border="0">
<%# String.Format("<tr><td width=\"20%\"><b>Name:</b></td><td
width=\"80%\">{0}</td></tr>",((ObjectListItem)(((ObjectList)(Container.NamingContainer)).Selection))["company"])
%>
<%# String.Format("<tr><td width=\"20%\"><b>Web</b></td><td
width=\"80%\">{0}</td></tr>",((ObjectListItem)(((ObjectList)(Container.NamingContainer)).Selection))["web_site"])
%>
<%# String.Format("<tr><td width=\"20%\"><b>Addr 1:</b></td><td
width=\"80%\">{0}</td></tr>",((ObjectListItem)(((ObjectList)(Container.NamingContainer)).Selection))["address_1"])
%>
<%# String.Format("<tr><td width=\"20%\"><b>Addr 2:</b></td><td
width=\"80%\">{0}</td></tr>",((ObjectListItem)(((ObjectList)(Container.NamingContainer)).Selection))["address_2"])
%>
<%# String.Format("<tr><td width=\"20%\"><b>City:</b></td><td
width=\"80%\">{0}</td></tr>",((ObjectListItem)(((ObjectList)(Container.NamingContainer)).Selection))["city"])
%>
<%# String.Format("<tr><td width=\"20%\"><b>State:</b></td><td
width=\"80%\">{0}</td></tr>",((ObjectListItem)(((ObjectList)(Container.NamingContainer)).Selection))["state"])
%>
<%# String.Format("<tr><td width=\"20%\"><b>ZIP:</b></td><td
width=\"80%\">{0}</td></tr>",((ObjectListItem)(((ObjectList)(Container.NamingContainer)).Selection))["zip_code"])
%>
</table>
</font>
</ItemDetailsTemplate>
</Choice>
</DeviceSpecific>
<Field Title="Company Name" DataField="company"></Field>
<Field Title="Web" DataField="web_site"></Field>
<Field Title="Address 1" DataField="address_1"></Field>
<Field Title="Address 2" DataField="address_2"></Field>
<Field Title="City" DataField="city"></Field>
<Field Title="State" DataField="state"></Field>
<Field Title="ZIP" DataField="zip_code"></Field>
</mobile:ObjectList>
"Mark Gialo" <MarkGialo@discussions.microsoft.com> wrote in message
news:0177C055-C7B4-4F7A-943F-267D1D82989D@microsoft.com...
> My mobile application has three columns in an objectlist. When rendering
> this
> to a blackberry device, the text is wrapping signifying perhaps the font
> size
> or width of the control is too large.
>
> Is there any way to set a pixel size for the objeclist control? or perhaps
> another way to insure it renders properly.