PureBytes Links
Trading Reference Links
|
Hi Ken,
Column width is determined by the width of the
header. To make it wider, you can pad the header name with spaces:
addcolumn( array,
"
my wide column
" );
To make it thinner, you must abbreviate the
header.
Sometimes, if you change the order of the columns
somehow, the width wont fit anymore. You can reset them by cicking
scan, then explore again - this will reset the width to match the current
column headers.
Addcolumn will accept a variable for the name, but
the variable must have a string assigned to it or you will get an error
message.
Steve
<BLOCKQUOTE
>
----- Original Message -----
<DIV
>From:
Ken Close
To: <A title=amibroker@xxxxxxxxxxxxxxx
href="">AmiBroker List
Cc: <A title=tj@xxxxxxxxxxxxx
href="">'Tomasz Janeczko'
Sent: Tuesday, September 09, 2003 10:49
AM
Subject: [amibroker] Column Width
Control
All: Is
there any way to control the width of columns using AddColumn in Explore
mode.<FONT face=Arial
size=2> I have experimented with the format suggested in the help file
of
<FONT face=Arial
size=2>AddColumn(variable,"-1<SPAN
lang=en-us>3<SPAN
lang=en-us><FONT face=Arial
size=2>",5.0);
Where the 5.0 is said
to "pad" in 5 spaces.
However, nothing
changes even if I change 5 to 20.
The second observation
about this AA display is that the first time I run the code, the column widths
are narrow and seemingly the most narrow given the data they
hold.
Each time I run the
code after some change unrelated to the AddColumn statements, the column width
grows mysteriously, up to some maximum.<SPAN
lang=en-us> (see
below)<FONT face=Arial
size=2> Needless to say, this spreads out the width of the entire
display.
May I ask if the
following two adjustments are possible:
Direct control over
column width.
Putting a variable in
the column HEADING (such as a date that changes) vs just
text.
A picture of what I am
trying to use is shown below.<SPAN
lang=en-us> Notice the various widths which occur
randomly.
Any
comments?
<FONT face=Arial
size=2>KenSend
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the <A
href="">Yahoo! Terms of Service.
Yahoo! Groups Sponsor
ADVERTISEMENT
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|