Checkbox transparent win 7 not win xp

Checkbox transparent win 7 not win xp

Postby hag » Sat Nov 19, 2011 9:18 pm

I have a checkbox that is transparent win 7 not win xp. Using resources, Transparent set at the define dialog.
All workinhg fine except not in windows XP. Any ideas.

Thanks in advance
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Re: Checkbox transparent win 7 not win xp

Postby ukoenig » Sat Nov 19, 2011 11:50 pm

Harvey,

maybe a transparent-problem with Resources ?

I changed all my Checkboxes using TSelex ( looks much better ).

or use a extra SAY and resize the Checkbox as small as possible :

REDEFINE CHECKBOX oCheck2 VAR lCheck2 ID 230 OF oDlg1 UPDATE
add a extra SAY :
REDEFINE SAY oSay1 VAR cSay1 ID 231 OF oDlg1 FONT oFootFont COLOR 128

TSelex-Resource :

CONTROL "", 220, "TSELEX", 0 | WS_CHILD | WS_VISIBLE, 211, 83, 58, 28

Image

Code: Select all  Expand view

REDEFINE SELEX oSelect VAR nOption1 OF oDlg1 ID 220;
ITEMS "&ON", "&OFF";
GRADIENT OUTTRACK { { 0.5, 16443068, 16312263 }, ;
     { 0.5, 16312263, 16443068 } } ;
GRADIENT INTRACK { { 1, 5426223, 1071100 }, ;
     { 1, 1071100, 5426223 } } ;
THUMBSIZE 20, 20 ROUNDSIZE 5 ;
COLOR THUMB 14853684 ;
COLORTEXT 128, 32768 ;
TITLE "Select" TOP ;
FONT oFootFont ;
ACTION( If( nOption1 == 2, oDlg1:End(), ) )
 



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: Checkbox transparent win 7 not win xp

Postby hag » Sun Nov 20, 2011 7:38 am

Uwe:
Using the say worked fine. Thanks.
Just one more color problem. The transparent clause doesn't work with an undefined group.
Any suggestions?
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Re: Checkbox transparent win 7 not win xp

Postby ukoenig » Sun Nov 20, 2011 11:08 am

Harvey,

using Resources, the same transparent-problem like Checkboxes.
( doesn't work on Dlg-ON INIT or PAINT )

Maybe You can include Class SBUTTON from Manuel Mercado ?
using Resources works fine for Lines, Groups and Boxes like You can see.
I will have a look at my Tool ( Screenshot ), doing some more work on it.

Image

Best Regards
Uwe :?:
Last edited by ukoenig on Mon Nov 21, 2011 10:56 am, edited 1 time in total.
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: Checkbox transparent win 7 not win xp

Postby ukoenig » Mon Nov 21, 2011 9:47 am

Harvey,

it seems to be a Brush-painting-problem of Resources.
Moving a Color-define from Dlg-INIT like :

DEFINE DIALOG oDlg1 RESOURCE "Selection" TRANSPARENT
...
// COLOR
// -----------
DEFINE BRUSH oBrush COLOR 16443068

// BMP-BRUSH
// -----------
// DEFINE BRUSH oBrush FILE c_path + "\Images\BluStone.Bmp"

/*
// GRADIENT
// ---------------
aGrad := { { 0.5, 10899511, 16443068 }, { 0.5, 16443068, 10899511 } }
hDC = CreateCompatibleDC( oDlg1:GetDC() )
hBmp = CreateCompatibleBitMap( oDlg1:hDC, 200, 600 )
hBmpOld = SelectObject( hDC, hBmp )
GradientFill( hDC, 0, 0, 600, 200, aGrad, .T. )
DeleteObject( oDlg1:oBrush:hBrush )
oBrush := TBrush():New( ,,,, hBmp )
oBrush:Cargo := aGrad
SelectObject( hDC, hBmpOld )
ReleaseDC(hDC)
*/

oDlg1:SetBrush( oBrush )
...
ACTIVATE DIALOG oDlg1 CENTERED ;
ON INIT ( oDlg1:Move( 30, 10, oDlg1:nWidth, oDlg1:nHeight, .f. ), oBrw1:SetFocus() )

...

Image

works, but only for COLORS !!!
using BMP-brush or Gradient, the Group covers the Checkboxes


Image

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: Checkbox transparent win 7 not win xp

Postby ukoenig » Mon Nov 21, 2011 7:06 pm

There seems to be a problem with ascending Field-order from Resource.
Changing the Order : lowest = Group / higher = Checkboxes, it works .
A higher Group ID covers the included Controls.

Image

Best regards
Uwe :lol:
Last edited by ukoenig on Mon Nov 21, 2011 11:48 pm, edited 1 time in total.
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: Checkbox transparent win 7 not win xp

Postby hag » Mon Nov 21, 2011 7:37 pm

Uwe
Thanks for all the input. I'll be working on it in next couple of days. I'll keep you posted.

Regards
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Re: Checkbox transparent win 7 not win xp

Postby Antonio Linares » Mon Nov 21, 2011 10:37 pm

Uwe,

Thanks for your superb help as usual :-)
regards, saludos

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

Re: Checkbox transparent win 7 not win xp

Postby ukoenig » Tue Nov 22, 2011 3:27 pm

Thank You very much for the Response,

my new extended Res.-Tester will cover and test
all Controls ( transparent Painting )
There will be a complete new Download-file
A Resource-tester is still missing in my Tool-Collection !!!

Testing :
1. Groups, Radios and Checkboxes on different Dialog-backgrounds
2. Groups, Radios and Checkboxes on different TFoldex-backgrounds

The Dialog-background and Textcolor can be defined from the xBrowse-selection.

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

Re: Checkbox transparent win 7 not win xp

Postby hag » Tue Nov 22, 2011 9:26 pm

Uwe:
You have been great helping me out.
Not using gradient....can't get it to work.

But one more qusetion. How can you color: msfInfo(), MsgAlert(), msgget(), msgYesNo() etc.

Thanks for the help.
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Re: Checkbox transparent win 7 not win xp

Postby ukoenig » Tue Nov 22, 2011 10:14 pm

Harvey,
Gradient works fine. You can have a closer look, as soon I finished the new Tool for Download.

MsgAlert , MsgYesNo ... is Window-standard.
You can create Your own fancy Messages, or have a look at the post from Ramesh :

Ramesh Babu P-Functions :
viewtopic.php?f=3&t=22834

Image

Tools :
viewtopic.php?f=3&t=22226&p=118317&hilit=message+tool#p118317

Image

Best Regards
Uwe :roll:
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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 112 guests