Jump to content

Recommended Posts

Posted

Hi

Someone used FastScript with UniGui? Unfortunately it seems there are problems with visual objects. I managed, however, to create scripts in thread but only algorithm, without working with visual objects UniGui*. It will be possible to solve the problem of UniGui and FastScript in the future ?

Thanks

  • Upvote 1
Posted

Here attached an example. Pressing RUN goes on stack-overflow. The idea would be to create Forms and Algorithms as a script. I already have several VCL applications that work this way. To use these potentials UNIGUI together would create a backend application and then build in function of needs form and algorithms directly by the customer. etc..

Thanks for your support.

 

FastScript_sample.zip

Posted

Making UniGui compatible with FastScript. I am developing an application, an interface, where algorithms and form are declared inside a database. I think that these features are very well suited and very interesting to develop a dynamic product. In addition you can write with FastScript with other languages, C, Basic and JavaScript.

  • Administrators
Posted

Making UniGui compatible with FastScript. I am developing an application, an interface, where algorithms and form are declared inside a database. I think that these features are very well suited and very interesting to develop a dynamic product. In addition you can write with FastScript with other languages, C, Basic and JavaScript.

 

I mean start a new thread in Feature Requests forum so I can track it in future.

  • 2 weeks later...
Posted

Anybody can help me? And yet it seems to me a very good idea to provide it with unigui pascal script at runtime.

In your test project you have some mistakes.

Registring of classes must be in format:

Script.AddClass(TNewClass, 'TNewClassParentClass'); !!!

 

In your project you wrote:

Script.AddClass(TUniButton,'TUniButton'); It's mean: TUniButton is ParentClass of TUniButton.!!!

 

Must be:  

Script.AddClass(TUniBaseControl,'TWinControl'); 

.....

Script.AddClass(TUniCustomButton,'TUniBaseButton'); 

Script.AddClass(TUniButton,'TUniCustomButton');

 

 

If you want use all properties in FastScript you must register all ParentClasses in the correct order. If script don't know parent of class, it thinks parentClass is TObject 

  • 5 years later...
  • 1 year later...
  • 4 weeks later...
Posted

Hi Dm_Ufa

I am very interested in generating controls dynamically via fastscript. Can you attach the source code where you clear AddClass and AddObject for TUniButton?

I have problem with this Script example:

Var B:TUniButton;

begin
 B:=TUniButton.Create(UniApplication);
 B.Parent:=UniPanel1;
 B.Caption:='Hello!!!';
 B.Left:=100;
end.

 

Posted
6 hours ago, 风吹小机机 said:

I have successfully combined unigui with fastscript

Recently, it took three months to rewrite fr's online report designer with unigui

Unigui is too powerful

传参.gif

动态RestAPI演示.gif

Bless your hands, It's So Beautiful. Is It Possible To Share This With Us ..

Posted
On 1/13/2021 at 11:06 PM, alp.yilmaz said:

Bless your hands, It's So Beautiful. Is It Possible To Share This With Us ..

It's not easy for me to access the Internet. I have set up a chat group. Please use international QQ, group number: 59076669

  • Administrators
Posted
On 1/13/2021 at 11:23 AM, 风吹小机机 said:

I have successfully combined unigui with fastscript

Recently, it took three months to rewrite fr's online report designer with unigui

Unigui is too powerful

传参.gif

动态RestAPI演示.gif

Looks very interesting!! 😏

Posted
On 1/10/2021 at 1:52 AM, sagt3k said:

Hi Dm_Ufa

I am very interested in generating controls dynamically via fastscript. Can you attach the source code where you clear AddClass and AddObject for TUniButton?

I have problem with this Script example:

Var B:TUniButton;

begin
 B:=TUniButton.Create(UniApplication);
 B.Parent:=UniPanel1;
 B.Caption:='Hello!!!';
 B.Left:=100;
end.

 

I will answer later, while the laptop is being repaired

Posted
On 1/10/2021 at 1:52 AM, sagt3k said:

Hi Dm_Ufa

I am very interested in generating controls dynamically via fastscript. Can you attach the source code where you clear AddClass and AddObject for TUniButton?

I have problem with this Script example:

Var B:TUniButton;

begin
 B:=TUniButton.Create(UniApplication);
 B.Parent:=UniPanel1;
 B.Caption:='Hello!!!';
 B.Left:=100;
end.

 

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

 

         fsScript1.AddObject(B.Name, B);

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...