FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Radio Button color
Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Radio Button color
Posted: Tue May 20, 2008 02:16 PM

To All

I have an application that has 4 groups of radio buttons and visually, the user wants the description of each radion button to be a different color

Like this :

Budget Schedule ... so on ( 4) groups

  • Green * Green
  • Yellow * Yellow
  • Red * Red
  • Blue * Blue

How can I redefine a color for the description ( prompt ) of each radio button .. I have never done anything like this nor do I see anything specific about "prompt" color options??

TIA
Rick Lipkin
SC Dept of Health, USA

Posts: 2706
Joined: Fri Oct 07, 2005 01:50 PM
Radio Button color
Posted: Tue May 20, 2008 10:37 PM

To All

I had to go about this with not grouping radio buttons but to have each button stand alone. Then I can apply the COLOR clause on a single radio button.

Made the code much more difficult and I had to write a valid clause to 'zero' out any other radio buttons in the same column if one was chosen or changed within the same group..

If anyone would like .. I can share the code ..

Rick Lipkin

Posts: 56
Joined: Mon Jul 03, 2006 02:34 AM
Radio Button color
Posted: Wed May 21, 2008 02:04 AM

I had a similar need. I simply used separate SAYs instead of prompts for the radio buttons and I have an ON CHANGE clause for the radios that resets to colors of the SAYs.

The radios' ON CHANGE contains code like:

oPromptF1:SetColor(xcolrF1, nClrBack)
oPromptF2:SetColor(xcolrF2, nClrBack)

oPromptF1:Refresh()
oPromptF2:Refresh()

Posts: 782
Joined: Wed Dec 19, 2007 07:50 AM
Radio Button color
Posted: Wed May 21, 2008 05:17 AM

Hi:

For people who accept third party classes, TSRadio can do that (multicolor captions). TSRadio is part of TSButton library.

Regards.

Manuel Mercado.

manuelmercado at prodigy dot net dot mx

Continue the discussion