Author |
Topic  |
|
carlao
54 Posts |
Posted - 26 Feb 2005 : 15:57:32
|
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
|
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. |
 |
|
carlao
54 Posts |
Posted - 26 Feb 2005 : 17:10:53
|
No, there are some pages that I can see and others that does not work. |
 |
|
quinncurtis
1164 Posts |
Posted - 26 Feb 2005 : 18:04:02
|
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 ? |
 |
|
carlao
54 Posts |
Posted - 01 Mar 2005 : 22:00:59
|
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.
|
 |
|
carlao
54 Posts |
Posted - 01 Mar 2005 : 22:02:48
|
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.
|
 |
|
quinncurtis
1164 Posts |
Posted - 02 Mar 2005 : 08:51:32
|
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;
|
 |
|
|
Topic  |
|
|
|