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
 1287: Suggestions box complets on wrong entry on (
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

PatLuja
Tomato Guru

Belgium
416 Posts

Posted - Nov 22 2004 :  09:55:35 AM  Show Profile
Hello all,

At my company, we use third party software where some class defines "long GetID() const" as well as "virtual something* GetIdGenerator()". When I type "x->GetId(" (watch the capitals) I'll end up with "x->GetIdGenerator()" and not with "x->GetID()".

Remark: In the VA X Settings, Text Editor/Suggestions, I've enabled "Display suggestion list...", "Tab" and "Enter", but I've disabled "Any character not...".

So I typed a valid symbol (when I don't mind the capital), and when typing "(", the next one will be pasted. The one that is pasted, is selected as soon as I type "d". Typing "x->GetID(" (and also "x->gid(") will result in selecting the one that I mean.

Could you please look into this matter?

With kind regards,
Patrick Luja

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Nov 22 2004 :  6:15:27 PM  Show Profile
i am able to reproduce this using:
class feline_test
{
public:
    feline_test();
    ~feline_test();
    operator unsigned int();
    struct tm m_stTime;

    long GetID() const                { return 3; }
    virtual char *GetIdGenerator()    { return "fred"; }

protected:
    int m_nCount;
};

and:
static int testFunc(void *a, void *b)
{
    feline_test *foo;
    foo->GetId|
}

which gives me:



the problem is that the options you are talking about seem to be for suggestion listboxes, while i am getting this effect on a completion listbox.

i will ask Support, and see what they say.

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

PatLuja
Tomato Guru

Belgium
416 Posts

Posted - Nov 23 2004 :  03:06:29 AM  Show Profile
Hello feline and all others,

I must admit, the listbox I saw was a completion listbox and not a suggestion listbox, since the listbox I saw didn't contain the tomatoes. That's probably why the settings of the suggestion listbox hadn't "that much" effect.

Since this effect is seen in the completion listbox, is it still a problem of Visual Assist, then?

I know that according to the ASCII table the 'D' comes before the 'd'. So in one way the completion listbox is correct (see the difference in typing "GetID" and "GetId"). Although I think a case insensitive approach would be better here, the more there I typed a valid symbol fully.

I hope the fine team of Whole Tomato can take a look at this. Thank you.

With kind regards,
Patrick Luja
Go to Top of Page

Baga
Tomato Guru

122 Posts

Posted - Nov 24 2004 :  07:52:45 AM  Show Profile
I think that hiliting of GetIdGenerator() and not GetID() is correct, because they both are valid, and first one is better match because of matching case.
But automatic repace is still wrong...
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000