Very clever, no doubt, thanks for taking the time to explain it to me.
But we are far from the ease of use of Codemine or better .NET WinForms. Why use bits for a functionnality that will change the position of at most 100 controls on a form ? I think even 486 can do it fast without using bits. And it's even probable that the speed of the video card is more important than the efficiency of the code.
i do not known Codemine,
but on VFP the property is a list, and when VFP search a property, it scan this list:
last property add
....
fist property add
Baseclass property list ( i do not test if it is in alpha order )
Then, any property added it weights down the scan process.
Anther problem is this:
if you change the control position and you want redo the Anchor to new positions,
you cannot do this:
this.Anchor = this.Anchor
VFP ignores this command.
I think it compares this with an inner value and if they are equal the execution finishes.
Then you must do this for a generic class with a unknown Anchor setting:
anchor = this.Anchor
this.Anchor = 0
this.Anchor = this.Anchor
With more to one Property, this process is complex.
Fabio