Hi Christian.
I had to delete my previous answer, because it needed some improvements, so here is the correct sollution:
- You need to create a fake form, which has a text box and CFL bound to it. On the system form you need to place a text box but don't bind any CFL to this TB.
- Instead add a button near with the standard CFL icon (like in a SAP combo-boxes with additional CFL-feature).
- So, when a user clicks the CFL-button, your code creates the fake form and sets it's CFL parameters and conditions. Then you calls TB.ClickPicker method and opens the CFL window. All these steps can be performed straightly in the fake form's constructor, hence you don't need to show the fake form.
- Obviously, the fake form sould have CFL-after event hadler, which will performe desired tasks in the system form after a user has made a choise. To do this, you should pass a delegate to the constructor of your fake form.
Regards, Evgeny.