gadgettext avec couleur de fond transparent

Vous débutez et vous avez besoin d'aide ? N'hésitez pas à poser vos questions
Avatar de l’utilisateur
Jacobus
Messages : 1559
Inscription : mar. 06/avr./2004 10:35
Contact :

Message par Jacobus »

Toujours avec la même Lib
autre possibilité avec la fonction suivante :

SetWinBackgroundImage()

Syntax

SetWinBackgroundImage( hWnd, hBitmap )


hWnd = Handle to the Window ( WindowID() )
hBitmap = Handle to a Bitmap ( LoadImage() )

Description

Set the Background-Image for the window.

How to use

;Première soluce:
hWnd = OpenWindow(0, x, y, x2, y2, #WS_POPUP, "Window Name")
hBitmap = LoadImage(1,"MyPicture.bmp")
SetWinBackgroundImage(hWnd, hBitmap)

;Deuxième soluce:
hWnd = OpenWindow(0, x, y, x2, y2, #WS_POPUP, "Window Name")
SetWinBackgroundImage(hWnd, LoadImage(1,"MyPicture.bmp"))
Quand tous les glands seront tombés, les feuilles dispersées, la vigueur retombée... Dans la morne solitude, ancré au coeur de ses racines, c'est de sa force maturité qu'il renaîtra en pleine magnificence...Jacobus.
olivier
Messages : 305
Inscription : mer. 05/janv./2005 12:58
Localisation : http://www.tib-net.com/meca/index.htm

Message par olivier »

Ben non, si on veut mettre une photo en fond.
Mais merci quand même pour cette réponse qui nous en apprends un peu plus.
Vive le temps libre !
Répondre