TSButton 7.0

TSButton 7.0

Postby mmercado » Tue Sep 15, 2009 9:33 am

Hello Friends:

As I promissed I'm releasing the Version 7.0 of my TSButton class.

Among several improvements TSButton includes the use of Alpha Channel Bitmaps.

Also with this version, youll find a new library Sbuttonp.lib to use TSButton with FWPPC. This is a screen shot of a sample program included in \TSButton\Samples:
Image

You can download the programs from here:
http://www.box.net/shared/9vyw4zeo0k

I hope you find in TSButton V.7.0 a useful tool.

Best regards.

Manuel Mercado Gomez.

PS To build SButtonP.lib use FWPPC.BAT in \TSButton\Lib. To build Tickets.exe sample for FWPPC use buildce.bat in \TSButton\Samples. Other libs should be built as usual.
manuelmercado at prodigy dot net dot mx
User avatar
mmercado
 
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México

Re: TSButton 7.0

Postby richard-service » Tue Sep 15, 2009 2:21 pm

Hi

Look great.
But I got this error

tstsay.c
l:\fwppc\include\clipapi.h(621) : fatal error C1083: Cannot open include file: 'fwce.h': No such file or directory
bpaint.c
l:\fwppc\include\clipapi.h(621) : fatal error C1083: Cannot open include file: 'fwce.h': No such file or directory


I found it

#ifdef UNICODE
#include <fwce.h>
#endif

change

#ifdef UNICODE
#include <fwce.ch>
#endif

and got this error

tstsay.c
l:\fwppc\include\colors.ch(6) : fatal error C1021: invalid preprocessor command 'translate'
bpaint.c
l:\fwppc\include\colors.ch(6) : fatal error C1021: invalid preprocessor command 'translate'


I need your help.

Regards,

Richard
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v5.7 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 764
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: TSButton 7.0

Postby Silvio » Wed Sep 16, 2009 11:13 am

Manuel,
compiling for fwh there is errors :

xHarbour Compiler build 1.1.0 (SimpLex) (Rev. 6195)
Copyright 1999-2008, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'FUNCTION\RGB2HSL.prg'...
FUNCTION\RGB2HSL.prg(25) Error E0030 Syntax error: "syntax error at ')'"
FUNCTION\RGB2HSL.prg(33) Error E0010 ENDIF does not match IF
FUNCTION\RGB2HSL.prg(75) Error E0017 Unclosed control structure at line 30
FUNCTION\RGB2HSL.prg(79) Error E0030 Syntax error: "syntax error at 'H'"
FUNCTION\RGB2HSL.prg(81) Error E0030 Syntax error: "syntax error at 'R'"
FUNCTION\RGB2HSL.prg(105) Error E0017 Unclosed control structure at line 30
FUNCTION\RGB2HSL.prg(128) Error E0017 Unclosed control structure at line 30
7 errors


and for fwppc there is this error :

TSTSAY.c
c:\work\fwppc\include\clipapi.h(18) : fatal error C1083: Cannot open include file: 'fwHarb.h': No such file or directory


No code generated
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: TSButton 7.0

Postby mmercado » Wed Sep 16, 2009 1:45 pm

Silvio wrote:compiling for fwh there is errors :
xHarbour Compiler build 1.1.0 (SimpLex) (Rev. 6195)
Copyright 1999-2008, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'FUNCTION\RGB2HSL.prg'...
FUNCTION\RGB2HSL.prg(25) Error E0030 Syntax error: "syntax error at ')'"
FUNCTION\RGB2HSL.prg(33) Error E0010 ENDIF does not match IF
FUNCTION\RGB2HSL.prg(75) Error E0017 Unclosed control structure at line 30
FUNCTION\RGB2HSL.prg(79) Error E0030 Syntax error: "syntax error at 'H'"
FUNCTION\RGB2HSL.prg(81) Error E0030 Syntax error: "syntax error at 'R'"
FUNCTION\RGB2HSL.prg(105) Error E0017 Unclosed control structure at line 30
FUNCTION\RGB2HSL.prg(128) Error E0017 Unclosed control structure at line 30
7 errors
RGB2HSL.prg was a test prg file and is not part of TSButton at all. What are you compiling it for?
Silvio wrote:and for fwppc there is this error :
TSTSAY.c
c:\work\fwppc\include\clipapi.h(18) : fatal error C1083: Cannot open include file: 'fwHarb.h': No such file or directory
Got this error doing what?

