Jump to content

How can i tell uniGui to separate the communication between server/client


Recommended Posts

Posted

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;
}

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