Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 hellow, requestion... how to change the color?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Sumin-Park

21 Posts

Posted - 03 Feb 2009 :  20:17:59  Show Profile  Reply with Quote
if you excute that source, you see the color of black.
i want to change black to anothercolor.
if you do not understand, give me a e-mail. and I will send a picture..

sorry I am not english very well.


RTProcessVar processVar1;
processVar1 = new RTProcessVar("PV01", new ChartAttribute(Color.SpringGreen, 1.0, DashStyle.Solid, Color.SpringGreen));

processVar1.MinimumValue = -10;
processVar1.MaximumValue = 110;



RTAlarm lowalarm = new RTAlarm(ChartObj.RT_ALARM_LOWERTHAN, 30);
lowalarm.AlarmMessage = "Low A";
lowalarm.AlarmSymbolColor = Color.Blue;




RTAlarm highalarm = new RTAlarm(ChartObj.RT_ALARM_GREATERTHAN, 70);
highalarm.AlarmMessage = "High A";
highalarm.AlarmSymbolColor = Color.Red;
processVar1.AddAlarm(highalarm);


RTAlarm setupoint = new RTAlarm(ChartObj.RT_SETPOINT_VALUE, 50);
setupoint.AlarmMessage = "OK";
setupoint.AlarmSymbolColor = Color.SpringGreen;
processVar1.AddAlarm(setupoint);

processVar1.SetCurrentValue(40);

Font font7Numeric = new Font("Digital SF", 60, FontStyle.Regular);

ChartView chartVu = this;

//CartesianCoordinates pTransform1 = new CartesianCoordinates(-0.1, 0.0, 1.1, 100.0);
CartesianCoordinates pTransform1 = new CartesianCoordinates(0.0, 0.0, 90.1, 1);

pTransform1.SetGraphBorderDiagonal(0.1, .1, 0.9, 0.8);

Background background = new Background(pTransform1, ChartObj.PLOT_BACKGROUND, Color.White);
chartVu.AddChartObject(background);

ChartAttribute attrib1 = new ChartAttribute(Color.Green, 10, DashStyle.Solid, Color.Green);
double barwidth = .45, barbase = 0.5;
int barjust = ChartObj.JUSTIFY_MIN;
int barorient = ChartObj.HORIZ_DIR;

LinearAxis baraxis = new LinearAxis(pTransform1, ChartObj.X_AXIS);

baraxis.CalcAutoAxis();
chartVu.AddChartObject(baraxis);

NumericAxisLabels barAxisLab = new NumericAxisLabels(baraxis);
barAxisLab.SetTextFont(font7Numeric);
chartVu.AddChartObject(barAxisLab);

RTBarIndicator barplot = new RTBarIndicator(pTransform1,
processVar1, barwidth, barbase,
attrib1, barjust, barorient);
barplot.IndicatorSubType = ChartObj.RT_BAR_SOLID_SUBTYPE;

RTAlarmIndicator baralarms = new RTAlarmIndicator(baraxis, barplot);
chartVu.AddChartObject(baralarms);


ChartAttribute panelmeterattrib = new ChartAttribute(Color.SteelBlue, 1, DashStyle.Solid, Color.Black);
//RTNumericPanelMeter panelmeter = new RTNumericPanelMeter(pTransform1, processVar1,panelmeterattrib);
//panelmeter.PanelMeterPosition = ChartObj.OUTSIDE_PLOTAREA_MIN;
//panelmeter.NumericTemplate.TextFont = Form1.font7Numeric;
//panelmeter.NumericTemplate.DecimalPos = 0;
//barplot.AddPanelMeter(panelmeter);

//RTAlarmPanelMeter panelmeter2 = new RTAlarmPanelMeter(pTransform1, processVar1,panelmeterattrib);
//panelmeter2.PanelMeterPosition = ChartObj.BELOW_REFERENCED_TEXT;
//panelmeter2.AlarmTemplate.TextFont = Form1.font7Numeric;
//panelmeter2.AlarmIndicatorColorMode = ChartObj.RT_TEXT_BACKGROUND_COLOR_CHANGE_ON_ALARM;
//panelmeter2.SetPositionReference( panelmeter);
//barplot.AddPanelMeter(panelmeter2);

//ChartAttribute panelmetertagattrib = new ChartAttribute(Color.SteelBlue,1,DashStyle.Solid, Color.White);
//RTStringPanelMeter panelmeter3 = new RTStringPanelMeter(pTransform1, processVar1, panelmetertagattrib, ChartObj.RT_TAG_STRING);
//panelmeter3.PanelMeterPosition = ChartObj.OUTSIDE_PLOTAREA_MAX;
//panelmeter3.TextColor = Color.Black;
//panelmeter3.StringTemplate.TextFont = Form1.font7;
//barplot.AddPanelMeter(panelmeter3);
chartVu.AddChartObject(barplot);


f

quinncurtis

1586 Posts

Posted - 03 Feb 2009 :  21:42:00  Show Profile  Reply with Quote
What object is black ?



Go to Top of Page

Sumin-Park

21 Posts

Posted - 03 Feb 2009 :  21:52:58  Show Profile  Reply with Quote
quote:
Originally posted by quinncurtis

What object is black ?








Maybe.. processVar1 background color is black.
Maybe.. Defualt color is black.


if you dont understand, give me your e-mail.
I will give you marking the picture..

your e-mail of this site do not send picturefile...

f

Edited by - Sumin-Park on 03 Feb 2009 21:54:58
Go to Top of Page

quinncurtis

1586 Posts

Posted - 03 Feb 2009 :  22:08:23  Show Profile  Reply with Quote
You did NOT answer our question.

Please take the rest of the day and try and answer the question: What graphical object is black ?


Is it the RTBarIndicator ?

Is it the RTAlarmIndicator ?

Is it the NumericAxisLabels ?

Is it the LinearAxis?


You can send any picture that you want to support@quinn-curtis.com.

We will try and answer your question tomorrow.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07