Regards.

Manuel Mercado Gomez.
manuelmercado at prodigy dot net dot mx
User avatar
mmercado
 
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México

Re: TSButton 7.0

Postby richard-service » Wed Sep 16, 2009 2:19 pm

Hi

I think Silvio FWPPC problem same as me.
We run your FWPPC.bat and change your SET include directory.
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v5.7 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 764
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: TSButton 7.0

Postby Silvio » Wed Sep 16, 2009 5:20 pm

Now error on sbpaint.c when I compile for fwppc
NOT found winten.h
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: TSButton 7.0

Postby mmercado » Wed Sep 16, 2009 7:58 pm

Hi Richard, Silvio:
richard-service wrote:I think Silvio FWPPC problem same as me.
We run your FWPPC.bat and change your SET include directory.


I think you have to check all paths into FWPPC.BAT to fit your own environment.

Regards.

Manuel Mercado Gomez.
manuelmercado at prodigy dot net dot mx
User avatar
mmercado
 
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México

Re: TSButton 7.0

Postby Silvio » Wed Sep 16, 2009 8:34 pm

Sorry Manuel I use xmate to compile
there is the error only for tsbutton
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: TSButton 7.0

Postby dutch » Thu Sep 17, 2009 2:01 am

Dear Manuel,

I've compiled both library completely without problem. The FWH samples is working perfectly but for FWPPC samples has some error as following.
Code: Select all  Expand view
Generating C source output to 'boletera.c'... Done.
Microsoft (R) C/C++ Optimizing Compiler Version 12.20.9615 for ARM
Copyright (C) Microsoft Corp 1984-2002. All rights reserved.
boletera.c
sbuttonp.lib(TSRadio.obj) : error LNK2001: unresolved external symbol HB_FUN_DRAWBOXES
sbuttonp.lib(TSRadio.obj) : error LNK2001: unresolved external symbol HB_FUN_GETFONTHEIGHT
sbuttonp.lib(tsbutton.obj) : error LNK2001: unresolved external symbol HB_FUN_GETFONTHEIGHT
sbuttonp.lib(TSRadio.obj) : error LNK2001: unresolved external symbol HB_FUN_DRAWRADIO
sbuttonp.lib(TSRadio.obj) : error LNK2001: unresolved external symbol HB_FUN_DARKCOLOR
sbuttonp.lib(tsbutton.obj) : error LNK2001: unresolved external symbol HB_FUN_SBTNPAINT
sbuttonp.lib(tsbutton.obj) : error LNK2001: unresolved external symbol HB_FUN_LIGHTCOLOR
sbuttonp.lib(tsbutton.obj) : error LNK2001: unresolved external symbol HB_FUN_ISALPHABITMAP
boletera.exe : fatal error LNK1120: 7 unresolved externals
* Linking errors *


Thanks&Regards,
Dutch
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1535
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: TSButton 7.0

Postby richard-service » Thu Sep 17, 2009 3:08 am

mmercado wrote:Hi Richard, Silvio:
richard-service wrote:I think Silvio FWPPC problem same as me.
We run your FWPPC.bat and change your SET include directory.


I think you have to check all paths into FWPPC.BAT to fit your own environment.

Regards.

Manuel Mercado Gomez.

Hi Manuel,

Yes, We doing. But not work. I don't know why not.

FWPPC.bat
SET INCLUDE=L:\FWPPC\INCLUDE;L:\Harbour_ce\INCLUDE;L:\VCE\INCLUDE\ARM;L:\DRLIB32X\INCLUDE

