Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Alt+G bug!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

znakeeye
Tomato Guru

379 Posts

Posted - Nov 22 2007 :  05:10:45 AM  Show Profile  Reply with Quote
Inheritence as follows:
CMyDialog -> CPrintableDialog -> CDialogEx -> CDialog
In CMyDialog::OnInitDialog():
CPrintableDialog::OnInitDialog();
...
...
If I select CPrintableDialog::OnInitDialog and press Alt+G, OnInitDialog in DialogEx.cpp/DialogEx.h are listed!

VS.NET 2003, VAX 1618.

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Nov 22 2007 :  1:55:17 PM  Show Profile  Reply with Quote
If you try alt-g again does the same thing happen?
If you place the caret into the call:

CPrintableDialog::OnInitDialog();

what does VA show in the context and definition fields?

As a simplified test I have just added the following code to a C++ header file:

class testAltGBaseClass
{
public:
	virtual void OnInitDialog()	{ }
};

class testAltGChildClass : public testAltGBaseClass
{
public:
	virtual void OnInitDialog()	{ }
};

class testAltGGrandchildClass : public testAltGChildClass
{
public:
	virtual void OnInitDialog()
	{
		// test alt-g on this function call
		testAltGChildClass::OnInitDialog();
	}
};

using VS2005 and VA 1618, and Alt-g takes me to the correct place in the header file.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000