Custom PosSizer: inheritance, recognition
Author: dance
Creation Date: 6/2/2017 4:35 PM
profile picture

dance

#1
Hi, Guys!
I am writting custom posSizer (attached) and have 2 questions:
1) Do I need inherit my class from ICustomSettings? Or it is possible to only inherit from PosSizer? If yes, do I understand it correctly that I don't need windows forms for settings?
2) How to add it to Wealth-Lab? Copied to Wealth-Lab Pro main directory but couldn't find in the list of posSizers?
Thank you in advance for your help!
profile picture

Eugene

#2
Hello,

Here's the fully functioning demo solution that should answer both questions:

Home - MS123.PosSizers

Unfortunately, you're not recognized as our customer because it was your employer/colleague who has shared an individual extra license with you (despite that this is not entirely OK with regard to our Price & License policy). However, we're customer-friendly so if he signs up for a Wiki account you should get access to the source code.

QUOTE:
1) Do I need inherit my class from ICustomSettings?

Whatever you see fit:
CODE:
Please log in to see this code.

QUOTE:
Copied to Wealth-Lab Pro main directory but couldn't find in the list of posSizers?

Then you did something wrong. While you're waiting for the Wiki account creation/authorization, please check out these threads where similar questions were raised:

Custom PosSizer not recognized by WLP
Getting WL to recognize a custom PosSizer