FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour iMAGE WITDH AND hEIGHT
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
iMAGE WITDH AND hEIGHT
Posted: Sun Apr 16, 2006 10:15 PM

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 ?

Best Regards, Saludos



Falconi Silvio
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
iMAGE WITDH AND hEIGHT
Posted: Sun Apr 16, 2006 11:13 PM

Please provide the used image. Place it at www.hyperupload.com and provide the download link.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
iMAGE WITDH AND hEIGHT
Posted: Sun Apr 16, 2006 11:33 PM
Best Regards, Saludos



Falconi Silvio
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
iMAGE WITDH AND hEIGHT
Posted: Mon Apr 17, 2006 09:18 AM
I confirm the problem. It seems a bug in TBitmap. This is a sample:

#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


EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
iMAGE WITDH AND hEIGHT
Posted: Mon Apr 17, 2006 11:32 AM
Silvio, Enrico,

As a temporary workaround you may do:
    ACTIVATE DIALOG oDlg; 
             CENTER ;
             ON INIT oBmp:SetSize( 320, 200 )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
iMAGE WITDH AND hEIGHT
Posted: Mon Apr 17, 2006 11:37 AM

If I am not wrong, its not a bug, as when using a DIALOG and specifying SIZE clause, we are managing dialogs units, not pixels.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
iMAGE WITDH AND hEIGHT
Posted: Mon Apr 17, 2006 01:09 PM

I agree. TBitmap behavior is consistent with the other controls.

EMG

Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
iMAGE WITDH AND hEIGHT
Posted: Mon Apr 17, 2006 11:37 PM

thanks to all

Best Regards, Saludos



Falconi Silvio

Continue the discussion