cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/03/09/14:26:30.1

From: et1850 AT aol DOT com (Et1850)
Newsgroups: comp.os.msdos.djgpp
Subject: colors from hex to dec - newbee -major stumped
Lines: 16
NNTP-Posting-Host: ladder05.news.aol.com
X-Admin: news AT aol DOT com
Date: 9 Mar 1999 18:58:00 GMT
Organization: AOL http://www.aol.com
Message-ID: <19990309135800.23917.00000102@ng-ce1.aol.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

in allegro text grey is

rgb = grey(32,32,32)

but

in a dialog i cant do &grey for [].bg = &grey

i tryed to put 323232 for bg and it worked but the color wasnt grey
so is there a way to convert hex color vals to dec color vals
new to c i haven't yet found the string conversion in the text (still looking)
in vb or basic i can do 'str(val(&h6540965))' to get the hex val to dec and
then use the string anywere as a color 

et1850 AT aol DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019