Jump to content

How to increase the size of panel on moseover ?


FFREDIANELLI

Recommended Posts

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 ? :unsure2:

 

Link to comment
Share on other sites

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;

?

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