Bug in TBitmap [Fixed]

Bug in TBitmap [Fixed]

Postby Enrico Maria Giordano » Fri Feb 16, 2018 3:03 pm

Bitmaps on dialogs are not more visible using FWH 18.01, at least in my applications.

Any ideas?

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

Re: Bug in TBitmap

Postby cnavarro » Fri Feb 16, 2018 3:20 pm

Enrico, you obtain any error?
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Bug in TBitmap

Postby Enrico Maria Giordano » Fri Feb 16, 2018 3:21 pm

It works again if I comment out

Code: Select all  Expand view  RUN
#define REVD1801


inside bitmap.prg.

Any better solution?

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

Re: Bug in TBitmap

Postby Enrico Maria Giordano » Fri Feb 16, 2018 3:22 pm

cnavarro wrote:Enrico, you obtain any error?


No, only a blank bitmap.

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

Re: Bug in TBitmap

Postby cnavarro » Fri Feb 16, 2018 3:24 pm

How do you call painting your bitmaps?, or you use command for define bitmaps?
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Bug in TBitmap

Postby Enrico Maria Giordano » Fri Feb 16, 2018 3:29 pm

cnavarro wrote:How do you call painting your bitmaps?, or you use command for define bitmaps?


I'm using REDEFINE BITMAP command.

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

Re: Bug in TBitmap

Postby Enrico Maria Giordano » Fri Feb 16, 2018 3:31 pm

Enrico Maria Giordano wrote:It works again if I comment out

Code: Select all  Expand view  RUN
#define REVD1801


inside bitmap.prg.

Any better solution?

EMG


And even with the line above commented out, the bitmap is blank if the REDEFINE BITMAP ... TRANSPARENT clause is used.

All of this used to worked perfectly in the previous FWH releases (since decades).

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

Re: Bug in TBitmap

Postby Enrico Maria Giordano » Fri Feb 16, 2018 3:48 pm

It works perfectly if bitmap.prg from the previous FWH release is used.

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

Re: Bug in TBitmap

Postby nageswaragunupudi » Fri Feb 16, 2018 5:06 pm

Mr Enrico

I tried to reproduce your problem but could not. I would be highly thankful if you can provide a small sample to reproduce the problem.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10651
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Bug in TBitmap

Postby Enrico Maria Giordano » Fri Feb 16, 2018 5:41 pm

nageswaragunupudi wrote:Mr Enrico

I tried to reproduce your problem but could not. I would be highly thankful if you can provide a small sample to reproduce the problem.


No, sorry. I can't reproduce the problem with a sample, only in my applications.

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

Re: Bug in TBitmap

Postby Enrico Maria Giordano » Sat Feb 17, 2018 10:31 am

Ok, never mind, my fault, sorry. Case closed.

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

Re: Bug in TBitmap

Postby Enrico Maria Giordano » Sat Feb 17, 2018 10:32 am

The problem (for the posterity) was that I redefined GetObjectType() function that now is used for FW_ReadImage().

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

Re: Bug in TBitmap

Postby nageswaragunupudi » Sat Feb 17, 2018 10:39 am

Enrico Maria Giordano wrote:The problem (for the posterity) was that I redefined GetObjectType() function that now is used for FW_ReadImage().

EMG


At first, I thank you for the clarification. I feel greatly relieved that I did not introduce any bug.

At the same time, I am also sorry. We started the convention of prefixing FW_ to all FWH functions not to clash with programmers' own functions inadvertently. But this was a function which we created earlier. Sorry for the inconvenience.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10651
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Bug in TBitmap [Fixed]

Postby Enrico Maria Giordano » Sat Feb 17, 2018 11:02 am

No problem, my friend.

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


Return to Bugs report & fixes / Informe de errores y arreglos

Who is online

Users browsing this forum: No registered users and 11 guests