erich.wanker Posted October 9, 2015 Share Posted October 9, 2015 hello :-) example of my question ;-) Procedure Mainform.unipanel.Onclick; begin my_mask_unipanel.visible:= true; my_second_form.showmodal; end; my_second_form.OnShow; begin MainForm.my_mask_unipanel.visible:= false; end; ... "my_mask_unipanel" will never be shown - a correct behavior! i am searching somthing like Procedure unipanel.Onclick; begin my_mask_unipanel.visible:= true; Clientside.refresh; my_second_form.showmodal; end; and... my_second_form.OnShow; begin MainForm.my_mask_unipanel.visible:= false; end; if user clicks on panel - the "my_mask_unipane"l is shown immediately ... and serverside-calculations and traffic to client can start .. and if second_form is shown - the my_mask_unipanel will be set to visible:=false; i made a crazy workarround with timer to realise a "separated communication": Procedure unipanel.Onclick; begin my_mask_unipanel.visible:= true; UniTimer1.enabled:=true; // -> now server sends "my_mask_unipanel.visible:= true" to the client end; procedure UniTimer1.onTimer begin my_second_form.showmodal; // my "Time offset solution": The "my_second_form" is served from server seperat end; this works fine - but is not a correct way... Any ideas ? P.S.: the my_mask_unipanel has: function afterrender(sender, eOpts) { sender.getEl().setStyle('z-index','90000'); } function beforerender(sender, eOpts) { sender.addClass('sec-maske'); } .sec-maske{ position:absolute; width:100%; height:100%; zoom:1; filter:alpha(opacity=50); opacity:.5; background:#000000; cursor:default; } Quote Link to comment Share on other sites More sharing options...
Oliver Morsch Posted October 9, 2015 Share Posted October 9, 2015 There is no "Clientside.Refresh;" in uniGUI. So i have developed this. Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted October 10, 2015 Administrators Share Posted October 10, 2015 Why do you need a mask panel? uniGUI has its own Screenmask. 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.