erich.wanker Posted January 21, 2017 Share Posted January 21, 2017 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; . Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 21, 2017 Share Posted January 21, 2017 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. 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.