Página 1 de 1

Bug on properties from User Contol

Publicado: Mié Jul 19, 2017 4:53 pm
por emeasoft
Hello Xailers,

I am experiencing a bug that does not load the created properties.

It happend when I created an User Control and added a new Published Property like:

PROPERTY oFieldButton EDITOR PE_Control AS TControl

The property shows on the IDE, allows me to select the control, but when I save, close and open the form again, it is not loaded, it is on the xfm file, but does not show on the IDE...

It happens only with this type of property (control selection), logic, text properties loads just fine.

Is this really a bug or am I doing something wrong?

TIA,
Juliano

Re: Bug on properties from User Contol

Publicado: Mié Jul 19, 2017 6:58 pm
por ignacio
In order to work the control pointed by your property should be instantiaded. In case that control is also on the same form, its creation must be done before your user control. That can be easily achieved changing its creation order.

Regards,

Re: Bug on properties from User Contol

Publicado: Mié Jul 19, 2017 7:38 pm
por emeasoft
That's it Ignacio!

Many thanks!

Regards,
Juliano