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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

button and character map 2

Status
Not open for further replies.

tyris

Programmer
Nov 2, 2000
311
FR
hi all

there's a special character that you get with this :

<FONT SIZE=2 COLOR='FFFFFF' FACE='Webdings'>5</FONT>

what id' like, is to put this caracter in the value (caption) of a button, so that the field on the button shows this caracter.

do you have an idea of how should i do ? i of course tryed this :

<input type=&quot;Button&quot; name=&quot;mybutton&quot; value=&quot;<FONT SIZE=2 COLOR='FFFFFF' FACE='Webdings'>4</FONT>&quot;>

but as you can see it just shows the html code, and doesn't interpret it.

any idea ? Best regards X-),
Elise
 
ouuuups my question was really stupid, as i knew the answer :

<input type=&quot;button&quot; style &quot;FONT-FAMILY: Webdings&quot; name=&quot;mybutton&quot; value=&quot;4&quot; > Best regards X-),
Elise
 
Except for the fact that there should be an equal sign instead of a space after the word style, that works great! I gave you a star for a useful piece of information. Thanks for posting your solution.
Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
I like the idea to!

I puzzled a bit and figured out that Webdings doesn't work in NN4.73. :-(
I also figured out that value=&quot;17&quot; give character 1 and character 7. Also the values from the alfabet (a-z) give other characters as well as uppercase (A-Z) , and also do special characters like value=&quot;*&quot;

Does annybody know how to get it work in NN?
second question: does annybody know where to find a list with all the values and there characters?

But Wingdings works in IE4.0 and NN 4.73 !

btw: try this one :)

<input type=&quot;button&quot; style=&quot;FONT-FAMILY: Wingdings&quot; name=&quot;mybutton&quot; value=&quot;*&quot;>

Erik
 
Under windows, if you go to &quot;Start, Settings, Control Panel&quot;, and then double click on &quot;Fonts&quot;, and then scroll down and double click on &quot;webdings.ttf&quot; you'll get a view of all the characters in the set. Or better yet, get the freeware program &quot;AK Font Viewer&quot;. It's one of the best font view programs I've seen. I think shareware.com has it.

The reason that using the value &quot;17&quot; gives you two characters is that webdings maps the normal ascii character set to the webdings character set. The value in value=&quot;x&quot; is not a numeric value for which character to use, it's the ascii value of EACH character that it's using. Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top