Page 1 of 1

FastReport object COLOR property

Posted: Wed Oct 04, 2017 9:56 am
by unixkd
Hi ALL

Is there anybody out there that knows how to set a FASTREPORT object property like:

oFR:SetProperty("myObject", 'Color', $00FFAF00)

If I pass 0-255 as value, it works, anything else not working

It does not allow passing hexadecimal value too.

Thanks.

Joe

Re: FastReport object COLOR property

Posted: Wed Oct 04, 2017 12:58 pm
by Eugene Lutsenko
Maybe it will help You?

In the system Eidos a lot of graphics:
http://lc.kubagro.ru/_AIDOS-X.txt

Re: FastReport object COLOR property

Posted: Wed Oct 04, 2017 1:52 pm
by Auge_Ohr
unixkd wrote:

Code: Select all

oFR:SetProperty("myObject", 'Color',  [b]$00FFAF00[/b])
hm ... your Syntax is wrong

Code: Select all

:setProperty( <cName> | <nID>, <xValue> [, <xParam, ...>] ) --> xValue 
so it must be

Code: Select all

oFR:SetProperty( 'Color',  $00FFAF00)
p.s. try

Code: Select all

c:\ALASKA\XPPW32\BIN\Tlb2Ch.exe {CLSID} >> MyFR.CH
will give you Constante e.g Color of activeX
http://www.gevitas.de/wiki/index.php?ti ... Konstanten

Re: FastReport object COLOR property

Posted: Thu Oct 05, 2017 2:46 am
by unixkd
Hi Jimmy

oFR:SetProperty( 'Color', $00FFAF00) gives compilation syntax error

Thanks

Re: FastReport object COLOR property

Posted: Thu Oct 05, 2017 9:01 am
by reganc
unixkd wrote:Hi Jimmy

oFR:SetProperty( 'Color', $00FFAF00) gives compilation syntax error

Thanks
Shouldn't that be 0x00FFAF00...