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
 [1819]Snippet suggest doesn't have focus in C#
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

horeaper
Senior Member

Singapore
49 Posts

Posted - Apr 20 2010 :  03:21:43 AM  Show Profile  Reply with Quote
(Applies to VS2010RTM C# environment only, everything is fine under C++)

The suggestion listbox didn't got focus when showing VA Snippet, I can't use Enter to insert snippets. I tried the way mentioned in TOPIC_ID=5495, but can't find "ListboxSelectionStyle" in the registry. Tried to add it manually, didn't work.

Strangely, I can use Tab key to insert snippets, which I didn't check it in the Listboxes options.

If the suggestion isn't a VA snippet, everything is fine.



VA_X.dll file version 10.6.1819.0 built 2010.04.06
DevEnv.exe version 10.0.30319.1
msenv.dll version 10.0.30319.1
Comctl32.dll version 6.10.6002.18005
Windows Vista 6.0 Build 6002 Service Pack 2
2 processors (x86)

Platform: Custom
Stable Includes:
D:\\Microsoft DirectX SDK (August 2009)\\Include;
C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0A\\Include;
D:\\Microsoft Visual Studio 10.0\\VC\\include;
D:\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\include;

Other Includes:

Stable Source Directories:
D:\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\mfc;
D:\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\mfcm;
D:\\Microsoft Visual Studio 10.0\\VC\\atlmfc\\src\\atl;
D:\\Microsoft Visual Studio 10.0\\VC\\crt\\src;


My life for Aiur!!!

Edited by - horeaper on Apr 20 2010 04:20:11 AM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Apr 20 2010 :  04:06:12 AM  Show Profile  Reply with Quote
Can you please try to create a new c# windows forms application to see if you can reproduce the problem there?

I just created a new project, opened form1.cs and typed f under the line

InitializeComponent();

and I got a listbox with focus. Also, tried this:

InitializeComponent();
int Apple;
a

and I got a listbox with Apple (after a) and I was able to accept it via enter.

What do you see if you do the same?
Go to Top of Page

horeaper
Senior Member

Singapore
49 Posts

Posted - Apr 20 2010 :  04:35:47 AM  Show Profile  Reply with Quote
I updated the post, this problem only happens when snippet is showing.

for example, I have "pu" mapped to "public " in snippet.
If I typed this:

class BloomEffect
{
p

A list box will show, focused, with an entry which looks like "{} public" get selected (acceptable via Enter). But when I typed an 'u', this entry still get selected, but the list box will lost focus (no longer acceptable via Enter, but acceptable via Tab).

Another example: I have "re" mapped to "return ", type following code:

int rightToken;
r

A listbox with rightToken will show and got focus correctly. Then I type 'e', "{} return" will shown and the listbox lost focus.

(I have a lot of snippets, so I got the wrong impression on the first view, sorry!)

My life for Aiur!!!
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Apr 22 2010 :  3:37:54 PM  Show Profile  Reply with Quote
I was able to reproduce the problem, thank you for the clear description.

case=43220
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - May 10 2010 :  9:06:03 PM  Show Profile  Reply with Quote
case=43220 is fixed in build 1823

Whole Tomato Software, Inc.
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