× Components and Libraries for Scripting Development, discussions, problems and suggestions

Question pl_magicscript

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
4 months 1 week ago #14894 by Sternas Stefanos
Replied by Sternas Stefanos on topic pl_magicscript
You can attach here any change to pl_MagicScript API.
We will test it and add to LAB CT

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
3 months 3 weeks ago #14935 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
Hello Guys,

I do have a problem with this package. See pictures



I have checked for double definition but the program crashes every time. Do you have a tip how can I clear this behavior?

Thx
Attachments:

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
3 months 3 weeks ago #14936 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
I have found that issue. I have made a double definition. Sorry.


Thx

Please Log in or Create an account to join the conversation.

More
3 months 3 weeks ago #14937 by Matis A.
Replied by Matis A. on topic pl_magicscript
Thanks
have fun

PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
3 months 2 weeks ago - 3 months 2 weeks ago #14962 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
Hi there,

I'm not able to use more then 2 units in the uses clause. The third one wasn't found. The error message was "Unable to open file".


Thx
Last edit: 3 months 2 weeks ago by LuZZZZi.

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
3 months 4 days ago #15000 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
Hi,

uses clause is working ok, because I have forgotten to add the extension to an added unit.



Thx

Please Log in or Create an account to join the conversation.

More
3 months 4 days ago - 3 months 4 days ago #15001 by Matis A.
Replied by Matis A. on topic pl_magicscript
Thanks Sir
have fun

PilotLogic Core Programmer
Last edit: 3 months 4 days ago by Matis A..

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 3 weeks ago #15144 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
Hi guys,

I would like to register this source code:

AnchorAlign: array[TAlign] of TAnchors = (
[akLeft, akTop],
[akLeft, akTop, akRight],
[akLeft, akRight, akBottom],
[akLeft, akTop, akBottom],
[akRight, akTop, akBottom],
[akLeft, akTop, akRight, akBottom],
[akLeft, akTop] );

Is it possible to use Register_ConstWithType?


Thx

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 month 3 weeks ago - 1 month 3 weeks ago #15146 by Sternas Stefanos
Replied by Sternas Stefanos on topic pl_magicscript
This is a Variable Sir
NOT Const

PilotLogic Architect and Core Programmer
Last edit: 1 month 3 weeks ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 3 weeks ago - 1 month 3 weeks ago #15151 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
No Sir. It is a structure out of the controls unit.

See here: lazarus-ccr.sourceforge.io/docs/lcl/controls/anchoralign.html

Thx
Last edit: 1 month 3 weeks ago by LuZZZZi.

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 month 3 weeks ago - 1 month 3 weeks ago #15152 by Sternas Stefanos
Replied by Sternas Stefanos on topic pl_magicscript
No Sir, I don't think it's possible, but you can test this...

oh
http://www.pilotlogic.com/codetyphon/webhelp/lcl/controls/anchoralign.html

More in our Wiki
here...

PilotLogic Architect and Core Programmer
Last edit: 1 month 3 weeks ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 3 weeks ago #15153 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
Can you please give me a small example how to use Register_ConstWithType.

Thx

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
More
1 month 3 weeks ago - 1 month 3 weeks ago #15154 by Sternas Stefanos
Replied by Sternas Stefanos on topic pl_magicscript
Sir
TmscrScript don't have Register_ConstWithType procedure

Some of CodeTyphon elements can't register to MagicScript.
It's a scripter, NOT a Pascal compiler.

If you want to Register ALL elements of CodeTyphon to MagicScript
then I think you are in a wrong way.

This is the common problem of Scripters Developers and users.
They want to Register many elements of the programming tool in a Scripter
and to make the scripter same with the compiler or like a compiler.

But this is not possible.

..

PilotLogic Architect and Core Programmer
Last edit: 1 month 3 weeks ago by Sternas Stefanos.

Please Log in or Create an account to join the conversation.

  • LuZZZZi
  • Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
More
1 month 3 weeks ago #15155 by LuZZZZi
Replied by LuZZZZi on topic pl_magicscript
Hi Sternas,

I know that I can't register all types of Pascal syntax and you are right that the Register_ConstWithType is not a public function. I'm converting pascal source as much as possible to a script.


Thx

Please Log in or Create an account to join the conversation.