Hi all, I am trying this piece of code
proc `=destroy`*(x : var CustomButtonClass) =
RemoveWindowSubclass(x.handle, Btn_WndProc, 1)
All i want to remove the subclassing when CustomButtonClass destroyed. But the compiler says that "signature for '=destroy' must be procT: object" I am confused. An example will be enough for me to understand the concept. Thanks in advance.