Author Topic: [SDK] 08 - Version zskin06a for VISTA [FIX]  (Read 8099 times)

0 Members and 1 Guest are viewing this topic.

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2022
    • www.zapsolution.com
[SDK] 08 - Version zskin06a for VISTA [FIX]
« on: August 12, 2007, 10:51:11 PM »
I just found that the new version causes flickering with... VISTA

Argh! those "small" differences between Microsoft's OS, have always been a pain for us, low level SDK programmers  :'(

This new version works well, with both XP and VISTA, and it is flicker free on both OS.
So far I didn't check with 2000, I hope it should work well with it too ;)

Patrice Terrier
www.zapsolution.com
« Last Edit: August 10, 2011, 05:05:04 PM by Patrice Terrier »
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Offline Eros Olmi

  • Sr. Member
  • ****
  • Posts: 268
    • thinBasic
Re: [SDK] 8 - Version zskin06a for VISTA [FIX]
« Reply #1 on: August 12, 2007, 11:13:57 PM »
Checked under WinXP and Vista (VMWare emulated). All fine.

Under Win2K application doesn't start at all, no error, no messages. I have GDI+ installed because other applications using GDI+ works.
Under Taskmanager seems the process starts and immediatelly ends but no user interface is visible.

Ciao
Eros

thinBasic Script Interpreter - www.thinbasic.com | www.thinbasic.com/community
Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2022
    • www.zapsolution.com
Re: [SDK] 8 - Version zskin06a for VISTA [FIX]
« Reply #2 on: August 12, 2007, 11:32:49 PM »
I still have a computer running native Windows 2000, I shall make a try on it and see if I can diagnostic the problem ...

I don't know if the WS_EX_COMPOSITED extended style is supported on 2000, must check that first.

patrice
« Last Edit: August 12, 2007, 11:35:02 PM by Patrice Terrier »
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Offline Eros Olmi

  • Sr. Member
  • ****
  • Posts: 268
    • thinBasic
Re: [SDK] 8 - Version zskin06a for VISTA [FIX]
« Reply #3 on: August 12, 2007, 11:52:27 PM »
All perfect under Win2K just commenting out:

dwExStyle = %WS_EX_COMPOSITED

Thanks a lot
Eros
thinBasic Script Interpreter - www.thinbasic.com | www.thinbasic.com/community
Win7Pro 64bit - 8GB Ram - Intel i7 M620 2.67GHz - NVIDIA Quadro FX1800M 1GB

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2022
    • www.zapsolution.com
Re: [SDK] 8 - Version zskin06a for VISTA [FIX]
« Reply #4 on: August 13, 2007, 12:01:52 AM »
In this case just replace the current
dwExStyle = %WS_EX_COMPOSITED

by this

dwExStyle = 0
IF zOsVersion > 500 THEN dwExStyle = %WS_EX_COMPOSITED
'// XP and above

Then, no built-in double buffer in Windows 2000.

patrice
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Offline Mike Mayerhoffer

  • Newbie
  • *
  • Posts: 17
Re: [SDK] 8 - Version zskin06a for VISTA [FIX]
« Reply #5 on: January 15, 2011, 01:41:05 PM »
"GdipCreateFontFamilyFromName" (zFontName AS ASCIIZ, BYVAL fontCollection&, fontFamily&) AS LONG

how about  byval FontName AS string ? 

Sorry did not finish posting... does this debug ok for you


Mike
« Last Edit: January 15, 2011, 03:35:15 PM by Mike Mayerhoffer »

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2022
    • www.zapsolution.com
Re: [SDK] 8 - Version zskin06a for VISTA [FIX]
« Reply #6 on: January 15, 2011, 03:30:32 PM »
Quote
how about  byval FontName AS string ?

Indeed it is a UNICODE ASCIIZ string (wide):

With PB9 you can use GdipCreateFontFamilyFromName((UCODE$(UseFont$)), 0, Fam&).
With PB10 better to use the new native WSTRINGZ.

...
« Last Edit: January 15, 2011, 03:34:23 PM by Patrice Terrier »
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2022
    • www.zapsolution.com
Re: [SDK] 08 - Version zskin06a for VISTA [FIX]
« Reply #7 on: August 10, 2011, 05:05:26 PM »
The first post of this thread has been updated, to fix the ZIP file corruption caused by the "Server Collapse".

...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com