Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A way to see...
Message
From
03/10/2002 22:13:05
 
 
To
03/10/2002 16:50:51
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Miscellaneous
Thread ID:
00705041
Message ID:
00707646
Views:
19
Hi Ric,

Under the tools directory in your VFP7 directory, there is an xsource directory containing a zip file. If you unzip that file, it will create another directory called VFPSOURCE. Under that will be a number of directories, one of which is called 'browser', and under that directory is 'browser.vcx'.

I have the following code in my projecthook refresh(), but you could just run it as a prg. (I don't recall where I stole this from, but it might well have been a MS whitepaper).
* check if already toolbar object reference for class browser parent editor
If !PemStatus(_Screen, '_oParentClassBrowser', 5)
	_Screen.AddProperty('_oParentClassBrowser', .Null.)
Endif

* instantiate the toolbar if necessary
If Type('_Screen._oParentClassBrowser.Name') <> 'C'
	_Screen._oParentClassBrowser = NewObject('_ParentClassBrowser', Home() + ;
		"Tools\xSource\vfpsource\Browser\Browser.vcx")
Endif

* display it
_Screen._oParentClassBrowser.Dock(0)
_Screen._oParentClassBrowser.Show()
That puts a new one button toolbar onto the screen. Open up the highest level class of that textbox you were dealing with, and open one of the methods in question (say init for instance). Then with it open, click the new button. You should get a heirarchy menu so you can choose the parent class for which you want to see the init method. As I said, though, for whatever reason, it does not work that way on form methods.

Hope this helps.

Alan


>Alan,
>
>Good morning and thanks for the reply. Now, I thought the object library was for 'objects' so to speak. I am not aware of what you mean by running the _browser from the xsource directory. Could you please explain the 'how' so I can try it here?
>
>This is very much appreciated.
>
>
>Ric
>
>>>Hiya everyone, and thanks for the response... it appears that if you are using a multi level class (i.e., at least three subclasses, there is not an easy way in form designer to view the immediate parent methods. Thanks for all of your input. I have tried SuperCls (which appears to be the forerunner of the class browser) but it also take you to the highest class level when you use it; not the class next up the hierarchy.
>>>
>>>Ric
>>
>>Ric,
>>
>>Have you looked at running the object browser from the tools\xsource directory under vfp7? When I click on the toolbar button after opening a method in the current object, I get a heirarchy menu so that I can choose whichever parent class's method I want to see.
>>
>>For whatever reason, it does NOT work for forms. Instead of a menu, I get taken directly to my base class (mine, not fox's).
>>
>>Alan
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform