mos Posted October 18, 2017 Share Posted October 18, 2017 I have a frame and a single image on the frame which has it's onClick event set. The code in the onClick event toggles the color of the Frame: procedure TUniFrame1.UniImage1Click(Sender: TObject); begin if Self.Color = clRed then Self.Color := clBtnFace else Self.Color := clRed; end; What happens is that when you click the image the very first time the Frame color is red. However when you click it again to reset the color back to clBtnFace it doesn't change. 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.