[fpc-pascal] Javascript in Desktop Applications
Sven Barth
pascaldragon at googlemail.com
Tue Feb 8 09:37:30 CET 2011
Am 07.02.2011 15:16, schrieb Andrew Brunner:
> Does anyone have any BESEN examples that integrated actual FPC units?
> It seems like all the samle js units are self contained with no
> interface to system or GUI units.
I haven't looked at the source in general and I also haven't tested it
yet, but take a look at TBESEN.RegisterNativeObject in BESEN.pas and
TBESENNativeObject in BESENNativeObject.pas. TBESENNativeObject utilizes
RTTI, so this seems to be the way to access native code. You might need
to inherit from that class and provide published methods/properties for
the native code you want to use.
Regards,
Sven
More information about the fpc-pascal
mailing list