erich.wanker Posted April 29, 2013 Share Posted April 29, 2013 Hi , i user uniPanel - OnMouseEnter / OnMouseLeave Events to change color and size .. meinpanel.OnMouseEnter:=meinPanelsEnter; meinpanel.OnMouseLeave:=meinPanelsLeave; procedure TMainForm.meinPanelsEnter(Sender: TObject); begin (sender as Tunipanel).Color:=clgray; (sender as Tunipanel).Height:=(100); unipanel3.ReCalculateAligns; end; procedure TMainForm.meinPanelsLeave(Sender: TObject); begin (sender as Tunipanel).Color:=clsilver; (sender as Tunipanel).Height:=(52); unipanel3.ReCalculateAligns; end; but if the panel has a lot of child-components (uniEdit,uniLabel ..) the "onMouseLeave" event wil be send (correctly) .. How can i tell the unipanel not to change the color then i move the mouse over childcomponents of the panel ? thank you Erich Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.