FFREDIANELLI Posted April 6, 2019 Share Posted April 6, 2019 Some help on javascript please... how to increase the size of a panel onmoveover I tried to ClientEvents.ExtEvents.Add('OnMouseover=function OnMouseover1(sender)' + ' { sender.sender.getWidth()+50; }'); ClientEvents.ExtEvents.Add('OnMouseout=function OnMouseout(sender)' + ' { sender.setWidth(sender.getWidth()-50); }'); If i try to change color the efect is ok, but no effect on change size... do I have to call some version of javascriplt refresh ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 6, 2019 Share Posted April 6, 2019 50 minutes ago, FFREDIANELLI said: Some help on javascript please... how to increase the size of a panel onmoveover I tried to procedure TMainForm.UniPanel1MouseEnter(Sender: TObject); begin UniPanel1.Width := UniPanel1.Width + 50; end; procedure TMainForm.UniPanel1MouseLeave(Sender: TObject); begin UniPanel1.Width := UniPanel1.Width - 50; end; ? Quote Link to comment Share on other sites More sharing options...
FFREDIANELLI Posted April 6, 2019 Author Share Posted April 6, 2019 Thanks Sherzod. 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.