if I have an 377x314 image I must put on a dialog this image but
if I write
@ 2,5 IMAGE oImg SIZE 377,314 OF oDlg
the image is too big
why ?
iMAGE WITDH AND hEIGHT
iMAGE WITDH AND hEIGHT
Best Regards, Saludos
Falconi Silvio
Falconi Silvio
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Please provide the used image. Place it at www.hyperupload.com and provide the download link.
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
I confirm the problem. It seems a bug in TBitmap. This is a sample:
EMG
Code: Select all
#include "Fivewin.ch"
FUNCTION MAIN()
LOCAL oDlg, oBmp
DEFINE DIALOG oDlg;
SIZE 700, 500
@ 1, 1 BITMAP oBmp FILE "c:\fwharbour\bitmaps\magic.bmp" SIZE 320, 200
ACTIVATE DIALOG oDlg;
CENTER
RETURN NIL
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Silvio, Enrico,
As a temporary workaround you may do:
As a temporary workaround you may do:
Code: Select all
ACTIVATE DIALOG oDlg;
CENTER ;
ON INIT oBmp:SetSize( 320, 200 )
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact: