[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

Hi Tomasz,

Saturday, September 10, 2005, 10:10:43 AM, you wrote:

TJ> Yuki,

TJ> You should read carefully function syntax:

Okay, I will happily try this.  But is is not a "should read
carefully" situation.  It is a programmer-versus non programmer
situation.  I simply did not understand that a parameter cannot be
skipped.  And either does the AFL check routine, either.  ^_^  It
says nothing is wrong with the code.

Yuki

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

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

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

TJ> Correct usage is:

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

TJ> or shorter (colorDefault is just -1 )

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

TJ> Best regards,
TJ> Tomasz Janeczko
TJ> amibroker.com
TJ> ----- Original Message ----- 
TJ> From: "Yuki Taga" <yukitaga@xxxxxxxxxxxxx>
TJ> To: "Tomasz Janeczko" <amibroker@xxxxxxxxxxxxxxx>
TJ> Sent: Saturday, September 10, 2005 2:40 AM
TJ> 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 Sudanese refugees rebuild their lives through GlobalGiving.
http://us.click.yahoo.com/hjNroD/EbOLAA/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/