Krypton ComponentDesigner

Topics related to the Krypton Toolkit.

Moderators: Phil Wright, Chris Porter

Krypton ComponentDesigner

Postby bigholiday » Sun Mar 04, 2007 6:34 am

Hi,

I'm writing an app just now that is a form designer (of sorts). Some of the controls you can place on the form in the app will be krypton labels, krypton buttons and krypton panels, but i'd like to be able to hide some of the properties of these controls based on an application option (think of it as simple and advanced mode).

I already have this working with other .net controls, but the problem is in order to achieve this with krypton controls (or any control for that matter) you need to be able to override PostFilterProperties in your own derived ComponentDesigner class.

Easy enough with normal windows controls, but the KryptonPanel (for example) doesnt expose its component designer derived class, so you cant derive from it yourself. I can tell from stepping though my code and getting the component designer that it is called KryptonPanelDesigner (the krypton button has its own one called KryptonButtonDesigner etc etc). Is there any way to derive from this class - or should i say are there any plans to expose the KryptonPanelDesigner class and similar classes?.

As far as I can see buying and (slightly) altering the source code for my needs is my only option at the moment.
Does the licencing allow this?
bigholiday
 
Posts: 19
Joined: Sun Dec 31, 2006 4:02 am

Postby Phil Wright » Sun Mar 04, 2007 2:01 pm

You would need to buy the source code option in order to get access to these internal classes. They are not exposed at the moment because I only to expose classes that are really required to be public. If you did get the source code and derive from them then you could use that controls in your application without licensing problems. As long as you do not distribute the source code (in original or modified form) outside your organisation then you are fine.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Postby bigholiday » Thu Mar 08, 2007 12:24 am

Bought the source, made my (slight) changes, works a treat
thanks

BTW the code is very well organised, nice and clean!
bigholiday
 
Posts: 19
Joined: Sun Dec 31, 2006 4:02 am

Postby Phil Wright » Thu Mar 08, 2007 8:37 am

Good to hear it works well. But don't mess up my clean code!!!
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia


Return to Krypton Toolkit

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron