KB-27233: Changing the color of an E3Chart’s pens at run time.

Question:

How can I change the color of an E3Chart’s pens at run time?

Solution:

To do so, you must create a script using E3 Viewer’s ShowPickColor method to set the value of the pen’s Color property. For example:

Application.ShowPickColor color
if RowData = 0 then
    'passes the selected color to the pen
    Screen.Item("E3Chart1").Pens.Item("Pen1").Color = color
else
    Screen.Item("E3Chart1").Pens.Item("Pen2").Color = color
end if

For more details, check the attached demor application developed on E3 version 3.2 build 260.

Attachments:

Change_Pen.zip

Print Friendly, PDF & Email

Este artigo foi útil? Was this helpful?

Classificação média - Average rating 0 / 5. Count: 0

Deixe seu Comentário

Seu endereço de e-mail não será publicado. Campos marcados com asterisco são obrigatórios *