Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder Components » View Thread |
Messages 1 to 2 of 2 total |
Newbie question |
Sat, Feb 4 2017 4:32 AM | Permanent Link |
Uli Becker | Still a newbie in component developing:
I want to "override" the padding settings of a component derived from TBasicPanel when tha component is created. IOW: I want to ignore any values of the padding property entered by the user and use my own values. Tried to do that in the OnCreate event of the component, but that doesn't seem to work. Thanks Uli |
Wed, Feb 8 2017 1:50 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Uli,
<< Still a newbie in component developing: I want to "override" the padding settings of a component derived from TBasicPanel when tha component is created. IOW: I want to ignore any values of the padding property entered by the user and use my own values. Tried to do that in the OnCreate event of the component, but that doesn't seem to work. >> What you want is the InitializeProperties method. Override it, and make sure to call the inherited property first. However, that won't help you if the developer using your component decides to set the Padding property manually. To prevent that, you'll want to create your own control similar to TBasicPanel, but without publishing or exposing the Padding property. Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Thursday, March 28, 2024 at 06:05 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |