Janex Posted October 18, 2011 Posted October 18, 2011 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 Quote
Administrators Farshad Mohajeri Posted October 18, 2011 Administrators Posted October 18, 2011 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. Quote
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.