Author Topic: WinLIFT  (Read 44634 times)

0 Members and 1 Guest are viewing this topic.

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2402
  • Gender: Male
    • www.zapsolution.com
WinLIFT (global hook)
« Reply #30 on: February 21, 2010, 10:57:34 AM »
Because WinLIFT install a global hook on the %WM_CREATE message.

You must not link the WinLIFT.dll to your code if you do not want to use it!

To produce both skinned and un-skinned version of the same application, use the compiler directive #IF and #ENDIF like this.

Code: [Select]
%SKIN_THIS_APPLICATION = 1

...

#IF %SKIN_THIS_APPLICATION
   IF skInitEngine("ipod.sks", "") THEN
      CALL skSkinWindow(CB.HNDL, "Dock|Undock|Minimize|Maximize|Restore|Close")
   END IF
#END IF

Thank you!

...
« Last Edit: February 21, 2010, 11:00:16 AM by Patrice Terrier »
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2402
  • Gender: Male
    • www.zapsolution.com
WinLIFT (ONYX-skin)
« Reply #31 on: February 22, 2010, 11:42:04 AM »
New WinLIFT skin "Onyx"



I have also attached a Red variation.

...
« Last Edit: February 22, 2010, 08:08:30 PM by Patrice Terrier »
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Offline Jürgen Huhn

  • Full Member
  • ***
  • Posts: 105
  • Gender: Male
Re: WinLIFT
« Reply #32 on: February 24, 2010, 05:10:22 PM »
really nice Tool!

Thank you!

...
.¸.•’´¯)¸.•’´¯)¸.•’´¯)¸.•’´¯)
¤ª“˜¨¨¯¯¨¨˜“ª¤....¤ ª“˜¨

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2402
  • Gender: Male
    • www.zapsolution.com
WinLIFT (version 4.61)
« Reply #33 on: February 24, 2010, 05:10:52 PM »
The first post of this thread has been updated to version 4.61.

New:
  • Built-in tooltip support.
  • ComboBox enhancement (support for empty ListBox).

Example showing how to use the built-in tooltip support:
Code: [Select]
   IF skInitEngine("ipod.sks", "") THEN
        CALL skSkinWindow(hdlg, "Dock|Undock|Minimize|Maximize|Restore|Close")

        CALL skCreateToolTip (GetDlgItem(hdlg, %IDC_COMBOBOX1), "ComboBox")
        CALL skCreateToolTip (GetDlgItem(hdlg, %IDC_LISTBOX1), "ListBox")
        CALL skCreateToolTip (GetDlgItem(hDlg, %IDC_BUTTON1), "Test 123")
        CALL skCreateToolTip (GetDlgItem(hDlg, %IDC_CUSTOMCONTROL_1), "XPBUTTON")
        CALL skCreateToolTip (GetDlgItem(hdlg, %IDC_MSCTLS_TRACKBAR32_1), "Trackbar 123")

    END IF

Note: In order to use the skin theme, skCreateToolTip must be used AFTER the call to skSkinWindow


The new tooltip API are:
  DECLARE FUNCTION skCreateToolTip LIB "WinLIFT.dll" ALIAS "skCreateToolTip" (BYVAL hObj AS LONG, zText AS ASCIIZ) AS LONG
  DECLARE SUB skSetToolTipText LIB "WinLIFT.dll" ALIAS "skSetToolTipText" (BYVAL hObj AS LONG, zText AS ASCIIZ)
  DECLARE FUNCTION skGetToolTipText LIB "WinLIFT.dll" ALIAS "skGetToolTipText" (BYVAL hObj AS LONG) AS STRING

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

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2402
  • Gender: Male
    • www.zapsolution.com
WinLIFT (never done before)
« Reply #34 on: February 27, 2010, 10:57:14 AM »
I don't know if i will be able to complete this or not, however i think it has never been done before (in a SkinEngine)  ;D


Full composited crystal mode with custom glass effect, variable opacity, fancy window shape, drop shadow and full anti-alias:




...
« Last Edit: February 27, 2010, 07:06:42 PM by Patrice Terrier »
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Offline Petr Schreiber

  • Sr. Member
  • ****
  • Posts: 411
Re: WinLIFT
« Reply #35 on: February 28, 2010, 09:18:30 AM »
I will be happy to test it on XPs once it is out ;)
AMD Sempron 3400+ | 1GB RAM @ 533MHz | GeForce 6200 / GeForce 9500GT | 32bit Windows XP SP3

psch.thinbasic.com

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2402
  • Gender: Male
    • www.zapsolution.com
Re: WinLIFT
« Reply #36 on: February 28, 2010, 11:39:02 AM »
I am in the process to make WinLIFT and GDImage 100% compatible together, and also ensure further DWM compatibility that is the prerequisite to produce the fancy UI i have in mind.

Thus XP niet!  ;D

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

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2402
  • Gender: Male
    • www.zapsolution.com
