FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Error on Fontbrush ?
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Error on Fontbrush ?
Posted: Tue Mar 06, 2018 10:45 AM
Hello,

after using FWH 18.1 I had to disable this option :

aPalBmp := oWnd:ReadPalBmpEx( "c:\fwh\bitmaps\olga1.jpg", nil, .t. )
pBrush := GDIP_IMAGEBRUSH( aPalBmp[ 1 ] )


It seems < ReadPalBmpEx > doesn't exist anymore ( couldn't find it )

Samples
fontbru.prg and msglogo.prg don't work

maybe something changed :-)

Application
===========
Path and name: I:\FWH\samples\fontbru.exe (32 bits)
Size: 3,564,032 bytes
Compiler version: xHarbour 1.2.3 Intl. (SimpLex) (Build 20170902)
FiveWin version: FWHX 18.01
C compiler version: Borland/Embarcadero C++ 7.3 (32-bit)
Windows version: 6.2, Build 9200

Time from start: 0 hours 0 mins 0 secs
Error occurred at: 03/06/18, 11:40:08
Error description: Warning BASE/1004 Message not found: TWINDOW:READPALBMPEX

Stack Calls
===========
Called from: source\rtl\tobject.prg => TWINDOW:ERROR( 0 )
Called from: source\rtl\tobject.prg => TWINDOW:MSGNOTFOUND( 0 )
Called from: source\rtl\tobject.prg => TWINDOW:READPALBMPEX( 0 )
Called from: fontbru.prg => MAIN( 12 )

regards
:-) Uwe
Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Error on Fontbrush ?
Posted: Tue Mar 06, 2018 01:52 PM
ukoenig wrote:Hello,

after using FWH 18.1 I had to disable this option :

aPalBmp := oWnd:ReadPalBmpEx( "c:\fwh\bitmaps\olga1.jpg", nil, .t. )
pBrush := GDIP_IMAGEBRUSH( aPalBmp[ 1 ] )


regards
:-) Uwe


Uwe, try with this method, is equal

Code (fw): Select all Collapse
aPalBmp  := oWnd:ReadImage( "c:\fwh\bitmaps\olga1.jpg", nil, .t. )
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: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Error on Fontbrush ?
Posted: Tue Mar 06, 2018 02:05 PM

Cristobal,

thank You very much
that works as well
Samples to be corrected in FWH-sample-directory ?

regards
Uwe :D

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Error on Fontbrush ?
Posted: Tue Mar 06, 2018 02:30 PM

Sorry, Uwe
Before Fwh 18.1 published, I revised prgs in folder samples, and not found this call of old method
If you found any prg with this method, please notice in the forum

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: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Error on Fontbrush ?
Posted: Wed Mar 07, 2018 05:23 AM
fontbru.prg and msglogo.prg don't work

We do not have these samples in the samples folder.
Where did you get them from?
Regards



G. N. Rao.

Hyderabad, India
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: Error on Fontbrush ?
Posted: Wed Mar 07, 2018 08:18 AM

Mr. Rao,

Sorry,
yes the samples are not included in FWH 18.1 anymore ( tested with a NEW install )
My commercial-app creashed after FWH 18.1 because I included this solution.
I'm updating my FWH-directory ( no new install ) that keeps also older samples and overwrite existing files.
That the reason these samples still exists inside my sample directory.
It seems that they have been created any time in 2017 :oops:

regards
Uwe :D

Since 1995 ( the first release of FW 1.9 )

i work with FW.

If you have any questions about special functions, maybe i can help.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Error on Fontbrush ?
Posted: Wed Mar 07, 2018 09:33 AM
We never included these programs in samples of any version.

Till FWH1712, the functions SayPalBmp() and ReadPalbmpEx() were used internally and were under testing.
We even placed a note above these functions in our library source programs:
Code (fw): Select all Collapse
//----------------------------------------------------------------------------//
// following functions under development
// may not be directly used in user applications
// till announced
//----------------------------------------------------------------------------//


function WndSayPalBmp( oWnd, hBmp, aRect, lTransp, nResizeMode, nAlphaLevel, lGray, cAlign, aColorMap )  // oWnd or hDC
...
..
function WndReadPalBmpEx(...)


First time 18.01 announces the new functions and methods for use in application programs with different names, after finalizing functionality and parameters
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion