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
 1284: Coloring broken
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - Nov 08 2004 :  4:56:58 PM  Show Profile
Suddenly in 1284 on .NET 2003 on WinXP SP2, coloring is hosed... I've emailed a JPG to support...

Still broken after a reboot...

[Added image. -- support]

Edited by - LarryLeonard on Nov 09 2004 11:47:56 AM

draza
Senior Member

France
48 Posts

Posted - Nov 09 2004 :  02:15:53 AM  Show Profile
Let me just add that though not completely wrong, I can see some C# coloring (seemingly by random cause) broken.

Some examples:
using System.Collections;
Collections is colored as member field (variable) and not as a namespace/type name (the same color is used for both type names and namespaces normally).
String s, p;
// ...
p = s.Substring(0,3);
Substring is colored as member field (variable) and not as a method.
MyClass m;
m.Stop();
Stop is colored as type name/namespace instead of as a method.

Additionally, VA has problems with context of names. I have a property called Buffer, but there is a type name Buffer in the BCL and for some reason VA prefers it when coloring this property even though based on the context - let's say I type myObject.Buffer - it's "obvious" that Buffer is a not a type from the BCL but my own property.

One more thing - tooltip coloring seems to be seriously broken, random constructs being colored wrong. Note all this applies to C# only.

This problem when solved will be simple
Go to Top of Page

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - Nov 09 2004 :  3:39:04 PM  Show Profile
Oh, okay, it's just broken for me and my black background. This is about the fifth time this has happenned... maybe there should be a test case for 'does it look more or less right with black background'?

Oh well, I'm rolling back to 1283 for now...
Go to Top of Page

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - Nov 09 2004 :  3:45:50 PM  Show Profile
Oh great. I rolled back to 1283, and the coloring is still broken. For all workspaces, even tiny test ones.

Now what?
Go to Top of Page

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - Nov 09 2004 :  4:00:18 PM  Show Profile
Ok, I've uninstalled, and re-installed, but I don't have my key on me at the moment, so I guess I've wasted enough time on this for today...

Edited by - LarryLeonard on Nov 09 2004 4:04:50 PM
Go to Top of Page

PatLuja
Tomato Guru

Belgium
416 Posts

Posted - Nov 10 2004 :  03:27:36 AM  Show Profile
Hello Larry,

I'm using a white background (from the default settings) with VA X build 1282 and I can see this effect also.

Often seen at names starting with "AFX_" (as you already mentioned).
So you're not alone, out there...

With kind regards,
Patrick Luja
Go to Top of Page

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - Nov 10 2004 :  09:25:43 AM  Show Profile
Now that I've completely uninstalled, cleaned my Registry, and
re-installed, 1283 now works correctly again. I think I'll stick
with 1283 for now.

Wait - you're seeing this in 1282? Well, I guess you can do what I
did - just remember to save your template files and user dictionary
file, and write down all your VAX Options settings... :)

Edited by - LarryLeonard on Nov 10 2004 10:50:16 AM
Go to Top of Page

Old as dirt
Tomato Guru

USA
246 Posts

Posted - Nov 10 2004 :  1:40:25 PM  Show Profile
Larry,
What do you do to clean your registry? I wonder if doing that will clear up some of my problems? Also, is completly uninstalling doing more than using the control panel to uninstall?
Thanks

Ken
Go to Top of Page

LarryLeonard
Tomato Guru

USA
1041 Posts

Posted - Nov 10 2004 :  3:07:08 PM  Show Profile
To clean the Registy, I use the extremely high-tech approach of
searching for the word 'tomato', and deleting anything I find.
This method has nothing to recommend it, except that it worked for me.

No, 'completely uninstalling' is the same as 'uninstalling', just
with an extra word added. Looks like it's time for me to re-read my
Strunk & White again!
Go to Top of Page

PatLuja
Tomato Guru

Belgium
416 Posts

Posted - Nov 11 2004 :  05:27:29 AM  Show Profile
Hello all,

Today I've seen the following. I have code like:
CStatic label;
DWORD style = WS_VISIBLE | WS_CHILD | SS_SUNKEN;
CRect rect(0, 0, 1, 1);
if (!label.Create("", style, rect, this, IDC_STATIC)) {
  // bla bla
}
// IDC_STATIC is declared in resource.h
Hence IDC_STATIC: IDC isn't coloured. Now watch what happend when I enter (UINT) in front of IDC_STATIC:
if (!label.Create("", style, rect, this, (UINT) IDC_STATIC)) {
UINT isn't italic and isn't coloured, instead of IDC.

I hope this reveals a clue about this bug.

With kind regards,
Patrick Luja
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19014 Posts

Posted - Nov 11 2004 :  5:09:11 PM  Show Profile
i get the same effect with the code:

static void test_colouring()
{
    Create(0, (UINT)IDC_STATIC);
}


which i produced by taking your example, and simplifying it right down. it is always good to have a working example of these sort of things

case=445

zen is the art of being at one with the two'ness
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