Error on Fontbrush ?

Error on Fontbrush ?

Postby ukoenig » 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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Error on Fontbrush ?

Postby cnavarro » Tue Mar 06, 2018 1: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: Select all  Expand view


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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Error on Fontbrush ?

Postby ukoenig » Tue Mar 06, 2018 2: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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Error on Fontbrush ?

Postby cnavarro » Tue Mar 06, 2018 2: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
User avatar
cnavarro
 
Posts: 6541
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Error on Fontbrush ?

Postby nageswaragunupudi » Wed Mar 07, 2018 5: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
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Error on Fontbrush ?

Postby ukoenig » Wed Mar 07, 2018 8: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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Error on Fontbrush ?

Postby nageswaragunupudi » Wed Mar 07, 2018 9: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: Select all  Expand view
//----------------------------------------------------------------------------//
// 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
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 42 guests