Recent

Author Topic: Pascal Script | Forms and Controls  (Read 1797 times)

cpalx

  • Hero Member
  • *****
  • Posts: 753
Pascal Script | Forms and Controls
« on: December 06, 2016, 01:15:19 am »
How can i create forms and controls with Pascal Script?

i suppose it can, because the componentes (PSimport_Forms, PSimport_Controls, PSimportStadControls)

Does somebody have ideas?

sam707

  • Guest
Re: Pascal Script | Forms and Controls
« Reply #1 on: December 06, 2016, 01:47:25 am »
I made some works with pascalscript 3-4 years ago. If i remember there is "IMPORTS" to export instances of classes and/or their allocated public/published 'properties" from executable and expose them to the script

but no way to allocate instances FROM a script and "EXPORT" them back to the executable.

so "instanciating"/creating is one way only, I guess, inside the executable directly. make a function to do such and expose the function to the script engine. Calling a constructor directly would fail

it might be possible by exposing the running 'TMemoryManager" to the scriptengine, to make sort of hack in the script, but I wont investigate for it, lack of security, non-standard usage, etc.
« Last Edit: December 06, 2016, 02:03:34 am by sam707 »

 

TinyPortal © 2005-2018