Problem with display of Checkbox and Radio

Taavi
Posts: 77
Joined: Mon Nov 21, 2005 10:29 am

Re: Problem with display of Checkbox and Radio

Post by Taavi »

Hi,
try testchk2.prg

If You click on checkbox to select it, caption disappears.


Antonio Linares wrote:Taavi,

Could you provide a small example to reproduce it ?

Thanks for your feedback :-)
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Problem with display of Checkbox and Radio

Post by Antonio Linares »

Taavi,

Are you using XP ?

On Windows 7 is fine, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
IBTC
Posts: 103
Joined: Sat Oct 18, 2008 8:13 pm
Location: Stuttgart, Germany
Contact:

Re: Problem with display of Checkbox and Radio

Post by IBTC »

Antonio Linares wrote: Are you using XP ?
I can see the problem, Taavi reported, on Mac/Linux with Wine 1.2 (Windows XP).
Best Regards,
Ruediger Alich

---
HMG 3.1.3 | FTDN/FWH 13.12 | Harbour 3.2 | BCC/MinGW | Windows XP/Vista/7/8/10 (32/64-Bit), Wine (Linux/Mac) - started 1999 with FW, 1989 with Clipper
Taavi
Posts: 77
Joined: Mon Nov 21, 2005 10:29 am

Re: Problem with display of Checkbox and Radio

Post by Taavi »

Yes, XP.
I found reports about this problem started after I switched to FWH 10.07
Antonio Linares wrote:Taavi,

Are you using XP ?

On Windows 7 is fine, thanks
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Problem with display of Checkbox and Radio

Post by Antonio Linares »

Taavi,

I have just tested it on XP emulated on VirtualBox and works fine:
Image
Could you please post a screenshot ? thanks :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Problem with display of Checkbox and Radio

Post by nageswaragunupudi »

Antonio Linares wrote:Taavi,

I have just tested it on XP emulated on VirtualBox and works fine:
Image
Could you please post a screenshot ? thanks :-)
Mr Antonio
We can see the problem when (1) program is built without manifest and viewed on XP with themes disabled.
Can you simulate that environment ?
Regards

G. N. Rao.
Hyderabad, India
Gale FORd
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston
Contact:

Re: Problem with display of Checkbox and Radio

Post by Gale FORd »

I have given several screen shots. It goes away with the addition of manifest.
User avatar
Daniel Garcia-Gil
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita
Contact:

Re: Problem with display of Checkbox and Radio

Post by Daniel Garcia-Gil »

Hello
i confirm the problem, but using Microsoft compiler (2008)

Download sample HERE

Image
our best documentation is the source code
Isla de Margarita Venezuela.
danielgarciagil@gmail.com
http://tdolphin.blogspot.com/
https://www.dropbox.com/referrals/NTI5N ... rc=global9
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Problem with display of Checkbox and Radio

Post by Antonio Linares »

Probably it is related to the recent discussed bug in function IsAppThemed()

Please try it adding:

function IsAppThemed()

return .T.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: Problem with display of Checkbox and Radio

Post by ukoenig »

Hello,

I found the Reason of not working Textcolor for Radios and Checkboxes ( allways black ),
I deleted as a Test from resource :
#ifdef __FLAT__
1 24 "WindowsXP.Manifest"
#endif

Code: Select all

...
...
@ 8, 10 SAY oSay3 PROMPT "Transp. Say" OF oWndDlg SIZE 100, 20 FONT oFont4 PIXEL
oSay3:SetColor( nTColor, )
oSay3:lTransparent := .T.

@ 25, 8 RADIO oRadio3 VAR nRadio3 OF oWndDlg PIXEL ;
ITEMS "Option &1", "Option &2" _3D SIZE 50, 12 COLOR nTColor ;
HELPID 100, 101 ;
ON CHANGE MsgBeep()
oRadio3:SetFont( oFont4 )
AEval( oRadio3:aItems, { | oRad | oRad:lTransparent := .T. } )

@ 55, 12 CHECKBOX oCheck3 VAR lCheck3  COLOR nTColor PIXEL ;
PROMPT "&ClickMe" OF oWndDlg SIZE 50, 15 ;
ON CHANGE oCheck3:SetText( "New Text" ) 
oCheck3:lTransparent := .T. 
oCheck3:SetFont( oFont4 )
...
...
 
Image

after that, the Textcolor works like expected.
Any Solution, to get it working with < WindowsXP.Manifest > ?
Using Windows-Vista.

Image

Best regards
Uwe :?:
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.
hidroxid
Posts: 28
Joined: Sun Apr 24, 2011 12:50 am

Re: Problem with display of Checkbox and Radio

Post by hidroxid »

ukoenig wrote:Hello,

I found the Reason of not working Textcolor for Radios and Checkboxes ( allways black ),
I deleted as a Test from resource :
#ifdef __FLAT__
1 24 "WindowsXP.Manifest"
#endif
Hello Uwe

At least you found the solutions to use Text and Back color for Radios using XP.Manifest ?

Thanks in advance!
Post Reply