Itamar M. Lins Jr. Lins ?????:
> Hi!
> The Class win_prn use Textout
>
> I use snr2 utility and change this line below
>
> oPrn := win_prn():New(cPrint)
> ...
> oPrn:hwg_Textout("XXX",.t.)
>
> Error BASE/1004 Message not found: WIN_PRN:HWG_TEXTOUT
> Called from ->__ERRRT_SBASE(0)
> Called from ../../../tobject.prg->WIN_PRN:ERROR(0)
> Called from ../../../tobject.prg->(b)HBOBJECT(0)
> Called from ../../../tobject.prg->WIN_PRN:MSGNOTFOUND(0)
> Called from ../../../tobject.prg->WIN_PRN:HWG_TEXTOUT(0)
>
> Obviously clase win_prn not use function hwg_textout.
>
There was textout() function in drawtext.c, which is renamed now to
hwg_textout() and appropriate rule is included in hwgcompat.ch.
As I understand, you use a win_prn class from harbour\contrib\hbwin,
which have :textout() method and after using the snr2 lines like
oPrn:textout() was changed to oPrn:hwg_textout(). this may occur not
only with :textout() method, but with some other win_prn methods, which
have names identical to the names of HwGUI functions.
You can search all occurrences of :hwg_ in you prgs and drop the hwg_
from there or you can use snr2 again to fix all such things, for example:
snr2 -s:hwg_ -i: -w- -b -v *.prg
This will change all ":hwg_" to ":" - i.e. drop all hwg_ prefixes from
method calls. The -w- swith is needed here to turn off "Whole words" option.
Regards, Alexander.
|