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
 Technical Support
 Definition bar limit
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

maxim2000
Ketchup Master

68 Posts

Posted - Sep 15 2009 :  05:13:20 AM  Show Profile  Reply with Quote
The text length of Definition bar is limited to 260 characters. But some DDK functions prototypes have more than 350 symbols (e.g. ZwCreateFile). So, I can't see them all in Definition bar and there is no mark/sign that more symbols available.
VS2005/VA1734

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Sep 15 2009 :  5:25:05 PM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=32305

Anyway, I am wondering why did you encounter this problem. Is this because your definition bar is wide enough to display more than 260 chars?
Go to Top of Page

maxim2000
Ketchup Master

68 Posts

Posted - Sep 16 2009 :  03:30:55 AM  Show Profile  Reply with Quote
My Definition bar width is about 80 characters, and I move the cursor to discover function arguments using Ctrl+arrows. I can use Alt-G, but usage of Definition bar is more handy and faster, because I see function arguments and my code at the same time. Otherwise (using Alt-G) I need to switch files very often.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Sep 16 2009 :  08:27:19 AM  Show Profile  Reply with Quote
Are you aware that you can press CTRL-SHIFT-SPACE when the caret is inside a function call to show the tooltip that shows the function parameters? VA will make the current parameter bold, making it easier to see what you are doing.

You might find this to be a helpful work around for now.

zen is the art of being at one with the two'ness
Go to Top of Page

maxim2000
Ketchup Master

68 Posts

Posted - Sep 16 2009 :  09:07:24 AM  Show Profile  Reply with Quote
Actually I wasn't familiar with this key combination, I knew "Ctrl+Alt+Space" only.
I tried it and found usable, however it has a couple of disadvantages.
It doesn't support "multiline functions" (args are on the different lines). (Is this a bug?)
And I can't surf a code and see the args at the same time.
Anyway, thank you for this combination.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Sep 16 2009 :  10:19:34 AM  Show Profile  Reply with Quote
Surfing the code, yes, this tooltip only shows you one function at a time, so I can see that it is not so useful.

Multi line functions should work correctly. One of my standard tests for the parameter information tooltips is the inline function:

	void BracketsInParameters(
		__in int nCount,
		__in_ecount_opt(nCount) const int *pHandles,
		__in bool fWaitAll,
		__in int dwMilliseconds,
		__in int dwWakeMask)	{ }

where each of the parameters is on a different line, but all parameters are shown correctly in the tooltip for me. The screen shot is VA 1735, VS2005:



Do you have an example where this fails for you?

zen is the art of being at one with the two'ness
Go to Top of Page

maxim2000
Ketchup Master

68 Posts

Posted - Sep 16 2009 :  11:13:50 AM  Show Profile  Reply with Quote
I meant the following:
BracketsInParameters(
  1,
  &handles,
  true,
  4,
  5);

tooltip disappears here after moving caret up or down. (fail situation)
But if I'm typing the tooltip doesn't disappear. (good news)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Sep 21 2009 :  5:00:12 PM  Show Profile  Reply with Quote
I have never come across this idea before, this is an interesting point. A practical concern is that Up and Down arrow keys are used to move through the overloads, changing the tooltip to show a different overload. Trying to make Up and Down do both is going to get confusing.

If you use Ctrl + Left and Right arrow or Home and End to move to the start and end of each line you can move to the next and previous line via a single left and right. Not quite so easy, but it might help a bit.

zen is the art of being at one with the two'ness
Go to Top of Page

maxim2000
Ketchup Master

68 Posts

Posted - Sep 23 2009 :  06:53:03 AM  Show Profile  Reply with Quote
Well, function overloads really make some problems. Could VA differentiate these two situations?
- No overloads. Up and Down don't cause the tooltip disappearing.
- Has overloads. Up and Down move through overloads, no multi line function detection.

Actually the low level DDK C-functions have no overloads and have lots of args (more than 10). So a function call statement is always multi line.

I don't know why, but from my experience Home+Left and End+Right cause tooltip disappearing.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - Sep 24 2009 :  11:24:01 AM  Show Profile  Reply with Quote
This is an interesting idea, I have put in a feature request to see what our developers make of it:

case=32634

As for Home+Left and End+Right, I saw a similar thing, but as soon as I used Left or Right on their own to move the caret one more character the tooltip tended to reappear. I never saw an exact pattern here, but it sounds like I was seeing the same thing you are seeing.

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