Jump to content

How work delphi code in UniGUI


Janex

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...