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 & .Net Compact Framework
 Real-Time Graphics Tools for .Net (VB and C#)
 Button
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

carlao

54 Posts

Posted - 26 Feb 2005 :  15:57:32  Show Profile  Reply with Quote
When I click on a button a dark color is used to show that the button was clicked. How can I change this dark color to another one?
I also tried to see the RTControlButton information in .chm help file but when I try to see the details I receive an "Page not found" error message.

carlao

quinncurtis

1164 Posts

Posted - 26 Feb 2005 :  16:13:13  Show Profile  Reply with Quote
Try the QCRTGraphNetCompiledHelpFile.chm help file again. We cannot reproduce a problem with the help file. Do any of the other classes fail to come up when you click on them ?

The RTControlButton properties are also documented in the QCRTGraphNetManual.pdf user manual, Chapter 18 - Buttons, Trackbars, etc., which you should take a look at. See the RTControlButton.ButtonCheckedColor property.
Go to Top of Page

carlao

54 Posts

Posted - 26 Feb 2005 :  17:10:53  Show Profile  Reply with Quote
No, there are some pages that I can see and others that does not work.
Go to Top of Page

quinncurtis

1164 Posts

Posted - 26 Feb 2005 :  18:04:02  Show Profile  Reply with Quote

What is the complete name of the file you downloaded and installed the software from ?

Starting with the RT3DFrame class, what are the first 5 classes that cannot be viewed ?
Go to Top of Page

carlao

54 Posts

Posted - 01 Mar 2005 :  22:00:59  Show Profile  Reply with Quote
quote:
Originally posted by quinncurtis

Try the QCRTGraphNetCompiledHelpFile.chm help file again. We cannot reproduce a problem with the help file. Do any of the other classes fail to come up when you click on them ?

The RTControlButton properties are also documented in the QCRTGraphNetManual.pdf user manual, Chapter 18 - Buttons, Trackbars, etc., which you should take a look at. See the RTControlButton.ButtonCheckedColor property.

Go to Top of Page

carlao

54 Posts

Posted - 01 Mar 2005 :  22:02:48  Show Profile  Reply with Quote
When I set ButtonCheckedColor to another color, for example, yellow, the behavior is the same, that is, the clicked button continue to show the dark color.
How to fix this?


quote:
Originally posted by quinncurtis

Try the QCRTGraphNetCompiledHelpFile.chm help file again. We cannot reproduce a problem with the help file. Do any of the other classes fail to come up when you click on them ?

The RTControlButton properties are also documented in the QCRTGraphNetManual.pdf user manual, Chapter 18 - Buttons, Trackbars, etc., which you should take a look at. See the RTControlButton.ButtonCheckedColor property.

Go to Top of Page

quinncurtis

1164 Posts

Posted - 02 Mar 2005 :  08:51:32  Show Profile  Reply with Quote
If you use the RTControlButton as a direct replacement for a Button control, the checked and unchecked colors work as described

If you are using the buttons in an RTFormControlPanelMeter or RTFormControlGrid class, then that class's ChartAttribute is used to set the button color defaults, the fill color of the ChartAttribute is the unchecked color and a darker version of the fill color the checked color. If you want to override this behavior then set the RTControlButton button colors AFTER the constructor to RTFormControlPanelMeter or RTFormControlGrid class. Based on our Treadmill example:

RTControlButton EmergencyButton = new RTControlButton();
EmergencyButton.ButtonUncheckedText = "STOP";
EmergencyButton.ButtonFont = EmergencyButtonFont;
EmergencyButton.Click += new System.EventHandler(this.EmergencyStop_Button_Click);
CartesianCoordinates pTransform1 = new CartesianCoordinates( 0.0, 0.0, 1.0, 1.0);
pTransform1.SetGraphBorderDiagonal(0.86, .75, 0.99, 0.96) ;
ChartAttribute panelmeterattrib =
new ChartAttribute(Color.White,7,DashStyle.Solid, Color.Blue);
RTFormControlPanelMeter panelmeter =
new RTFormControlPanelMeter(pTransform1, EmergencyButton,panelmeterattrib);

// Add this line to change default "checked" RTControlButton color
EmergencyButton.ButtonCheckedColor = Color.Green;
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-07 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07