Recent

Author Topic: Status of toolkit for ExtPascal  (Read 97517 times)

Phil

  • Hero Member
  • *****
  • Posts: 2737
Status of toolkit for ExtPascal
« on: December 07, 2009, 01:49:26 am »
I've added grid design controls for the ExtP Toolkit add-on for ExtPascal, which is a complete Ajax framework for developing GUI Web apps. Here are some screenshots:

http://web.fastermac.net/~MacPgmr/ExtPascal/ExtPascal_Grid_in_IDE.jpg

http://web.fastermac.net/~MacPgmr/ExtPascal/ExtPascal_Grid_at_Runtime.jpg


A couple of other screenshots show the MultiSelect (list box) control in action both in the Lazarus IDE and in the browser at runtime:

http://web.fastermac.net/~MacPgmr/ExtPascal/ExtPascal_MultiSelect_in_IDE.jpg

http://web.fastermac.net/~MacPgmr/ExtPascal/ExtPascal_MultiSelect_at_Runtime.jpg


Complete documentation for the toolkit is here:

http://web.fastermac.net/~MacPgmr/ExtPascal/ExtPToolkitStatus.html


Source code is available in a .zip file from here:

http://web.fastermac.net/~MacPgmr/ExtPascal/

Or you can checkout the source along with the complete ExtPascal source from Wanderlan's SVN repository:

http://code.google.com/p/extpascal/

Thanks.

-Phil

LazaruX

  • Hero Member
  • *****
  • Posts: 597
  • Lazarus original cheetah.The cheetah doesn't cheat
Re: Status of toolkit for ExtPascal
« Reply #1 on: December 10, 2009, 10:31:15 am »
Well, now you can really do anything using Lazarus.
Visual Studio has short life now ;-)

ik

  • Jr. Member
  • **
  • Posts: 88
  • ik
    • LINESIP
Re: Status of toolkit for ExtPascal
« Reply #2 on: December 13, 2009, 12:57:04 pm »
Only if it will be marketed properly imho.
Most places and people does not care if they work really hard to do things, if they think it's the best way.
Many people ignore FPC/Delphi just because it is "Pascal" not because any real reason. But these people think that unicorn and mermaids also exits :)

osvaldo-tcf

  • Jr. Member
  • **
  • Posts: 61
Re: Status of toolkit for ExtPascal // One error
« Reply #3 on: December 14, 2009, 04:58:01 pm »
- Erro ExtPascal
========
    function Un(EventName : string; Fn : TExtFunction; Scope : TExtObject) : TExtFunction;
========
    Un('DOMActivate', Ajax('DOMActivate', ['E', '%0.nm','T', '%1.nm','O', '%2.nm'], true));
========

"Compiling package Orpheus 0.2.2" completed
"Compiling package ExtP_Grid 0.1.2" completed
"Compiling package ExtP_Ctrls 0.1.2" completed
Converted by FmToExtP: C:\d_e\componentes\ExtP Toolkit\grid_example\mygrid1.lpr
"Executing command before" completed
C:\d_e\extpascal\Ext.pas(43,27) Hint: Type "TExtDirectTransaction" redefinition
C:\d_e\extpascal\Ext.pas(4013,91) Error: Wrong number of parameters specified for call to "Un"
C:\d_e\extpascal\Ext.pas(452,14) Hint: Found declaration: TExtElement.Un(AnsiString,TExtFunction,TExtObject):TExtFunction;
C:\d_e\extpascal\Ext.pas(4021,99) Error: Wrong number of parameters specified for call to "Un"
C:\d_e\extpascal\Ext.pas(452,14) Hint: Found declaration: TExtElement.Un(AnsiString,TExtFunction,TExtObject):TExtFunction;
C:\d_e\extpascal\Ext.pas(4029,117) Error: Wrong number of parameters specified for call to "Un"
...

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Status of toolkit for ExtPascal // One error
« Reply #4 on: December 14, 2009, 05:09:32 pm »
- Erro ExtPascal
========
    function Un(EventName : string; Fn : TExtFunction; Scope : TExtObject) : TExtFunction;
========
    Un('DOMActivate', Ajax('DOMActivate', ['E', '%0.nm','T', '%1.nm','O', '%2.nm'], true));
========

The declaration of Un in my Ext.pas looks like this:

    function Un(EventName : string; Fn : TExtFunction; Scope : TExtObject = nil) : TExtFunction;

What version of ExtPascal are you using?

Thanks.

-Phil

theo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1927
Re: Status of toolkit for ExtPascal
« Reply #5 on: December 14, 2009, 05:15:34 pm »
@Phil: What is you opinion on Ext licensing?
I've stopped using it for web apps because I don't understand the licensing.
See also:
http://pablotron.org/?cid=1556
http://fabrizioballiano.net/2008/03/18/confirmation-of-my-doubts-about-extjs-licensing/
etc..

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Status of toolkit for ExtPascal
« Reply #6 on: December 14, 2009, 06:10:04 pm »
@Phil: What is you opinion on Ext licensing?
I've stopped using it for web apps because I don't understand the licensing.
See also:
http://pablotron.org/?cid=1556
http://fabrizioballiano.net/2008/03/18/confirmation-of-my-doubts-about-extjs-licensing/
etc..

Those links look kind of old. Why don't you look at the licenses posted on the Ext JS site? They looked pretty clear to me.

Thanks.

-Phil

osvaldo-tcf

  • Jr. Member
  • **
  • Posts: 61
Re: Status of toolkit for ExtPascal // One error
« Reply #7 on: December 14, 2009, 06:31:20 pm »
- Erro ExtPascal
========
    function Un(EventName : string; Fn : TExtFunction; Scope : TExtObject) : TExtFunction;
