FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Bugs report & fixes / Informe de errores y arreglos Bug in TBitmap [Fixed]
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Bug in TBitmap [Fixed]
Posted: Fri Feb 16, 2018 03:03 PM

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

Any ideas?

EMG

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Bug in TBitmap
Posted: Fri Feb 16, 2018 03: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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TBitmap
Posted: Fri Feb 16, 2018 03:21 PM
It works again if I comment out

Code (fw): Select all Collapse
#define REVD1801


inside bitmap.prg.

Any better solution?

EMG
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TBitmap
Posted: Fri Feb 16, 2018 03:22 PM
cnavarro wrote:Enrico, you obtain any error?


No, only a blank bitmap.

EMG
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Bug in TBitmap
Posted: Fri Feb 16, 2018 03: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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TBitmap
Posted: Fri Feb 16, 2018 03: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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TBitmap
Posted: Fri Feb 16, 2018 03:31 PM
Enrico Maria Giordano wrote:It works again if I comment out

Code (fw): Select all Collapse
#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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TBitmap
Posted: Fri Feb 16, 2018 03:48 PM

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

EMG

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Bug in TBitmap
Posted: Fri Feb 16, 2018 05: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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TBitmap
Posted: Fri Feb 16, 2018 05: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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TBitmap
Posted: Sat Feb 17, 2018 10:31 AM

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

EMG

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TBitmap
Posted: 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

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Bug in TBitmap
Posted: 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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bug in TBitmap [Fixed]
Posted: Sat Feb 17, 2018 11:02 AM

No problem, my friend.

EMG

Continue the discussion