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
 Feature Requests
 Offering only valid elements
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

RFOG
Senior Member

Spain
31 Posts

Posted - Apr 01 2009 :  12:55:12 PM  Show Profile  Reply with Quote
Perhaps it is a nonsense, but I think it could be a great implementation.

I cannot put my idea in English, then I'm going to explain it by example:

Suppose next code:

CString hello="Hello";
int iHello=3;
double dHello=4.5;
double d=sqrt(_

Current VA offers all the vars and some other stuff, but it can see the signature of squrt and find that it expects a double, and perhaps VA could offer first the dHello and select it as default.

This can be done in most parts of VA. Other sample:

CTreeCtrl tree;
...
CString s=tree._

Then, instead of opening all methods of CTreeControl, VA could open only those methods that returned CString, CString & and variations of TCHAR*...

I'm not talking about show only those methos, but order them dynamically and offer them first.

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Apr 09 2009 :  4:33:29 PM  Show Profile  Reply with Quote
I see what you are asking for, I am wondering what VA should try to do here.

We have two types of listbox, suggestion listboxes are VA guessing, while member / completion listboxes list "everything".

The first example, typing a parameter for sqrt() you will probably see a suggestion listbox. Trying to filter the guesses better is reasonable.

The second example, you should see all members of CTreeCtrl. You can filter these listboxes to hide private members, etc, but you cannot currently filter them on return type:

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

Reordering the list to show some first, based on return type, is going to clash with:

VA Options -> Advanced -> Listboxes -> List non-inherited entries first

Thinking about this, if we listed some members of CTreeCtrl first we would have to show them in bold, or italic, somehow make them stand out, so you can see we have done something clever.


I have put in two cases for this, to see what our developers think of this. Suggestion listboxes is:

case=25846

Member listboxes is:

case=25847

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