Page 1 of 1

Error on Fontbrush ?

Posted: Tue Mar 06, 2018 10:45 am
by ukoenig
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

Re: Error on Fontbrush ?

Posted: Tue Mar 06, 2018 1:52 pm
by cnavarro
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: Select all | Expand



aPalBmp  := oWnd:ReadImage( "c:\fwh\bitmaps\olga1.jpg", nil, .t. )

 

Re: Error on Fontbrush ?

Posted: Tue Mar 06, 2018 2:05 pm
by ukoenig
Cristobal,

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

regards
Uwe :D

Re: Error on Fontbrush ?

Posted: Tue Mar 06, 2018 2:30 pm
by cnavarro
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

Re: Error on Fontbrush ?

Posted: Wed Mar 07, 2018 5:23 am
by nageswaragunupudi
fontbru.prg and msglogo.prg don't work

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

Re: Error on Fontbrush ?

Posted: Wed Mar 07, 2018 8:18 am
by ukoenig
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

Re: Error on Fontbrush ?

Posted: Wed Mar 07, 2018 9:33 am
by nageswaragunupudi
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: Select all | Expand

//----------------------------------------------------------------------------//
// 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