iMAGE WITDH AND hEIGHT

iMAGE WITDH AND hEIGHT

Postby Silvio » 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
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Silvio » Sun Apr 16, 2006 11:33 pm

Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Enrico Maria Giordano » Mon Apr 17, 2006 9:18 am

I confirm the problem. It seems a bug in TBitmap. This is a sample:

Code: Select all  Expand view
#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
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Mon Apr 17, 2006 11:32 am

Silvio, Enrico,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42077
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Enrico Maria Giordano » Mon Apr 17, 2006 1:09 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Silvio » Mon Apr 17, 2006 11:37 pm

thanks to all
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 70 guests

cron