开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

twsapi: General VB Question: TOS display


Michel
 

开云体育

Use a PictureBox, ScaleMode = 4 (Character), and then :
PictureBox.ForeColor = GREEN/RED
PictureBox.Print ...
?
You must also use a vertical scroll bar to print the apropiate ticks into the PictureBox (you have to manage it with its properties Max, Min and Value to print all the lines of the PicturBox into a For...Next loop).
?
Hope this help.
Regards.
?
Michel.

-----Mensaje original-----
De: Christian Czirnich [mailto:crocodile_1964@...]
Enviado el: martes, 09 de julio de 2002 21:45
Para: twsapi@...
Asunto: twsapi: General VB Question: TOS display

Hi all,
first thank's to all the contributors here, who allow even an ungifted programmer to try its hand on an Order Entry system. I'm used to Cybertrader, but changed to IB due to the huge cost at cyber, which in more than one month cost me all my earnings.
What I really liked was their Order Entry screen, which I miss with IB and which I want to recreate better, using some of the ideas presented here.
?
Today I ran into a problem with my TOS list, as seen below.
I use a simple Listbox to display upto 100 entries, but now have the difficulty, that the List.Forecolor method only allows to change the color of the whole box.
What I want to do is to display the Uptick lines green and the downtick lines red.
Perhaps someone knows of a way to display a 2D-matrix, where I can specify the color?each line will be displayed.
Thank's

croc
?

To unsubscribe from this group, send an email to:
twsapi-unsubscribe@...



Your use of Yahoo! Groups is subject to the .


marinindextrader
 

I agree with Migurull,

If all you want to do is control the color of text conditionally,
PictureBox is a simple solution.

However, the ListView control is a powerful weapon when designing
killer GUI's

More Information on both controls can be had here:


3067/

Click on the MSDN Link and browse the sidebar.

Scott


--- In twsapi@y..., "Michel" <migurull@t...> wrote:
Use a PictureBox, ScaleMode = 4 (Character), and then :
PictureBox.ForeColor = GREEN/RED
PictureBox.Print ...

You must also use a vertical scroll bar to print the apropiate
ticks into
the PictureBox (you have to manage it with its properties Max, Min
and Value
to print all the lines of the PicturBox into a For...Next loop).

Hope this help.
Regards.

Michel.
-----Mensaje original-----
De: Christian Czirnich [mailto:crocodile_1964@g...]
Enviado el: martes, 09 de julio de 2002 21:45
Para: twsapi@y...
Asunto: twsapi: General VB Question: TOS display


Hi all,
first thank's to all the contributors here, who allow even an
ungifted
programmer to try its hand on an Order Entry system. I'm used to
Cybertrader, but changed to IB due to the huge cost at cyber, which
in more
than one month cost me all my earnings.
What I really liked was their Order Entry screen, which I miss
with IB and
which I want to recreate better, using some of the ideas presented
here.

Today I ran into a problem with my TOS list, as seen below.
I use a simple Listbox to display upto 100 entries, but now have
the
difficulty, that the List.Forecolor method only allows to change
the color
of the whole box.
What I want to do is to display the Uptick lines green and the
downtick
lines red.
Perhaps someone knows of a way to display a 2D-matrix, where I
can specify
the color each line will be displayed.
Thank's

croc




To unsubscribe from this group, send an email to:
twsapi-unsubscribe@y...



Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service.