rsanford Posted July 16, 2011 Share Posted July 16, 2011 Hello, I'd like to optionally add gradient effects to form backgrounds, panel backgrounds and also to the default application background (when MainFormDisplayMode = mfWindow). How can this be achieved? Thank you! Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 18, 2011 Administrators Share Posted July 18, 2011 procedure TMainForm.UniFormCreate(Sender: TObject); begin if WebMode then WebForm.ExtForm.Html:='<img src="files/gradient.jpg" width="100%" height="100%"/>'; end; 1 Quote Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted July 18, 2011 Administrators Share Posted July 18, 2011 For UniPanel: function OnBeforerender(sender) { sender.html='<img src="files/gradient.jpg" width="100%" height="100%"/>'; } Quote Link to comment Share on other sites More sharing options...
rsanford Posted July 19, 2011 Author Share Posted July 19, 2011 Looks good, thanks! 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.