Jump to content

How work delphi code in UniGUI


Janex
 Share

Recommended Posts

Hi All.

I a litle dont understand how UniGUI work :(

 

If I write some code in UniFormScreenResize event,

by example:

 

pnl_header.Top := Trunc(AHeight / 5 - pnl_header.Height / 2);

 

This code is in some way translated to JavaScripts and executed directly in browser or UniGUI send this

event to server, then server execute Delphi code and send

back result to client browser and browser scripts place my panel ("pnl_header") at right position ?

 

WBR

Janex

Link to comment
Share on other sites

  • Administrators

Hi All.

I a litle dont understand how UniGUI work :(

 

If I write some code in UniFormScreenResize event,

by example:

 

pnl_header.Top := Trunc(AHeight / 5 - pnl_header.Height / 2);

 

This code is in some way translated to JavaScripts and executed directly in browser or UniGUI send this

event to server, then server execute Delphi code and send

back result to client browser and browser scripts place my panel ("pnl_header") at right position ?

 

WBR

Janex

 

Code is compiled to Win32 binary as expected and it is executed in server. Top property of pnl_header is mapped and translated to a JS property of corresponding visual object which is in browser.

When you assign a new value to Top property a short JS code is generated and sent to browser which adjusts Y property of browser Panel object.

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.

 Share

×
×
  • Create New...