Can I subclass a form field control? 
Author Message
 Can I subclass a form field control?

There is certain functionality that I want in my form field controls.
For instance, I want particular resize code to run for most of my text
form controls.  I can do this through delegation, but that requires me
to add code for each control, just not as much code.  I would really
like to avoid writing duplicate code and hope that I can subclass these
controls.  Is this doable?

Thanks,

Mr. XML



Sat, 07 Aug 2004 10:01:56 GMT  
 Can I subclass a form field control?
Hi Mr. XML,

This is not exactly what you're referring to but you can call the same code from the onexit macro in each formfield and determine the name of the active formfield in a functio with code.
This way you won't have to write different procudures for different formfields but can write some general code that uses the name of the current formfield.

See:
"How to find the name of the current formfield"
http://www.mvps.org/word/FAQs/TblsFldsFms/GetCurFmFldName.htm

Hope this helps,
regards,
Astrid

So that all can benefit from the discussion, please post all follow-ups to the newsgroup.
Visit the MVP Word FAQ site at http://www.mvps.org/word/


Quote:
> There is certain functionality that I want in my form field controls.
> For instance, I want particular resize code to run for most of my text
> form controls.  I can do this through delegation, but that requires me
> to add code for each control, just not as much code.  I would really
> like to avoid writing duplicate code and hope that I can subclass these
> controls.  Is this doable?

> Thanks,

> Mr. XML



Mon, 09 Aug 2004 17:58:54 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Can I subclass a form field control?

2. CE_MsgHook : Subclass Form or Control in eVB to capture message

3. How do I create a canned form?

4. Looking 4 Canned Control

5. Binding field controls on control (form) within datarepeater cont rol

6. Form Subclass ?

7. SubClass Form to recieve Clipboard Changes

8. Is it possible to subclass a form?

9. Best Way to Subclass controls?

10. Same App Control Subclass Available in Toolbox?

11. Softcircuits Subclass control won't register

12. Subclass an Array of a Control(Masked Edit)

 

 
Powered by phpBB® Forum Software