• Welcome to Powerbasic Museum 2020-B.
 

News:

Forum in repository mode. No new members allowed.

Main Menu

WinLIFT

Started by Patrice Terrier, August 22, 2009, 10:32:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Patrice Terrier

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

Patrice Terrier

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

Patrice Terrier

#17
I just checked the latest beta version on XP, and found that there is a big difference in the FONT appearance with VISTA/W7, because the new SkinEngine is using "clear type font", that is not supported by XP.

Thus on XP (only), it is better to change the default font, at the end of the SKS file, from Trebuchet MS to MS Sans Serif.
Quote"USEFONT,             MS Sans Serif"   ' Font to use on VISTA/W7: Trebuchet MS

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

Patrice Terrier

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

Patrice Terrier

The first post of this thread has been updated to WinLIFT version 4.41 beta.

SysTreeView has been added to complete the first set of controls supported by WinLIFT.
Next step: i shall add a new WinLIFT section on my website  :)

I have added in the "TextWSA.zip" a new Bff project to let you check with TreeView.

Screen shot:



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

Eros Olmi

#20
My first attempt to use WinLift with a script bundled with thinBasic.

I've seen that skInitEngine accept full path to .sks file. Is it ok?

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

Patrice Terrier

Eros,

".sks" file must be always located into the same folder than the EXE, and the @path@ parameter is always relative to the EXE.
If "background" can't be found then it means that the user are not allowed to change them, and this has been done by design.

Here is an example of what i could do using a new "BACKGROUNDPATH" parameter:
Quote"BACKGROUNDPATH,      C:\Users\Public\Pictures\Sample Pictures"
and if this parameter is omitted, then i will still use the defaut: "EXE.Path$ + "Background\""

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

Patrice Terrier

#22
The first post of this thread has been updated to version 4.47.


  • You can now use a new "BACKGROUNDPATH" parameter in ".sks" file (see below)

'AUTHOR section -------------------------------------------------------------
"AUTHOR,|Skin design: <Patrice Terrier> E-mail: pterrier@zapsolution.com"

'"BACKGROUNDPATH,      C:\Users\Public\Pictures\Sample Pictures"

'BITMAP section -------------------------------------------------------------
"CTLBACK,             @PATH@PODCAST\CTLBACK.jpg"
"MENUBAR,             @PATH@PODCAST\MENUBAR.ski"
"MENUBACK,            @PATH@PODCAST\MENUBAK.ski"
"BUTTON,              @PATH@PODCAST\BUTTON.ski"
"CAPTIONL,            @PATH@PODCAST\CAPTIONL.ski"
"CAPTIONM,            @PATH@PODCAST\CAPTIONM.ski"
"CAPTIONR,            @PATH@PODCAST\CAPTIONR.ski"
"SIDEL,               @PATH@PODCAST\SIDEL.ski"
"SIDER,               @PATH@PODCAST\SIDER.ski"
"RADIOBUT,            @PATH@PODCAST\RADIOBUT.ski"
...


Now you can use any of these graphic file extensions for background:
.bmp .png .jpg .tif .gif

While there is no limit for the upper size of a background, 800 x 600 is still the minimum to look good when the window is maximized.

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

Patrice Terrier

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

Patrice Terrier

#24
Done! (see the attached screen shot)

Peter,

Very nice project ;)

Indeed the WM_NOTIFY message (custom draw) was not handled when the LISTVIEW was a child of a TAB control.
 
...
Patrice Terrier
GDImage (advanced graphic addon)
http://www.zapsolution.com

Patrice Terrier

#25
This is a FF3 TAB control project using the "Silver" skin, in blur-text-behind mode (to enhance the contrast when using color on color)

Screen shot:



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

Patrice Terrier

#26
For your information:
In WinLIFT a STATIC control use a TRANSPARENT background, while an EDIT control use OPAQUE.  
However when using the %ES_AUTOHSCROLL + %ES_READONLY style with an EDIT control, Windows doesn't send a %WM_CTLCOLOREDIT, but a %WM_CTLCOLORSTATIC message (causing the havoc reported by Peter).

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

Patrice Terrier

#27
The first post of this thread has been updated to version 4.59.

New features:


  • Support for the UpDown control.
  • skButtonImage API, 5-state Image Button (using transparent PNG).

When using 5-state image button, you have to design the button yourself and save it as a transparent png file.

Code Example:
    IF skInitEngine("Glass.sks", "") THEN
       CALL skSkinWindow(hDlg, "Dock|Undock|Minimize|Maximize|Restore|Close")

       CALL skButtonImage(hDlg, EXE.Path$ + "BTN_Play.png", 6, 248, %IDC_IMAGEX1, 0)
    END IF


Note: The skButtonImage API uses pixel coordinates exclusively.

See the attached screen shot

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

Patrice Terrier

#28
Attached to this post you will find a FF3 demo project using both GDImage and WinLIFT.

New: WinLIFT 2.60+ is now compatible with GDImage.

Screen shot:



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

Patrice Terrier

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