Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Useless tooltip for constructors

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
znakeeye Posted - Dec 16 2008 : 07:50:05 AM
CMyClass myClass(0, 1, false);

If I hover "myClass" I expect to see the declaration of the constructor (functions work that way):

Tooltip should be: CMyClass(int index, int subIndex, bool readOnly)
3   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Jan 01 2009 : 7:32:43 PM
Apologies for the delay in getting back to you about this.

I have been thinking about your idea: the basic difference between functions and your example is that you presented a declaration of a local variable instead of a constructor calling. Ok, it is a special case because the constructor gets invoked when the flow gets into the scope, but I think this is basically a declaration rather than a function calling.

Despite this I would put in a feature request, but I run into problems. Let's see your example with the class declaration:

class CMyClass
{
    CMyClass(int index, int subIndex, bool readOnly);
    void DoIt();
};

class COtherClass
{
    void Member()
    {
        CMyClass myClass(0, 1, false);

        // lots of code here...

        myClass.DoIt();
    }
};


myClass in the first and in the last line of "Member" function treated as the same way, so you will see the same tooltip and definition field on both lines.

The first question is it logical? I think it is.
My second question is about the content of the tooltip. Tooltips and definition fields are basically the same, but in this case definition field is smarter: I see this:

CMyClass myClass(0, 1, false)

over myClass in the last line of the "Method", which is good, because you see the whole definition with the incoming parameters.

This is the same as when you define a variable, for example

int apple=5;

and later you can see the type and the default value of apple without the need of Alt+G.

I think tooltips shouldn't behave differently than context and definition fields. That may would confuse users and I think they expect for similar functionality.

I hope this makes sense.
znakeeye Posted - Dec 17 2008 : 04:42:47 AM
I thought VAX wanted to improve IntelliSense :P

I think this would be a good improvement. If you hover "CMyClass" you get the old tooltip, but "myClass" would yield the actual constructor as tooltip. Yes, it makes perfectly sense!
I blame Microsoft!
accord Posted - Dec 16 2008 : 3:58:33 PM
Visual Assist shows the type of the object in this case. This is consistent with default intellisense.
You can view the parameters by pressing shift+ctrl+space in between parenthesis.

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