Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #9872 > unrolled thread
| Started by | "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> |
|---|---|
| First post | 2016-10-27 10:34 +0200 |
| Last post | 2016-10-29 12:09 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
First tests with Windows 10 Anniversary Update "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2016-10-27 10:34 +0200
Re: First tests with Windows 10 Anniversary Update "Karl-Heinz" <invalid@invalid.invalid> - 2016-10-29 12:09 +0200
| From | "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> |
|---|---|
| Date | 2016-10-27 10:34 +0200 |
| Subject | First tests with Windows 10 Anniversary Update |
| Message-ID | <nuse5p$78k$1@dont-email.me> |
Since this morning I have the Windows 10 Anniversary Update on my developing machine. Until now everything works well - Execution of all programs tested until now, usage of VO/Vulcan with VS/... Exceptions: - Windows and Office initially were in English than in German and I had to change the language in the control panel and install a language pack. This may be related to the distribution of the Windows Update) - Our programs have some owner drawn push buttons with gradients that now show very strange colors randomly changing. The reason seems to be the function GradientFill of the dll msimg32.dll. When substituting this with gradients painted with basic GDI functions in VO the previous colors turn back. (Probably Microsoft wants to convince developers to avoid this function in the future...) - Xcopy in the command line gives some warnings, but these seem to be related to an Antivirus program "Trend Antivirus" - One Icon of the program "QDIR" is looking a bit strange in the taskbar. What I have heard from a colleague: An IIS installed on a Windows 10 machine lost all its settings and had to be reconfigured completely. Arne Ortlinghaus ACS Data Systems
[toc] | [next] | [standalone]
| From | "Karl-Heinz" <invalid@invalid.invalid> |
|---|---|
| Date | 2016-10-29 12:09 +0200 |
| Message-ID | <e7jat9F864uU1@mid.individual.net> |
| In reply to | #9872 |
Hi Arne,
> Our programs have some owner drawn push buttons with gradients that now
> show very strange colors randomly changing. The reason seems to be the
> function GradientFill of the dll msimg32.dll.
I´m using Gradientfill() on a CustomControl that works as expected under
Win7,8 and 10. Because Gradientfill() fills only a small part of a CC in my
real app i made a test to see what happens when i fill a much larger CC
area.Assuming that you have all the required Defines etc. here´s the
Dispatch Code of a subclassed CC. BTW. The only difference i noticed is the
nasty flickering Win 10 produces when such a control is resizable ...
Here´s a link to my win 10 results ( GRADIENT_FILL_RECT_H and
GRADIENT_FILL_RECT_V )
http://www.rauscher-software.de/downloads/GradientW10.jpg
regards
Karl-Heinz
---------------------------------------------------
CLASS ccGradientFill INHERIT Customcontrol
-----------------------------------------------
METHOD Dispatch ( oEvent ) CLASS ccGradientFill
LOCAL struPaint IS _winPAINTSTRUCT
LOCAL struRect IS _winRECT
LOCAL DIM vert[2] IS _winTRIVERTEX
LOCAL gRect IS _winGRADIENT_RECT
LOCAL hDC, hLib, hFunc AS PTR
DO CASE
CASE oEvent:message == WM_ERASEBKGND
// not really nessecary < W10, but doesn´t help to prevent the
flickering in W10 ...
RETURN SELF:eventreturnvalue := 1L
CASE oEvent:message == WM_PAINT
hDC := BeginPaint( SELF:Handle() , @struPaint )
GetClientRect ( SELF:Handle() , @struRect )
IF ( hLib := LoadLibrary( Cast2Psz ("msimg32.dll")) ) != NULL_PTR
.AND. ;
( hFunc := GetProcAddress( hLib, String2Psz ("GradientFill")) )
!= NULL_PTR
vert[1].x := struRect.left
vert[1].y := struRect.top
vert[1].Red := 0x0000
vert[1].Green := 0x8000
vert[1].Blue := 0x8000
vert[1].Alpha := 0x0000
vert[2].x := struRect.right - struRect.left
vert[2].y := struRect.bottom - struRect.top
vert[2].Red := 0x00
vert[2].Green := 0xd000
vert[2].Blue := 0xd000
vert[2].Alpha := 0x0000
gRect.UpperLeft := 0
gRect.LowerRight := 1
PCALL( hFunc, hDC, @vert, 2, @gRect, 1, GRADIENT_FILL_RECT_H )
// or GRADIENT_FILL_RECT_V
ENDIF
IF hLib != NULL_PTR
FreeLibrary( hLib )
ENDIF
EndPaint ( SELF:handle() , @struPaint )
ENDCASE
RETURN SUPER:Dispatch ( oEvent )
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web