Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 List Methods Combo doesn't update when searching

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Damir Posted - Oct 24 2008 : 5:17:07 PM
In VC6 when I use Find In Files, then cycle through results pressing F4 (next result?) key, the List Methods combobox usually updates to show the current function I am in.

In VS2008 it seems to be broken. It only shows the symbol I was searching for.

P.S. Originally I thought VC6 always showed current function correctly, but after some testing between two IDEs I found that VC6 often chokes when trying to determine scope inside switch/case block.

Is this a known issue? I can elaborate more on this if necessary.

5   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Nov 03 2008 : 2:36:34 PM
What "over" means is a good question. Let's see the following situation: the caret is to the left of the symbol (for example TA_LEFT) and you press Alt+G. What do you expect? Visual Assist jumps to the symbol. If you try this with Visual Studio and you press F12 here, it will jump to the same symbol. So VAX is consistent with Visual Studio's default intellisense.
Damir Posted - Nov 02 2008 : 5:04:35 PM
I'm not sure we are on the same page on this one...

The cursor is not OVER the symbol, it is to the left of the symbol! So it should show the current context.
accord Posted - Nov 02 2008 : 11:58:08 AM
I think this is by design. If you place the caret over a symbol, for example over TA_LEFT, it should show TA_LEFT. But when you select something, Visual Assist behaves like when you are over an "empty" place (for example when you are in col 1) and will show the local context.

Ctrl+F3 selects the searched text but F4 in find all files only move the caret, so this is why you are seeing different behavior.
Damir Posted - Oct 30 2008 : 11:34:46 AM
I was testing it a little more. I tried to isolate this behaviour and duplicate it on a small file, but it works fine with single .cpp file.

So I was able to duplicate on Scribble sample that comes with every VS. Here's how to reproduce this in VS2008:

1: Open Scribble sample app in VS2008 (It's located in your sample filder \\AllVCLanguageSamples\\C++\\MFC\\general\\Scribble)

2. Open scribvw.cpp file

3. Use Quick Find (Ctrl+F) VS feature, to search for TA_LEFT within current document. The context field should correctly show: CScribbleView.PrintPageHeader.pDC

http://img145.imageshack.us/my.php?image=vs2008vaxquickfindzw0.gif


4. If you use Find In Files feature to find TA_LEFT (whether Current Document or Entire Solution is selected, doesn't matter), then press F4, the Context field just shows TA_LEFT:

http://img147.imageshack.us/my.php?image=vs2008vaxfindinfilesbs3.gif


The Quick Find highlights the symbol and somehow that seems to matter.

Further to this:

If after step 4, you double-click on the TA_LEFT to highlight it, the context field will still show just TA_LEFT. But if you use arrow keys and SHIFT to select TA_LEFT, the Context field updates to correct version: CScribbleView.PrintPageHeader.pDC

Hope this helps in finding this bug
accord Posted - Oct 27 2008 : 4:56:28 PM
It is an interesting question. This field, called Context field shows the context of your current symbol, described here:

http://www.wholetomato.com/products/features/context.asp

Yes, there are cases, when this field shows the symbol itself, for example when you place the caret over a local symbol.

The trick here is that if you click on the arrow near to this field, context field turns into "list methods in file" combobox, described here:

http://www.wholetomato.com/products/features/methods.asp

Definition field is more useful if you use with definition filed:

http://www.wholetomato.com/products/features/definition.asp

Two more things:
1. Context field shows the function name if you are moving the caret to an empty place inside a function (for example the beginning of the line (Col 1))
2. You can resize context field easily by mouse if you need more space to see it's whole content.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000