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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...