Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 10 total
Thread Unable to change/keep font color in RadioButtons
Sun, May 22 2016 1:04 PMPermanent Link

Jan Ferguson

Data Software Solutions, Inc.

Team Elevate Team Elevate

Running EWB v2.04 Build 1 on Windows 7 Pro 32 bit OS

Whenever I change the font color of any radiobutton from the default of clElevateDarkGray to clBlack during design it will indeed change properly in the IDE but will not stay that way after compilation and when the application is run. Likewise if I try to change the color programmatically in an OnShow event, it will not change. If it makes a difference, the radiobuttons are located in a TPagePanel.

Am I missing something?

Jan Ferguson
Sun, May 22 2016 1:09 PMPermanent Link

Jan Ferguson

Data Software Solutions, Inc.

Team Elevate Team Elevate

Jan Ferguson wrote:

Running EWB v2.04 Build 1 on Windows 7 Pro 32 bit OS

Whenever I change the font color of any radiobutton from the default of clElevateDarkGray to clBlack during design it will indeed change properly in the IDE but will not stay that way after compilation and when the application is run. Likewise if I try to change the color programmatically in an OnShow event, it will not change. If it makes a difference, the radiobuttons are located in a TPagePanel.

Am I missing something?

Jan Ferguson

P.S. I am recreating a quote page for my web site that I previously created using EWB v1.x., which can be seen here. https://datasoftware.net/quote.html . There were no issues with this in EWB v1.x but having problems with the fonts and the size of the actual radiobutton in v2.04 B1 (although I did see a post from "Doc" on how to change the size of the radiobutton itself).
Mon, May 23 2016 3:45 AMPermanent Link

Uli Becker

Jan,

> Am I missing something?

You'll have to change these interfaces to get what you want:

tradiobuttonindeterminate
tradiobuttonselected
tradiobuttonunselected

Since "ApplyProperties.FontColor" is set to true by default, this
setting will always overwrite your setting.

Either change the Font.Color property of all states in the interface to
clBlack or  "ApplyProperties.FontColor" to false.

Then you have to rebuild the library.

Uli
Mon, May 23 2016 6:06 PMPermanent Link

Jan Ferguson

Data Software Solutions, Inc.

Team Elevate Team Elevate

Uli,

I must be dense today but I have tried your instructions both ways...first by changing the "ApplyProperties.FontColor" to false on all three interfaces then rebuilt the library, and after that didn't seem to work, I tried changing the font color of all the three interfaces then rebuilding the library. The same result.

On occasion, with the "tradiobuttonindeterminate" interface I would get a "System Error. Code 5: Access is Denied", yet it would seem to save the interface even after I closed out without saving it.

Finally, it appears that the highest LayoutOrder value always seems to use the changed color of clBlack no matter what the selection state is.

This is confusing and baffling!

Jan

Uli Becker wrote:

Jan,

You'll have to change these interfaces to get what you want:

tradiobuttonindeterminate
tradiobuttonselected
tradiobuttonunselected

Since "ApplyProperties.FontColor" is set to true by default, this
setting will always overwrite your setting.

Either change the Font.Color property of all states in the interface to
clBlack or  "ApplyProperties.FontColor" to false.

Then you have to rebuild the library.

Uli
Tue, May 24 2016 5:46 AMPermanent Link

Uli Becker

Jan,

> I must be dense today but I have tried your instructions both ways...first by changing the "ApplyProperties.FontColor" to false on all three interfaces then rebuilt the library, and after that didn't seem to work, I tried changing the font color of all the three interfaces then rebuilding the library. The same result.

You are right, I tried that and it doesn't work like I described.

> On occasion, with the "tradiobuttonindeterminate" interface I would get a "System Error. Code 5: Access is Denied", yet it would seem to save the interface even after I closed out without saving it.

Also right: I get this error every time after having made changes to the
interface.

Can't help here, sorry.

Uli
Tue, May 24 2016 11:00 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Jan,

<< I must be dense today but I have tried your instructions both ways...first by changing the "ApplyProperties.FontColor" to false on all three interfaces then rebuilt the library, and after that didn't seem to work, I tried changing the font color of all the three interfaces then rebuilding the library. The same result.

On occasion, with the "tradiobuttonindeterminate" interface I would get a "System Error. Code 5: Access is Denied", yet it would seem to save the interface even after I closed out without saving it. >>

Where are you saving the modified interfaces ?

<< Finally, it appears that the highest LayoutOrder value always seems to use the changed color of clBlack no matter what the selection state is. >>

I'm not quite sure what this means - is this *after* the changes that you've made, or *before* ?

Tim Young
Elevate Software
www.elevatesoft.com
Tue, May 24 2016 11:27 AMPermanent Link

Jan Ferguson

Data Software Solutions, Inc.

Team Elevate Team Elevate

Jan: << On occasion, with the "tradiobuttonindeterminate" interface I would get a "System Error. Code 5: Access is Denied", yet it would seem to save the interface even after I closed out without saving it. >>

Tim: < Where are you saving the modified interfaces ? >

