Jump to content

UniGui and FastScript


sagt3k

Recommended Posts

On 1/26/2021 at 10:15 PM, Dm_Ufa said:

         fsGlobalUnit.AddClass(TUniCustomButton, 'TButton');
         fsGlobalUnit.AddClass(TUniButton, 'TUniCustomButton');

 

         fsScript1.AddObject(B.Name, B);

Only the most basic properties and events are available in this way

To register from tcomponent > unbutton

fsBaseLibrary.pas fsugButton.pas

Link to comment
Share on other sites

  • 3 years later...
On 1/26/2021 at 3:15 PM, Dm_Ufa said:

         fsGlobalUnit.AddClass(TUniCustomButton, 'TButton');
         fsGlobalUnit.AddClass(TUniButton, 'TUniCustomButton');

 

         fsScript1.AddObject(B.Name, B);

That works for me, but how can i have access to e.g. JsName property of UniButton ?

i can access to delphi properties like name,  caption etc. but when i want to access unigui properties like JsName then i have an error:

Undeclared identifier: 'jsname' 

Link to comment
Share on other sites

 

On 4/24/2024 at 3:08 PM, PS1 said:

That works for me, but how can i have access to e.g. JsName property of UniButton ?

i can access to delphi properties like name,  caption etc. but when i want to access unigui properties like JsName then i have an error:

Undeclared identifier: 'jsname' 

If you can pay close attention to the previous post, you will find that fsBaseLibrary.pas+fsugButton. pas can perfectly solve the problem you mentioned

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...