Print Page | Close Window

TAdvSmoothPanel Independent Style Setting

Printed From: TMS Software
Category: General
Forum Name: Feature Requests
Forum Discription:
URL: http://www.tmssoftware.com/site/forum/forum_posts.asp?TID=592
Printed Date: 15 Nov 2019 at 5:08pm


Topic: TAdvSmoothPanel Independent Style Setting
Posted By: Gathercole David
Subject: TAdvSmoothPanel Independent Style Setting
Date Posted: 27 Apr 2011 at 6:30am
Hi,
 
Would it be possible to add a property to the TAdvSmoothPanel so that it doesn't automatically pick up the Style settings from the FormStyler. I'm trying to use a SmoothPanel with custom fill settings that I've applied at design time but I'm using AppStyler / FormStylers so the SmoothPanel automatically picks up the tsOffice2010Blue fill style from these at runtime, for example.
 
Cheers,
 
Matt



Replies:
Posted By: Bruno Fierens
Date Posted: 27 Apr 2011 at 8:13am
You can use the event AdvFormStyler.OnApplyStyle and when the control AComponent is the control you want to disable automatic styling for, set Allow parameter to false.


Posted By: Gathercole David
Date Posted: 27 Apr 2011 at 8:55am
Thanks for that Bruno. It didn't occur to me to look at the FormStyler itself rather than the component. Obvious when you think about it though!
Cheers,
Matt 



Print Page | Close Window