Jump to content

hide UniContainerPanel if mouse leav


erich.wanker

Recommended Posts

Hi ..

 

i want to hide UniContainerPanel if mouse leav ..

 

BUT in the UniContainerPanel are different controls (unilabels, uniEdits, unidbgrid..) 

and if the mouse enters a uniedit (placed IN the unicontainerpanel) - the UniContainerPanel -mouseleave function is called ..  :-(   .. 

 

i want to hide the UniContainerPanel just when the mouse is not over the UniContainerPanel -area ...

 

ThanX for suggestions

Erich

 

P.S.: if someone finds a solution in javascript to hide the UniContainerPanel correctly ... please let me know how to show the UniContainerpanel again with delphi-code...

 

 

 

That does NOT work:

function mouseout(sender, eOpts)
{
  sender.getEl().dom.style["display"]="none";
}
procedure TMAINFRAME_MAINTENANCE.eingabepanelMouseLeave(Sender: TObject);
begin
 eingabepanel.Visible:=false;
end;

.

Link to comment
Share on other sites

Hi,

 

Fast solution for now, can you try?!:

 

Hide on the client side:

 

UniContainerPanel1 -> ...

function boxready(sender, width, height, eOpts)
{
    $("#"+sender.id).mouseleave(function(){
        sender.hide();
    })
}

Show on the server side:

 

For example:

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
   // your logic
   UniContainerPanel1.JSInterface.JSCall('setVisible', [True]);
end;

Best regards.

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.

×
×
  • Create New...