========
    Un('DOMActivate', Ajax('DOMActivate', ['E', '%0.nm','T', '%1.nm','O', '%2.nm'], true));
========

The declaration of Un in my Ext.pas looks like this:

    function Un(EventName : string; Fn : TExtFunction; Scope : TExtObject = nil) : TExtFunction;

What version of ExtPascal are you using?

Thanks.

-Phil


Extpascal and toolkit from subversion
ExtJS from download page:
3.0.3

Ext JS 3.0.3 Public Release
Ext JS 3.0.3

Includes full source code, build, HTML documentation and samples.
Released on July 6th, 2009.

osvaldo-tcf

  • Jr. Member
  • **
  • Posts: 61
Re: Status of toolkit for ExtPascal
« Reply #8 on: December 14, 2009, 07:24:23 pm »

mschnell

  • Full Member
  • ***
  • Posts: 131
    • http://www.lumino.de
Re: Status of toolkit for ExtPascal
« Reply #9 on: January 05, 2010, 10:08:20 am »
Maybe I'm just being silly, but I can't get this running.

As recommended I use Lazarus 0.9.28.2 Beta (with fpc 2.2.4 on Suse 11.1).

I unzipped the ExtPascal files into ~/ExtPascal so that there is a folder
/home/mschnell/ExtPascal/extp_tk_20091206/

When I try to create an ExtPascal application, I get a

uses ... FCGIApp ....

in the source code of the "program". "FCGIApp" does not seem to exist anywhere, so I get an appropriate error message.

Wildly guessing, I changed this to be "CGIApp".

Now I get an error message "Can't find unit "Extpascal used by APPThread".

In the project's compiler options there is a "Other Unit Files" setting
$PKGDIR(ExtP_Ctrls)/../

I don't understand what that means and what the macro $PKGDIR(ExtP_Ctrls) is extracted to, but it does not seem to work.

So I added
;/home/mschnell/ExtPascal/ExtPascal-0.9.7.1/
(ignoring the "unusual Characters" warning). Making the path to be
$PKGDIR(ExtP_Ctrls)/../;/home/mschnell/ExtPascal/ExtPascal-0.9.7.1/

Now in the unit ExtPascal I get lots of error messages resulting from the fact the the class Type TFCIThread is not found.

Guessing and making this to be "TCGIThread" does not help.

What am I doing wrong ?

(P.S.: edit: I just found that you already this year posted a new ExtPascal version so I  upgraded from extp_tk_20091206 to extp_tk_20100103.zip: Same results :( .  Any help ??? )


-Michael

« Last Edit: January 05, 2010, 11:44:44 am by mschnell »

osvaldo-tcf

  • Jr. Member
  • **
  • Posts: 61
Re: Status of toolkit for ExtPascal
« Reply #10 on: January 05, 2010, 02:53:16 pm »

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Status of toolkit for ExtPascal
« Reply #11 on: January 05, 2010, 03:14:29 pm »

In the project's compiler options there is a "Other Unit Files" setting
$PKGDIR(ExtP_Ctrls)/../

I don't understand what that means and what the macro $PKGDIR(ExtP_Ctrls) is extracted to, but it does not seem to work.


I think you almost have it - with the current release, Other Unit Files should be set to "$PKGDIR(ExtP_Ctrls)/../../". Try creating a new ExtPascal Application and see if that's okay.

This is the assumed path to the ExtPascal units, i.e., two levels up from where the ExtP_Ctrls package is. You unzipped in the usual place, so you're okay. Otherwise, just change the path. That's what the popup message is all about when you create a new ExtPascal app.

Let me know if that doesn't help.

Thanks.

-Phil

mschnell

  • Full Member
  • ***
  • Posts: 131
    • http://www.lumino.de
Re: Status of toolkit for ExtPascal
« Reply #12 on: January 05, 2010, 03:25:39 pm »
In fact I am using the newest version (see "P.S.") and yes it does set the path to "$PKGDIR(ExtP_Ctrls)/../../".

But this does not seem to help as I think i did overcome the unit path problem by adding the path to include the /home/mschnell/ExtPascal/ExtPascal-0.9.7.1/  directory.

But by first adding the unit path and then not mindlessly changing FCGIAPP to CGIAPP I seem to get somewhat further,

I now get

"Can't find unit Ext used by ExtPascal."

I see this in ExtPascal.pas:

uses
  SysUtils, StrUtils, Math, Ext, ExtUtil, ExtGrid;   

But I can't see either file of  of Ext.*, ExtUtil.* and ExtGrid.* anywhere



-Michael
« Last Edit: January 05, 2010, 04:04:44 pm by mschnell »

mschnell

  • Full Member
  • ***
  • Posts: 131
    • http://www.lumino.de
Re: Status of toolkit for ExtPascal
« Reply #13 on: January 05, 2010, 03:30:34 pm »

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Status of toolkit for ExtPascal
« Reply #14 on: January 05, 2010, 03:35:41 pm »
If you installed this package:

/home/mschnell/ExtPascal/extp_tk_20091206/extp_ctrls/extp_ctrls.lpk

Then $PKGDIR(ExtP_Ctrls)/../../ will point to /home/mschnell/ExtPascal where the ExtPascal .pas files, including FCGIApp.pas, are located.

Check to see if all of that is correct.

Thanks.

-Phil


In fact I am using the newest version (see "P.S.") and yes it does set the path to "$PKGDIR(ExtP_Ctrls)/../../".

But this does not seem to change anything, as I think i did overcome the unit path problem by adding the path to include the /home/mschnell/ExtPascal/ExtPascal-0.9.7.1/  directory.

But the first problem is introduced by the "uses FCGIApp" line. What is this supposed to mean ?

-Michael

 

TinyPortal © 2005-2018