Author |
Topic |
|
znakeeye
Tomato Guru
379 Posts |
Posted - Nov 22 2007 : 08:46:54 AM
|
I find this in my code: CMyDialog dlg; dlg.DoModal();
In 90% of the cases I want to look at CMyDialog::OnInitDialog. However, In the world of win32 methods are called via ugly message maps. So, in order to find the code of interest I must do the following:
Alt+G, Alt+O, Alt+M, "OnInit"<ENTER> ... yes, I can do that fast by now! ;)
NEW FEATURE Wouldn't it be very nice to have another jump command that takes these horrible message maps into consideration? Perhaps just a "Jump to some method that is not being called right here"-command.
Then a menu would pop up when you press ALT+C (or whatever) and show you this cool menu: CMyDialog ~CMyDialog DoDataExchange OnInitDialog OnClose OnDestroy
feline, I know you're gonna like this one |
|
znakeeye
Tomato Guru
379 Posts |
Posted - Nov 22 2007 : 10:19:23 AM
|
I admit you could use the VA outline for this, which reminds me... there's no shortcut key for the VA outline! This is a must-have! I also noted that Alt+Shift+O explicitly opens the "Open file in solution"-dialog. I want it to open VA outline and then map Alt+Shift+F to this file dialog... |
|
|
rhummer
Tomato Guru
USA
527 Posts |
Posted - Nov 22 2007 : 11:25:09 AM
|
You can change the key bindings for VA X commands, they all begin with VAssistX. Though I'm not finding one for VA Outline. |
Tools Engineer - Raven Software VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64
|
|
|
feline
Whole Tomato Software
United Kingdom
19025 Posts |
Posted - Nov 22 2007 : 1:45:32 PM
|
I have mapped a keyboard shortcut to the command VAssistX.VAOutline and it works wonderfully for me.
rhummer you may need to install a newer version of VA. Your keyboard shortcut might still be called VAssistX.LiveOutline, since VA Outline was originally called Live Outline while it was being developed. |
zen is the art of being at one with the two'ness |
Edited by - feline on Nov 22 2007 1:56:44 PM |
|
|
feline
Whole Tomato Software
United Kingdom
19025 Posts |
Posted - Nov 22 2007 : 1:59:04 PM
|
quote: Originally posted by znakeeye
Perhaps just a "Jump to some method that is not being called right here"-command.
We already have this feature
Hover the mouse over "CMyDialog" and look at the bottom half of VA View, the Hovering Class Browser
Alternatively open the Find Symbol dialog (Alt-Shift-S) and filter it on "CMyDialog" |
zen is the art of being at one with the two'ness |
|
|
rhummer
Tomato Guru
USA
527 Posts |
Posted - Nov 22 2007 : 6:24:19 PM
|
feline, i was doing VAssistX.Outline, wasn't thinking to look for VAssistX.VAOutline. Seemed kind of redundant to me having VA in the shortcut for VAssist. :P |
Tools Engineer - Raven Software VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64
|
|
|
znakeeye
Tomato Guru
379 Posts |
Posted - Nov 23 2007 : 07:30:49 AM
|
Actually, after some testing I think my feature makes sense. Too much key presses and clicks are required to get to CMyDialog::OnInitDialog when, for instance, debugging. Since you have already got the list of methods, why not add a nice "jump"-menu when hovering the variable or similar (right-click...)? |
|
|
feline
Whole Tomato Software
United Kingdom
19025 Posts |
Posted - Nov 23 2007 : 10:08:41 AM
|
What happens when the class contains 200 methods?
My main concern at the moment is how well this will work in the edge cases. For a class with 3 methods a menu is fine, but for a class with 200 methods a menu really is not going to work. |
zen is the art of being at one with the two'ness |
|
|
feline
Whole Tomato Software
United Kingdom
19025 Posts |
Posted - Nov 23 2007 : 10:10:48 AM
|
Calling the shortcut "Outline" might make more sense in that dialog, but then it is inconsistent with the name else where. With so many windows / panels in the IDE it is good to give VA Outline a clear name, even if it is a little redundant |
zen is the art of being at one with the two'ness |
|
|
znakeeye
Tomato Guru
379 Posts |
Posted - Nov 25 2007 : 3:07:22 PM
|
Hmm, why not add a shortcut that explicitly opens the associated class of the selected variable in the Outline window? |
|
|
feline
Whole Tomato Software
United Kingdom
19025 Posts |
Posted - Nov 26 2007 : 1:12:20 PM
|
VA Outline is designed to show you the current file, but adding a command to update the HCB (bottom section in VA View) makes a lot of sense:
case=10133
It is obvious now you have suggested it |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|