TIP: Click on subject to list as thread! ANSI
echo: delphi
to: ALL
from: TONY DUNN
date: 1997-07-03 23:35:00
subject: Values for colors

Hello All
Thanks to those kind folks who mailed me recently with ideas for my problem
with reading\writing to INI files for stuff like font size, font name etc. I
have most of this working now but one thing puzzles me. Using Delphi 1.0 
nder
Windows '95.
If the color definition in the INI file is a defined constant like clAqua, so 
I
would have a line in Veejo.INI like...
[LabelFont]
LabelFontColor=clAqua
...then a line like:
Label1.font.color := VeejoIni.ReadInteger('LabelFont', 'LabelFontColor',
clBlack);
in my code for FormActivate does not read it, but uses the default, in the
above case, clBlack. If the value in the INI file for LabelFontColor is 
actually
numerical like 8388608, then it does read it just fine and changes the
label.font.color to whatever the number represents. Why???
I'd appreciate replies to the address below [for speed!] as well as here if 
t
all possible.
Thanks
Tony 
--- GEcho/32 1.20/Pro
---------------
* Origin: Tony's Point of View (2:250/102.2)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.