2.70 classes and compatibility

HotShoe

Well-Known Member
Licensed User
Longtime User
If I convert/write classes so that they can be used in the 2.70 designer, do those classes retain backward compatibility or do I have to offer 2 versions? I know most will/have likely upgraded to 2.70 already, but there are some that have not, and may not for a while.

--- Jem
 

agraham

Expert
Licensed User
Longtime User
It depends on what you mean by "backward compatibility". Classes usable in the Designer in 2.70 are loaded and initialised when the layout file is loaded at runtime. If used in an earlier version of the IDE they would need to be programmatically loaded and initialised. So while the actual source code of the class is usable in earlier versions the source of the app would need to be modified for the earlier IDE to call Initialize and DesignerCreateView with the appropriate Panel, Label and Map arguments. It's a bit clumsy!
 
Upvote 0

HotShoe

Well-Known Member
Licensed User
Longtime User
Thanks Andrew,

So 2.52 would not necessarily choke on a 2.70 library or class, it just wouldn't work in the designer? I guess I should just try it and find out.

--- Jem
 
Upvote 0
Top