L:\Harbour_ce\bin\harbour L:\3RD\tsbutton\source\fwppc\classes\tsbutton.prg /n /p > harb.log
L:\Harbour_ce\bin\harbour L:\3RD\tsbutton\source\fwppc\classes\tslines.prg /n /p >> harb.log
L:\Harbour_ce\bin\harbour L:\3RD\tsbutton\source\fwppc\classes\tsradio.prg /n /p >> harb.log
L:\Harbour_ce\bin\harbour L:\3RD\tsbutton\source\fwppc\classes\tstsay.prg /n /p >> harb.log

L:\vce\bin\clarm -W3 -c /DARM /DUNICODE /IL:\fwppc\include;L:\Harbour_ce\include;L:\vce\include\arm tsbutton.c > comp.log
L:\vce\bin\clarm -W3 -c /DARM /DUNICODE /IL:\fwppc\include;L:\Harbour_ce\include;L:\vce\include\arm tslines.c >> comp.log
L:\vce\bin\clarm -W3 -c /DARM /DUNICODE /IL:\fwppc\include;L:\Harbour_ce\include;L:\vce\include\arm tsradio.c >> comp.log
L:\vce\bin\clarm -W3 -c /DARM /DUNICODE /IL:\fwppc\include;L:\Harbour_ce\include;L:\vce\include\arm tstsay.c >> comp.log
L:\vce\bin\clarm -W3 -c /DARM /DUNICODE /D__FLAT__ /D__HARBOUR__ /IL:\fwppc\include;L:\Harbour_ce\include;L:\vce\include\arm L:\3RD\tsbutton\source\fwppc\function\bpaint.c >> comp.log

Del SButtonP.lib

L:\vce\bin\lib /out:SButtonP.lib /MACHINE:ARM tsbutton.obj > Lib.log
L:\vce\bin\lib SButtonP.lib /MACHINE:ARM TSLines.obj >> Lib.log
L:\vce\bin\lib SButtonP.lib /MACHINE:ARM TSRadio.obj >> Lib.log
L:\vce\bin\lib SButtonP.lib /MACHINE:ARM TStSay.obj >> Lib.log
L:\vce\bin\lib SButtonP.lib /MACHINE:ARM bPaint.obj >> Lib.log

My setup L: disk
@echo off
cls
echo Setting Enviroment for DrLib32x
title FiveWin for Pocket PC with Microsoft Windows Pocket PC ###- L: -###
set NextWinDir=L:
set path=%NextWinDir%\FWPPC\bin;%NextWinDir%\harbour_ce\bin;%NextWinDir%\vce\bin;%NextWinDir%\bc5\bin;%NextWinDir%\MEW8;%path%
set include=%NextWinDir%\FWPPC\include;%NextWinDir%\harbour_ce\include;%NextWinDir%\vce\include\arm;%NextWinDir%\drlib32x\include;%include%
set lib=%NextWinDir%\FWPPC\lib;%NextWinDir%\harbour_ce\lib;%NextWinDir%\vce\lib;%lib%

Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v5.7 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 764
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: TSButton 7.0

Postby Silvio » Thu Sep 17, 2009 6:45 am

Manuel I compiled with your fwppc.bat

but sbpaint.c not is compiled

Code: Select all  Expand view
SET INCLUDE=C:\work\FWPPC\INCLUDE;C:\work\Harbour_ce\INCLUDE;C:\work\VCE\INCLUDE\ARM;C:\work\FWH\INCLUDE
c:\work\Harbour_ce\bin\harbour C:\work\LIB_32\TSBUTTON_70\TSBUTTON\SOURCE\FWPPC\CLASSES\tsbutton.prg /n /p > harb.log
c:\work\Harbour_ce\bin\harbour C:\work\LIB_32\TSBUTTON_70\TSBUTTON\SOURCE\FWPPC\CLASSES\tslines.prg /n /p >> harb.log
c:\work\Harbour_ce\bin\harbour C:\work\LIB_32\TSBUTTON_70\TSBUTTON\SOURCE\FWPPC\CLASSES\tsradio.prg /n /p >> harb.log
c:\work\Harbour_ce\bin\harbour C:\work\LIB_32\TSBUTTON_70\TSBUTTON\SOURCE\FWPPC\CLASSES\tstsay.prg /n /p >> harb.log
c:\work\vce\bin\clarm -W3 -c /DARM /DUNICODE /Ic:\work\vce\include\arm;c:\work\fwppc\include;c:\work\Harbour_ce\include tsbutton.c > comp.log
c:\work\vce\bin\clarm -W3 -c /DARM /DUNICODE /Ic:\work\vce\include\arm;c:\work\fwppc\include;c:\work\Harbour_ce\include tslines.c >> comp.log
c:\work\vce\bin\clarm -W3 -c /DARM /DUNICODE /Ic:\work\vce\include\arm;c:\work\fwppc\include;c:\work\Harbour_ce\include tsradio.c >> comp.log
c:\work\vce\bin\clarm -W3 -c /DARM /DUNICODE /Ic:\work\vce\include\arm;c:\work\fwppc\include;c:\work\Harbour_ce\include tstsay.c >> comp.log
c:\work\vce\bin\clarm -W3 -c /DARM /DUNICODE /D__FLAT__ /D__HARBOUR__ /Ic:\work\vce\include\arm;c:\work\fwppc\include;c:\work\Harbour_ce\include C:\work\LIB_32\TSBUTTON_70\TSBUTTON\SOURCE\FWPPC\function\bpaint.c >> comp.log
Del SButtonP.lib
c:\work\vce\bin\lib /out:SButtonP.lib /MACHINE:ARM tsbutton.obj > Lib.log
c:\work\vce\bin\lib SButtonP.lib /MACHINE:ARM TSLines.obj       >> Lib.log
c:\work\vce\bin\lib SButtonP.lib /MACHINE:ARM TSRadio.obj       >> Lib.log
c:\work\vce\bin\lib SButtonP.lib /MACHINE:ARM TStSay.obj        >> Lib.log
c:\work\vce\bin\lib SButtonP.lib /MACHINE:ARM bPaint.obj        >> Lib.log
 






comp.txt

tsbutton.c
tslines.c
tsradio.c
tstsay.c
c:\work\lib_32\tsbutton_70\tsbutton\lib\tstsay.c(3066) : warning C4129: 'w' : unrecognized character escape sequence
c:\work\lib_32\tsbutton_70\tsbutton\lib\tstsay.c(3066) : warning C4129: 'L' : unrecognized character escape sequence
c:\work\lib_32\tsbutton_70\tsbutton\lib\tstsay.c(3066) : warning C4129: 'T' : unrecognized character escape sequence
c:\work\lib_32\tsbutton_70\tsbutton\lib\tstsay.c(3066) : warning C4129: 'T' : unrecognized character escape sequence
c:\work\lib_32\tsbutton_70\tsbutton\lib\tstsay.c(3066) : warning C4129: 'S' : unrecognized character escape sequence
c:\work\lib_32\tsbutton_70\tsbutton\lib\tstsay.c(3066) : warning C4129: 'F' : unrecognized character escape sequence
c:\work\lib_32\tsbutton_70\tsbutton\lib\tstsay.c(3066) : warning C4129: 'C' : unrecognized character escape sequence
c:\work\fwppc\include\clipapi.h(621) : fatal error C1083: Cannot open include file: 'fwce.h': No such file or directory
bpaint.c
c:\work\fwppc\include\clipapi.h(621) : fatal error C1083: Cannot open include file: 'fwce.h': No such file or directory




harb.txt

Harbour devel build 1.1-1 Intl.
Copyright 1999-2007, http://www.harbour-project.org/
Compiling 'C:\work\LIB_32\TSBUTTON_70\TSBUTTON\SOURCE\FWPPC\CLASSES\tsbutton.prg' and generating preprocessed output to 'C:\work\LIB_32\TSBUTTON_70\TSBUTTON\SOURCE\FWPPC\CLASSES\tsbutton.ppo'...

100

100

100

200

300

400

500

100

200

100

200

100

200

300

400

500

600

700

800

900

1000

1100

1200

1300

1400

1500

1600

100

200

300

400

500

600

700

