[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] AmiBroker 4.72.0 BETA released



PureBytes Links

Trading Reference Links

Yuki,

You should read carefully function syntax:

It says:
AddColumn( ARRAY, "Caption", format = 1.2, color = colorDefault, bgcolor = colorDefault, width = -1); 

as you can see, new width parameter is 6th ! (not fourth !!!)

You skipped two parameters!
Parameter 4th is foreground color (not width)
Parameter 5th is background color.

Correct usage is:

AddColumn(pchng, "Pct. Chg.", 1.2, colorDefault, colorDefault, 160 /* width here !!! */ );

or shorter (colorDefault is just -1 )

AddColumn(pchng, "Pct. Chg.", 1.2, -1, -1, 160 /* width here !!! */ );

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Yuki Taga" <yukitaga@xxxxxxxxxxxxx>
To: "Tomasz Janeczko" <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, September 10, 2005 2:40 AM
Subject: Re: [amibroker] AmiBroker 4.72.0 BETA released


> Hi Tomasz,
> 
> Saturday, September 10, 2005, 8:55:28 AM, you wrote:
> 
> TJ> Yuki,
> 
> TJ> The only negative width that is accepted is -1.
> TJ> width = -1 (the default) means "old" behaviour, i.e. column width is determined
> TJ> automatically from the length of text in column caption.
> 
> TJ> any width >= 0 is just PIXEL width of the column. So 100 is just 100 pixels on your screen.
> 
> I'm stumped.  The following line should produce different widths with
> different values entered:
> 
> AddColumn(pchng, "Pct. Chg.", format = 0.000,width = 160);
> 
> I've tried everything from 50 to 500 and a lot in between.  The
> column width never varies.  I have 1024 horizontal pixels, and I'm
> used to setting column width by pixel in Excel.  But for some reason,
> this is stumping me.
> 
> Yuki
> 
> 
> 
> 
> 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 other support material please check also:
> http://www.amibroker.com/support.html
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> 
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Help tsunami villages rebuild at GlobalGiving. The real work starts now.
http://us.click.yahoo.com/njNroD/KbOLAA/cosFAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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 other support material please check also:
http://www.amibroker.com/support.html

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/