Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to see Events of classes
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00046490
Message ID:
00046559
Views:
24
>>I have been trying to understand the Codebook framework by , among other things, going through the class libraries using the class browser.
>>
>>The class browser shows all Properties and Methods specifically added . But the Event ( event code ) are not listed. For eg , there may be specific code in Init or destroy or click ..
>>
>>While the 'view code' button does make it possible to see everything , is there some other simpler way. I feel that i am missing something obvious.
>
>Prakash, the easiest way is to use Ken Levy's SuperCls. It's available in the files section here, in the Classes/VCX section. Just pop it into a subdirectory, and call it with "DO Supercls". A 4-button toolbar will appear. The left button will show you the next level up of code.
>
>I use it CONSTANTLY with Visual MaxFrame. Always, when I go to add code to something like the InteractiveChange method, I check with Supercls to see if I need to call the DoDefault() method either before or after my code.
>
>If you bring up a class through the Project Manager, by highlighting the class and clicking on Modify, you will see all the methods & events, not just the ones with code in them. Then SuperCls gives you the base class information.
>
>HTH
>Barbara

Barbara, thanks for your reply. The supercls is definitely useful, when one wants to look at the code for a specific event or method. I am trying to understand the parent ( superclass ? ) in the first place by going thru all its P,E and M's.

Since the class browser gives such a nice way of looking at the P and M's i was hoping that there was a way to look at all the Events ( non-empty ) only. As Jim Nelson says further down this thread, it would have been great if this was possible.

After your reply, i did try to modify the class as u suggested , and find that the non-empty Events ARE indicated clearly on the Methods tab of properties sheet -- so i can use that route to look at events defined for that class. Thanks , once again

Prakash
Prakash R Bhat
Previous
Reply
Map
View

Click here to load this message in the networking platform