Someway to override Delphi default procedures at Design Time ?
I need to override the InstanceSize at design time, I did it runtime using FastCode method:
FastcodeAddressPatch(FastcodeGetAddress(@SInstanceSize), @TWinControl.RfInstanceSize);
But, is there some way to do it at Design time ?
Tks in advice
“Design time” is really just “run time,” but in the context of the IDE instead of the context of your program. Put your code in a design-time package and load it in the IDE. The IDE will call all the
Registerprocedures in your package’s units, at which time you can run whatever code you need.Register. It must have a capital R and the rest lowercase.FastcodeAddressPatchthere).I’m a little wary about what it looks like you’re trying to do in step 5, but I’ll let you work that out for yourself.