800

900

1000

1100

1200

1300

1400

1500

1600

1700

1800

1900

2000

2100

2200

2300

2400

2500

Lines 6121, Functions/Procedures 45
Generating C source output to 'tsbutton.c'... Done.
Harbour devel build 1.1-1 Intl.
Copyright 1999-2007, http://www.harbour-project.org/
Compiling 'C:\work\LIB_32\TSBUTTON_70\TSBUTTON\SOURCE\FWPPC\CLASSES\tslines.prg' and generating preprocessed output to 'C:\work\LIB_32\TSBUTTON_70\TSBUTTON\SOURCE\FWPPC\CLASSES\tslines.ppo'...

100

100

100

200

300

400

500

100

200

100

200

100

200

300

400

500

600

700

800

900

1000

1100

1200

1300

1400

1500

1600

100

200

Lines 3830, Functions/Procedures 6
Generating C source output to 'tslines.c'... Done.
Harbour devel build 1.1-1 Intl.
Copyright 1999-2007, http://www.harbour-project.org/
Compiling 'C:\work\LIB_32\TSBUTTON_70\TSBUTTON\SOURCE\FWPPC\CLASSES\tsradio.prg' and generating preprocessed output to 'C:\work\LIB_32\TSBUTTON_70\TSBUTTON\SOURCE\FWPPC\CLASSES\tsradio.ppo'...

100

100

100

200

300

400

500

100

200

100

200

100

200

300

400

500

600

700

800

900

1000

1100

1200

1300

1400

1500

1600

100

200

300

400

500

600

700

800

900

1000

1100

1200

1300

1400

1500

1600

Lines 5192, Functions/Procedures 30
Generating C source output to 'tsradio.c'... Done.
Harbour devel build 1.1-1 Intl.
Copyright 1999-2007, http://www.harbour-project.org/
Compiling 'C:\work\LIB_32\TSBUTTON_70\TSBUTTON\SOURCE\FWPPC\CLASSES\tstsay.prg' and generating preprocessed output to 'C:\work\LIB_32\TSBUTTON_70\TSBUTTON\SOURCE\FWPPC\CLASSES\tstsay.ppo'...

100

100

100

200

300

400

500

100

200

100

200

100

200

300

400

500

600

700

800

900

1000

1100

1200

1300

1400

1500

1600

100

200

300

400

100

200

300

400

500

600

Lines 4629, Functions/Procedures 9
Generating C source output to 'tstsay.c'... Done.


lib.txt

Microsoft (R) Library Manager Version 6.24.3077
Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) Library Manager Version 6.24.3077
Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) Library Manager Version 6.24.3077
Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) Library Manager Version 6.24.3077
Copyright (C) Microsoft Corporation. All rights reserved.

LIB : fatal error LNK1181: cannot open input file 'TStSay.obj'
Microsoft (R) Library Manager Version 6.24.3077
Copyright (C) Microsoft Corporation. All rights reserved.

LIB : fatal error LNK1181: cannot open input file 'bPaint.obj'
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: TSButton 7.0

Postby richard-service » Thu Sep 17, 2009 7:16 am

Hi

I use FWPPC810 and Harbour 1.0.1dev Intl. (Rev. 9361)

I saw fwh\include\clipapi.h

#ifdef UNICODE
#include <fwce.h>
#endif

I saw fwh\include not fwce.h , only fwce.ch

Any idea? fwh or fwppc or harbour or vce problem?
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v5.7 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 764
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: TSButton 7.0

Postby mmercado » Fri Sep 18, 2009 10:39 am

Hi Richard, Silvio:
richard-service wrote:I use FWPPC810 and Harbour 1.0.1dev Intl. (Rev. 9361)
Any idea? fwh or fwppc or harbour or vce problem?
Sorry, I have FWPPC 9.01 and all my tests (with no problem at all) have been done with this version, I don't have prior versions of FWPPC for testing.

I think you should to upgrade your FWPPC version.

Best regards.

Manuel Mercado.
manuelmercado at prodigy dot net dot mx
User avatar
mmercado
 
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 98 guests