I'm not sure what is wrong with your code, but I have uploaded to the  
AFL library a program called "Continuous Contract Rollover".
The AFL has a nice function in it that lets you specify a Gfx text box  
with many options.  Take a look and you can perhaps see how to make  
what you want work --or just use my function in your program.

Best regards,
Dennis

On Jun 20, 2008, at 6:15 AM, Mohammed wrote:

> Hi,
>
> With the following Code I'm trying to change the Color inside the Box
> depending to the JJ status.But I got an error in the last line.
>
> jj = c > O;
> UpColor = colorgreen;
> DownColor = colorred;
>
> GfxSelectFont( "Georgia", 11, 700 );
> GfxSetBkMode( 1 );
> //GfxSetTextColor( colorWhite );
>
> GfxSetTextColor( IIf( jj , UpColor , DownColor ));
>
> Regards,
>
>
> ------------------------------------
>
> Please note that this group is for discussion between users only.
>
> To get support from AmiBroker please send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> For other support material please check also:
> http://www.amibroker.com/support.html
> Yahoo! Groups Links
>
>
>

Reply via email to