cc: (bcc: Christer T Johansson/SEROP/ABB)
Subject: [lazarus] Synedit error-Bit more
Hi,
Am Dienstag, den 15.11.2005, 11:09 +0300 schrieb Timothy Ha:
Why don't we try Ord() function?
Ord() doesn't work for sets. Ord is for Ordinal, which implies
position. There is no position in sets.
cheers,
Danny
_
To
I'm having some problems saving some of Synedit attributes to
a .ini file
Example:
Background color of screen set to black as following
during init:
SynEdit1.Color:=clBlack;
No error is generated at this point.
When I try and use it in the .ini save/read procedures
as follows:
myINI.WriteString('Editor','Background Colour',SynEdit1.Color);
I get an error. Got TGraphicsColor expected AnsiString
On first sight, I would expect WriteString to recieve strings, and not
TColor, so either try :
myINI.WriteString('Editor','Background Colour',IntToStr(SynEdit1.Color));
OK so now I have Background colour and Font colour
working using WriteInteger:
myINI.WriteInteger('Editor','Background Colour',SynEdit1.Color);
myINI.WriteInteger('Editor','Font Color',SynEdit1.Font.Color);
Trying to do the same with Font.Style brings up another error
Got TFontStyles