I'm just clicking on the "Save" icon. It appears they are being saved to the C:\Program Files\Elevate Web Builder 2\interfaces folder as the timestamp shows my changes for the "selected" and "unselected" interfaces. The "indeterminate" still shows a timestamp of 12/29/2015 14:36.

Jan: << Finally, it appears that the highest LayoutOrder value always seems to use the changed color of clBlack no matter what the selection state is. >>

Tim: < I'm not quite sure what this means - is this *after* the changes that you've made, or *before* ? >

Actually I was premature in stating that. What I had meant was that when I ran the program, the only radiobutton that had a black font was the last one in a group (I have three containers, each containing two or more radiobuttons). However I then noticed that even though the initial font was black in those instances, the instant I hovered my cursor over the radiobutton it changed to clElevateDarkGray.

Tim, I'd like the radio button fonts to be black so they show up better. How can I accomplish that? The way they show up now almost appears that they are disabled.

The project I am working on now with EWB v2 is at http://policeagencysoftware.com/ (under "Get A Quote")
The original EWB v1 project I am converting is at http://datasoftware.net/quote.html

The code works....I just want to show a darker font for the radiobuttons.

Jan
Tue, May 24 2016 11:46 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Jan,

<< I'm just clicking on the "Save" icon. It appears they are being saved to the C:\Program Files\Elevate Web Builder 2\interfaces folder as the timestamp shows my changes for the "selected" and "unselected" interfaces. The "indeterminate" still shows a timestamp of 12/29/2015 14:36. >>

I wouldn't save the interfaces there.  Follow the instructions here on customizing control interfaces:

http://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&topic=Control_Interfaces

(at the bottom)

IOW, make a copy of the standard control interfaces that you want to modify and put them in your project directory, or somewhere in your project's compiler search paths (such as \MyProject\interfaces).

<< Actually I was premature in stating that. What I had meant was that when I ran the program, the only radiobutton that had a black font was the last one in a group (I have three containers, each containing two or more radiobuttons). However I then noticed that even though the initial font was black in those instances, the instant I hovered my cursor over the radiobutton it changed to clElevateDarkGray.

Tim, I'd like the radio button fonts to be black so they show up better. How can I accomplish that? The way they show up now almost appears that they are disabled. >>

You do it like Uli indicated, with the caveat above.

I just went through the existing 2.04 radio button control interfaces, and part of the problem is that the "TRadioButtonSelected" control interface has its Caption element's ApplyProperties.FontColor property set to False, while the other two radio button control interfaces have the same property set to True.  This is a bug, but is only visible when you change the Font.Color property for a TRadioButton instance.  This is fixed for 2.05.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, May 24 2016 1:58 PMPermanent Link

Jan Ferguson

Data Software Solutions, Inc.

Team Elevate Team Elevate

Thanks Tim. I'll give it a try later today.

Jan


Tim Young [Elevate Software] wrote:

Jan,

<< I'm just clicking on the "Save" icon. It appears they are being saved to the C:\Program Files\Elevate Web Builder 2\interfaces folder as the timestamp shows my changes for the "selected" and "unselected" interfaces. The "indeterminate" still shows a timestamp of 12/29/2015 14:36. >>

I wouldn't save the interfaces there.  Follow the instructions here on customizing control interfaces:

http://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&topic=Control_Interfaces

(at the bottom)

IOW, make a copy of the standard control interfaces that you want to modify and put them in your project directory, or somewhere in your project's compiler search paths (such as \MyProject\interfaces).

<< Actually I was premature in stating that. What I had meant was that when I ran the program, the only radiobutton that had a black font was the last one in a group (I have three containers, each containing two or more radiobuttons). However I then noticed that even though the initial font was black in those instances, the instant I hovered my cursor over the radiobutton it changed to clElevateDarkGray.

Tim, I'd like the radio button fonts to be black so they show up better. How can I accomplish that? The way they show up now almost appears that they are disabled. >>

You do it like Uli indicated, with the caveat above.

I just went through the existing 2.04 radio button control interfaces, and part of the problem is that the "TRadioButtonSelected" control interface has its Caption element's ApplyProperties.FontColor property set to False, while the other two radio button control interfaces have the same property set to True.  This is a bug, but is only visible when you change the Font.Color property for a TRadioButton instance.  This is fixed for 2.05.

Tim Young
Elevate Software
www.elevatesoft.com
Tue, May 24 2016 9:36 PMPermanent Link

Jan Ferguson

Data Software Solutions, Inc.

Team Elevate Team Elevate

Worked perfect. Thanks for the assistance!

Jan

Tim Young [Elevate Software] wrote:

Jan,

<< I'm just clicking on the "Save" icon. It appears they are being saved to the C:\Program Files\Elevate Web Builder 2\interfaces folder as the timestamp shows my changes for the "selected" and "unselected" interfaces. The "indeterminate" still shows a timestamp of 12/29/2015 14:36. >>

I wouldn't save the interfaces there.  Follow the instructions here on customizing control interfaces:

http://www.elevatesoft.com/manual?action=viewtopic&id=ewb2&topic=Control_Interfaces
Image