Problem with RADIO control

Post Reply
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Problem with RADIO control

Post by TimStone »

When using the following command:

REDEFINE RADIO oRadOpt VAR nPrn ID 701, 702, 703, 704 OF oDlg

With the following RC

Code: Select all

WRKPRNSEL DIALOG DISCARDABLE 0, 0, 100, 125
STYLE WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_VISIBLE
CAPTION "Workorder Printout Selection Options"
FONT 12, "Segoe UI"
BEGIN
  CONTROL "Print Invoice", 701, "Button", BS_AUTORADIOBUTTON, 10, 10, 80, 13
  CONTROL "Print Estimate", 702, "Button", BS_AUTORADIOBUTTON, 10, 25, 80, 13
  CONTROL "Print Tech Worksheet", 703, "Button", BS_AUTORADIOBUTTON, 10, 40, 80, 13
  CONTROL "Print Counter Sale", 704, "Button", BS_AUTORADIOBUTTON, 10, 55, 80, 13
  CONTROL "", 710, "Button", WS_TABSTOP, 30, 75, 40, 40
END
 
displays correctly when initialized in a dialog. However, when a radio button is selected, all prompts/text for the previous buttons disappears. So, if I press on the 3rd button, the text for 1 and 2 disappears.

This occurs with builds using Harbour and VC++ 2013.

Any suggestions ? I find it consistently when I use the RADIO command with resources.
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Problem with RADIO control

Post by Enrico Maria Giordano »

Tim,

any samples I can try here? Anyway, try with this more complete definition:

BS_AUTORADIOBUTTON | BS_LEFTTEXT | WS_CHILD | WS_VISIBLE

EMG
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Re: Problem with RADIO control

Post by TimStone »

No difference with those added. I don't have a sample ... it occurs wherever I use the RADIO controls, but this is specific to Harbour with Microsoft Visual C++

Tim
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
Wanderson
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Re: Problem with RADIO control

Post by Wanderson »

Hi try to change AUTORADIOBUTTON to RADIOBUTTON
User avatar
TimStone
Posts: 2536
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA
Contact:

Re: Problem with RADIO control

Post by TimStone »

It makes no difference. The behavior is the same. It's as if it doesn't get a full refresh of the text with a change.
Tim Stone
http://www.MasterLinkSoftware.com
timstone@masterlinksoftware.com
Using: FWH 19.06 with Harbour 3.2.0 / Microsoft Visual Studio Community 2019
hua
Posts: 861
Joined: Fri Oct 28, 2005 2:27 am

Re: Problem with RADIO control

Post by hua »

Is the manifest linked-in Tim? I recall we have this issue where on XP if no manifest is linked in, the radio's label goes missing. Just a shot in the dark here
FWH 11.08/FWH 19.03
xHarbour 1.2.1 (Rev 6406) + BCC
Harbour 3.1 (Rev 17062) + BCC
Harbour 3.2.0dev (r1904111533) + BCC
User avatar
Rick Lipkin
Posts: 2397
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Re: Problem with RADIO control

Post by Rick Lipkin »

Tim

I realize that you are not using Groups, but this topic may be of help ..

Rick Lipkin

http://forums.fivetechsupport.com/viewt ... io#p135666
User avatar
Richard Chidiak
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France
Contact:

Re: Problem with RADIO control

Post by Richard Chidiak »

Tim

Try adding |WS_TABSTOP

you can also try switching from autoradiobutton to radiobutton

Hth

Richard
http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: Problem with RADIO control

Post by ukoenig »

Tim,

Your sample ( from resources ) for download.
I still added a possible change of the dialog-brush

DOWNLOAD :
http://www.pflegeplus.com/DOWNLOADS/Testrad1.zip

Image

best regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
Post Reply