rsanford Posted July 16, 2011 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
Administrators Farshad Mohajeri Posted July 18, 2011 Administrators 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
Administrators Farshad Mohajeri Posted July 18, 2011 Administrators Posted July 18, 2011 For UniPanel: function OnBeforerender(sender) { sender.html='<img src="files/gradient.jpg" width="100%" height="100%"/>'; } Quote
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.