Re: WinLIFT
« Reply #37 on: February 28, 2010, 04:05:03 PM »
And you can add, C, C++, and all the languages that do not superclass the native SDK Windows classes.

Portability, is the result of using low level SDK programming style  ;D

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

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2402
  • Gender: Male
    • www.zapsolution.com
Re: WinLIFT
« Reply #38 on: March 03, 2010, 10:42:44 AM »
In theory, the dynamic detection of new control creation should be possible in WinLIFT because i am pre-processing the WM_CREATE message. I shall look at it, once i am done with the DWM support i am working on.

About the "Sony" skin, this one will be part of the first Skin-pack that has not been yet fully completed.

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

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2402
  • Gender: Male
    • www.zapsolution.com
WinLIFT (VISTA-SEVEN DirectDraw demo)
« Reply #39 on: March 03, 2010, 08:28:15 PM »
Note: This demo requires either VISTA or SEVEN (it won't run on XP)

I made it to show you how close i was to succeed in using the SkinEngine hover a DirectDraw surface.
I have almost everything working, except for the nasty EDIT control that defeat all i have tried.

To see my problem select "Tab page 2" and move the window alternatively hover a light or dark background and look at the EDIT control inside of "Frame 2" (same problem occure with the EDIT section of the ComboBox on "Tab page 3").

The problem with the EDIT control is, that it can't be owner-drawn nor custom-drawn, and Windows re-paint it in so many different places that message subclassing is not reliable with it.

...
 

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

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2402
  • Gender: Male
    • www.zapsolution.com
Re: WinLIFT
« Reply #40 on: March 04, 2010, 08:45:00 AM »
DWM means Desktop Window Manager.

It is the desktop graphical user interface system being used in Windows VISTA and Windows SEVEN, it requires graphic cards supporting DirectX 9.0+ and Shader Model 2.0. It works in composited mode (drawing from the bottom to the top of the z-order), and the most obvious part of it, is the transparent border drawn around the windows when you are running in AERO mode.
Usualy the AERO mode works with a BLUR effect, however graphic toolkits like GDImage and WinLIFT are also able to apply a full CRYSTAL mode to a specific window, without changing anything in the registry!

DWM uses DirectX to perform the function of compositing and rendering in the GPU, freeing the CPU of the task of managing the rendering from the off-screen buffers to the display.

Both GDImage and WinLIFT are using DWM in composited mode and they write directly onto the DirectDraw surface when available.
See the CRYSTAL demo in the GDImage section here

Added:
I forget to say that graphic libraries based on GDI and container like the DDT "GRAPHIC WINDOW" are unable to work correctly with a DirectDraw surface.

...
« Last Edit: March 04, 2010, 02:02:01 PM by Patrice Terrier »
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2402
  • Gender: Male
    • www.zapsolution.com
Re: WinLIFT
« Reply #41 on: March 05, 2010, 10:53:56 PM »
On the attached screen shot, all the controls are drawn onto the DWM DirectDraw surface.

It looks like a Layered window, but it is not, because you can use variable opacity and even OPAQUE section.
See also the shadow arround the window and the anti-alias arround the wheels icon.

This makes possible to have an animation playing gently in the background, like in the GDImage "DreamWork" or "WinScape" projects, and you can use transparent png for wallpaper.

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

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2402
  • Gender: Male
    • www.zapsolution.com
WinLIFT (version 4.70 with "composited mode" demo)
« Reply #42 on: March 07, 2010, 05:19:57 PM »
This is WinLIFT version 4.70, with built-in support for the AERO composited mode on VISTA and SEVEN.

Note: The composited mode is drawing directly onto the "Desktop Window Manager" surface.

For those still running XP, here is a screenshot:



Of course you could have also opaque or variable opacity background if you prefer.

...
« Last Edit: March 10, 2010, 01:11:02 PM by Patrice Terrier »
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2402
  • Gender: Male
    • www.zapsolution.com
Re: WinLIFT
« Reply #43 on: March 07, 2010, 07:48:38 PM »
Quote
how can you adjust the opacity

Adjusting the opacity, was not the purpose of the demo, and it will be probably the easiest part of the work i have done.

See the GDImage Crystal demo or run BassBox in full composited Crystal mode and adjust the "client zone opacity", that could be one way, the other would be to change the PNG background and select a new one, just like you can do it already when you select a new background.

...
« Last Edit: March 07, 2010, 07:53:00 PM by Patrice Terrier »
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Offline Patrice Terrier

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2402
  • Gender: Male
    • www.zapsolution.com
WinLIFT (version 4.71)
« Reply #44 on: March 10, 2010, 01:20:18 PM »
Version 4.71 is attached to this post

New features:
  • CheckBox support in ListView.
  • Color and opacity adjustment in Windows VISTA/SEVEN in AERO mode.




The "AEROCOLOR" parameter of the sks file, allows you to setup both the color and the opacity of the AERO glass surface.

...
« Last Edit: March 10, 2010, 01:21:50 PM by Patrice Terrier »
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com