RE: (subclassing) Modifying an existing functionality -Reply -Reply

Author: Ed Leafe, ed@leafe.com

Posted: 1999-10-08 at 14:09:57

On 10/8/99 1:52 PM, Michael Babcock supposedly said:

>So can I do this on the fly programmatically, or am I limited to having to

>use the GUI development? I would think I should be able to do it in code,

>but the DEFINE CLASS helpdoc makes me wonder how I alter an existing

>object's method. I'm not adding an object, because it's already there. So

>how I address this?

If you are doing this in code, just re-define the method. So if you

have a textbox named "txtBlah" on your form and you want to override its

RightClick() method, you'd add a proc to your define as follows:

PROCEDURE txtBlah.RightClick

{your custom code here}

ENDPROC

If you are creating the forms using the visual tools, just open the

code editing window, select the proper control and method, and add your

code. That's it!

___/

/

__/

/

____/

Ed Leafe

http://leafe.com/

©1999 Ed Leafe, ed@leafe.com