Page 1 of 1

Bug in TBitmap [Fixed]

PostPosted: Fri Feb 16, 2018 3:03 pm
by Enrico Maria Giordano
Bitmaps on dialogs are not more visible using FWH 18.01, at least in my applications.

Any ideas?

EMG

Re: Bug in TBitmap

PostPosted: Fri Feb 16, 2018 3:20 pm
by cnavarro
Enrico, you obtain any error?

Re: Bug in TBitmap

PostPosted: Fri Feb 16, 2018 3:21 pm
by Enrico Maria Giordano
It works again if I comment out

Code: Select all  Expand view
#define REVD1801


inside bitmap.prg.

Any better solution?

EMG

Re: Bug in TBitmap

PostPosted: Fri Feb 16, 2018 3:22 pm
by Enrico Maria Giordano
cnavarro wrote:Enrico, you obtain any error?


No, only a blank bitmap.

EMG

Re: Bug in TBitmap

PostPosted: Fri Feb 16, 2018 3:24 pm
by cnavarro
How do you call painting your bitmaps?, or you use command for define bitmaps?

Re: Bug in TBitmap

PostPosted: Fri Feb 16, 2018 3:29 pm
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

Re: Bug in TBitmap

PostPosted: Fri Feb 16, 2018 3:31 pm
by Enrico Maria Giordano
Enrico Maria Giordano wrote:It works again if I comment out

Code: Select all  Expand view
#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

Re: Bug in TBitmap

PostPosted: Fri Feb 16, 2018 3:48 pm
by Enrico Maria Giordano
It works perfectly if bitmap.prg from the previous FWH release is used.

EMG

Re: Bug in TBitmap

PostPosted: Fri Feb 16, 2018 5:06 pm
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.

Re: Bug in TBitmap

PostPosted: Fri Feb 16, 2018 5:41 pm
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

Re: Bug in TBitmap

PostPosted: Sat Feb 17, 2018 10:31 am
by Enrico Maria Giordano
Ok, never mind, my fault, sorry. Case closed.

EMG

Re: Bug in TBitmap

PostPosted: Sat Feb 17, 2018 10:32 am
by Enrico Maria Giordano
The problem (for the posterity) was that I redefined GetObjectType() function that now is used for FW_ReadImage().

EMG

Re: Bug in TBitmap

PostPosted: Sat Feb 17, 2018 10:39 am
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.

Re: Bug in TBitmap [Fixed]

PostPosted: Sat Feb 17, 2018 11:02 am
by Enrico Maria Giordano
No problem, my friend.

EMG