Hello,
I am not sure whether it is possible to intercept the assignment of a property in an ADD OBJECT clause within a class definition. As a matter of fact, the <Property>_ASSIGN method does not seem to be called at all. For instance, the BackColor_ASSIGN event is not triggered unless I make an explicit assignment in some class event (e.g. Init).
Is there a way to manipulate the value of BackColor using this syntax? I would like to be able to change BackColor values in case of a system theme/colour change (intercepting WM_SYSCOLORCHANGE).
Dario
I am not sure whether it is possible to intercept the assignment of a property in an ADD OBJECT clause within a class definition. As a matter of fact, the <Property>_ASSIGN method does not seem to be called at all. For instance, the BackColor_ASSIGN event is not triggered unless I make an explicit assignment in some class event (e.g. Init).
Code:
DEFINE CLASS MyPageClass AS Page
[indent]ADD OBJECT lblx AS MyLabelClass WITH BackColor = 0xD4D0C8[/indent]
ENDDEFINE
Is there a way to manipulate the value of BackColor using this syntax? I would like to be able to change BackColor values in case of a system theme/colour change (intercepting WM_SYSCOLORCHANGE).
Dario