Hello,
I wanted to change my dialog-backgrounds
from BMP to another format with FREEIMAGE.dll.
That was impossible.
I did a little change on the sample testimg.
The button-controls are overlappt with the image.
This is normal, when the image is a background.
The controls don't work anymore as soon they
are inside of the image area.
I think, for backgrounds not useful ?
Regards
uwe [/img]
How to use FREEIMAGE.dll for Backgrounds in Wind./Dialogs
How to use FREEIMAGE.dll for Backgrounds in Wind./Dialogs
Last edited by ukoenig on Sun Mar 16, 2008 12:02 am, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
i work with FW.
If you have any questions about special functions, maybe i can help.
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Uwe,
Here you have a working sample:
Here you have a working sample:
Code: Select all
#include "FiveWin.ch"
function Main()
local oDlg, oImg
DEFINE IMAGE oImg FILENAME "..\bitmaps\FiveTech.gif"
DEFINE DIALOG oDlg TITLE "Image background"
@ 0.5, 1 BUTTON "OK" ACTION MsgInfo( "click" )
ACTIVATE DIALOG oDlg CENTERED ;
ON PAINT PalBmpDraw( hDC, 0, 0, oImg:hBitmap )
oImg:End()
return nil
Backgrounds with freeimage.dll
Antonio,
thank you very much.
It works great.
Now the user can choose different Graphic-Types.
Greetings from Germany
Uwe
thank you very much.
It works great.
Now the user can choose different Graphic-Types.
Greetings from Germany
Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
i work with FW.
If you have any questions about special functions, maybe i can help.