Problem with display of Checkbox and Radio

Re: Problem with display of Checkbox and Radio

Postby Taavi » Sat Sep 04, 2010 5:57 pm

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 :-)
Taavi
 
Posts: 89
Joined: Mon Nov 21, 2005 10:29 am

Re: Problem with display of Checkbox and Radio

Postby Antonio Linares » Sun Sep 05, 2010 8:26 am

Taavi,

Are you using XP ?

On Windows 7 is fine, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem with display of Checkbox and Radio

Postby IBTC » Sun Sep 05, 2010 8:58 am

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
User avatar
IBTC
 
Posts: 103
Joined: Sat Oct 18, 2008 8:13 pm
Location: Stuttgart, Germany

Re: Problem with display of Checkbox and Radio

Postby Taavi » Sun Sep 05, 2010 11:43 am

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
Taavi
 
Posts: 89
Joined: Mon Nov 21, 2005 10:29 am

Re: Problem with display of Checkbox and Radio

Postby Antonio Linares » Sun Sep 05, 2010 3:57 pm

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
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem with display of Checkbox and Radio

Postby nageswaragunupudi » Sun Sep 05, 2010 4:53 pm

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
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Problem with display of Checkbox and Radio

Postby Gale FORd » Sun Sep 05, 2010 6:10 pm

I have given several screen shots. It goes away with the addition of manifest.
Gale FORd
 
Posts: 663
Joined: Mon Dec 05, 2005 11:22 pm
Location: Houston

Re: Problem with display of Checkbox and Radio

Postby Daniel Garcia-Gil » Sun Sep 05, 2010 11:30 pm

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

Download sample HERE

Image
User avatar
Daniel Garcia-Gil
 
Posts: 2365
Joined: Wed Nov 02, 2005 11:46 pm
Location: Isla de Margarita

Re: Problem with display of Checkbox and Radio

Postby Antonio Linares » Mon Sep 06, 2010 12:15 pm

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
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Problem with display of Checkbox and Radio

Postby ukoenig » Wed Jan 12, 2011 2:01 pm

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  Expand view

...
...
@ 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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Problem with display of Checkbox and Radio

Postby hidroxid » Thu Mar 22, 2012 4:05 pm

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!
hidroxid
 
Posts: 30
Joined: Sun Apr 24, 2011 12:50 am

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 110 guests