CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 How to Use Different Font in ListBox

Print topic Send  topic

Author Message
KEM
Posted: 01/14/2002, 12:07 PM

SIR, Alex Alexapolsky

I have a problem I want to display contents of ListBox in different font from others. How can this Possible ?
YOU SUGGESTED :
You can set style for your SELECT element via javascript that should be placed
into Header&Footer section , e.g.
<script>
document.CustomerRecord.Sex.style="font-family: Arial, Tahoma, Verdana, Helvetica";
</script>

BUT THIS IS NOT WORKING :

I tried this but could not get success :

My Page name is Officer_Home
My Form Name is "Search"
My Database Table is "Complaint"
My ListBox Contains "Dept_id" But Shows "Department_Name".

I Want This Department_Name which is appeared in the ListBox would be displayed in "Bookman Old Style" in 16 Points in "Red" color, whereas all other metter displayed in "Arial".

This field contains is also used in Grid Form, But I want this would in the same font like others in the grid.

Please Reply Soon
Alex Alexapolsky
Posted: 01/15/2002, 5:38 AM

Apparently javascript doesn't work well with stylesheets in this case.

The only real working solution for now is to modify html template for
select tag.

<SELECT size="1" name="D1" style="font-size:10pt;font-family:courier,arial;">
<OPTION style="background-color:red;color:yellow;">Eintrag 1</OPTION>
<OPTION style="background-color:yellow;color:red;">Eintrag 2</OPTION>
<OPTION style="background-color:blue;color:yellow;">Eintrag 3</OPTION>
<OPTION style="background-color:green;color:yellow">Eintrag 4</OPTION>
<OPTION style="background-color:cyan;color:black">Eintrag 5</OPTION>
</SELECT>

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.