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
 Guessing overloads
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Cezariusz
Tomato Guru

Poland
244 Posts

Posted - Apr 07 2004 :  05:31:26 AM  Show Profile
It would be nice if VA X tried to guess the correct overload when showing parameter infomation. It already knows how many parameters has the funcion, as it bolds the current one, so at least select an overload with enough parameters.
For example if I type:

	CString strDemo;
	strDemo.Mid(1)

it's OK to show the first overload, but as soon as I type a comma it should jump to the first overload with at least 2 parameters.
Same with calling parameter information with Ctrl+Shift+Space - it's a bit annoying when the cursor is at the second parameter and the param info shows an overload with one parameter.

Of course it would be even better if VA X checked the parameter types and tried to select the most matching overload (even if ignoring any implicit conversions), for example:

	CField::SetValue(int nValue);
	CField::SetValue(const CString& strValue);
	int nVal;
	CString strVal;
	CField field;
	field.SetValue(nVal);    // show the first overload
	field.SetValue(strVal);  // show the second overload
	field.SetValue("test");  // be very smart and show the second overload

Cezariusz Marek
https://midicat.net/
  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