Bug in TBitmap [Fixed]

Post Reply
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Bug in TBitmap [Fixed]

Post by Enrico Maria Giordano »

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

Any ideas?

EMG
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Bug in TBitmap

Post by cnavarro »

Enrico, you obtain any error?
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Bug in TBitmap

Post by Enrico Maria Giordano »

It works again if I comment out

Code: Select all

#define REVD1801
inside bitmap.prg.

Any better solution?

EMG
User avatar
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Bug in TBitmap

Post by cnavarro »

How do you call painting your bitmaps?, or you use command for define bitmaps?
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Bug in TBitmap

Post by Enrico Maria Giordano »

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: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Bug in TBitmap

Post by Enrico Maria Giordano »

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

Code: Select all

#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
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Bug in TBitmap

Post by nageswaragunupudi »

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
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Bug in TBitmap

Post by Enrico Maria Giordano »

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: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Bug in TBitmap

Post by Enrico Maria Giordano »

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

EMG
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Bug in TBitmap

Post by nageswaragunupudi »

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
Post Reply