Anser,
Here it is working fine on Windows 7.
Here you have the EXE, please run this one, thanks:
Anser,
Here it is working fine on Windows 7.
Here you have the EXE, please run this one, thanks:

Dear Mr.Antonio,
I am using XP Professional and the screen snapshot which I pasted above is the result of running the sample on XP Professional. I have only 1 PC running Windows 7 and I am out of office now. Shall let u know the feedback tomorrow.
Dear Uwe,
As per the new GradBus.Prg you will be able to use Transparent Checkbox and Radio controls. If I am not wrong, prior to this we had Transparency problems with Radio and Checkbox contols on a Gradiant background. They get Transparency effect only when a Gradient BMP is used as BRUSH. With Antonio's new GradBus Sample, we don't have to create BMP. May be I am wrong, just dumping what I had in my brain.
Regards
Anser
![]()
Günther,
We have just tested our provided EXE in Vista and also works fine.
Have you tested our EXE ? thanks,
Antonio, yes i tested your sample exe also in Vista. When i leave the "brushed" dialog and resize the main window, the main window suddenly is brushed with the brush from the closed dialog. Please try also gets and there background!!
Ok, I found where the different behaviors are coming from:
I use a gray color for the window color, so it is not the white brush and it does not gets changed from the application. We need to review this.
Please change your window color (in Windows colors settings) to gray and you will see that then it behaves ok.
Antonio, is the function GradientBrush() not included in FWH?
Günther,
Not yet.
Actually it is included in samples\GradBrus.prg so we can easily modify it and test it.
Antonio, i found also, after calling a dialog with Gradientbrush() this brush are used from other dialogs without Gradientbrush(). BUT ONLY, if this dialogs use the clausula ... COLOR x,y.
In your exe the "Another" - dialog not use any color. Please test the "Another" dialog with an ...COLOR clausula.
Anser,
Here it is working fine on Windows 7.
Here you have the EXE, please run this one, thanks:
http://www.mediafire.com/?sharekey=414c ... 8114394287
Anser, Günther,
In FWH\samples\GradBrus.prg please replace:
DEFINE BRUSH oBrush COLOR CLR_WHITE
with
DEFINE BRUSH oBrush COLOR CLR_CYAN
and it will work fine ![]()
if ( nAt := AScan( ::aBrushes, {|oBrush| oBrush:cStyle == ::cStyle .and. ;
oBrush:nRGBColor == ::nRGBColor .and. ;
oBrush:cBmpFile == ::cBmpFile .and. ;
oBrush:cBmpRes == ::cBmpRes } ) ) > 0
if !empty(::aBrushes[ nAt ]:hBitmap) .and. ( empty(::aBrushes[ nAt ]:cBmpFile) .and. empty(::aBrushes[ nAt ]:cBmpRes) )
::aBrushes[ nAt ]:end()
else
#ifndef __XPP__
Self := ::aBrushes[ nAt ] // This is not permited with XBase++
::nCount++
return Self
#else
::aBrushes[ nAt ]:nCount++
return ::aBrushes[ nAt ]
#endif
endif
endifGünther,
Brushes objects are reused in FWH to reduce the consume of GDI memory. If we have a white brush and we change its hBrush then all objects that use that white brush, will have it changed.
Thats why if you select a non used brush color, like cyan, and change its hBrush, it will not affect to other objects brushes, unless they use a cyan brush also.