风吹小机机 Posted February 4, 2021 Share Posted February 4, 2021 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 Quote Link to comment Share on other sites More sharing options...
PS1 Posted April 24 Share Posted April 24 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' Quote Link to comment Share on other sites More sharing options...
风吹小机机 Posted April 26 Share Posted April 26 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.