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
 1530: Syntax coloring in listboxes
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 24 2006 :  4:30:13 PM  Show Profile  Reply with Quote
When I turn on syntax coloring in listboxes (great feature!) everything is colored as I set, except the non-inherited member functions.

They're bold and black! (colored well in the code editor)

Maybe only a mistype in code? :)

support
Whole Tomato Software

5566 Posts

Posted - Jul 24 2006 :  5:58:39 PM  Show Profile  Reply with Quote
Bold implies non-inherited. See:

http://www.wholetomato.com/products/features/members.html?more=yes&goto=boldNonInherited

If other symbols are colored and only the bold ones are black, something might be amiss. Is it the case that ALL bold are black? Only bold are black? Other clues?

What programming language and IDE?
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 24 2006 :  7:54:18 PM  Show Profile  Reply with Quote
VS2005, Unmanaged C++

>Is it the case that ALL bold are black?

No. All non-inherited class member functions.

So the inherited functions are colored well.
The non-inherited variables are colored well.
Etc...

Summary: bold functions are black.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Jul 25 2006 :  7:09:44 PM  Show Profile  Reply with Quote
i can get something similar to happen here. hunting up and down the list some member functions are black, even if they are not bold. so far this only seems to be effecting member functions.

how similar is this to your experience?
how common is this problem for you? all of the time? just occasionally?
are you seeing any bold items that are not black? what about member variables?

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

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 26 2006 :  05:44:08 AM  Show Profile  Reply with Quote
Yes, only member functions are black. And for me only non-inherited (bold) functions. Others are colored well. (Variables, classes, enums, etc.)

It is happening always, but I have tested in a very few case.
So, maybe you're right and all member function color can be buggy sometimes.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Jul 26 2006 :  7:49:17 PM  Show Profile  Reply with Quote
i see this some of the time, but not that often. if you are seeing every time then you have a more stable effect than me, which should be helpful, if i can make it go wrong all the time for me.

do you have:
VA Options -> Text Editor -> listboxes -> get content from default intellisense

turned on or off?

do you see this colouring effect in multiple projects?

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

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jul 30 2006 :  7:14:03 PM  Show Profile  Reply with Quote
get content from default intellisense is turned OFF

I am working in one project currently, but what can be different from your settings is that I am using custom Variables Color, Preprocessor macros Color and Methods Color in "Fonts and Colors", under the "Enhance Syntax Coloring" checkbox.

Custom means I invoked the color dialog by right clicking at a white custom-color box.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Jul 31 2006 :  5:30:13 PM  Show Profile  Reply with Quote
changing the colours should not matter. do you have time to try creating a default project, and do a quick test to see if you see the same problem there?

i have never been able to make this happen on demand, but i know it can happen, since it happens to me occasionally. if this is consistent for you then it would be useful if we could work out why.

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

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 03 2006 :  3:28:01 PM  Show Profile  Reply with Quote
I found a class when the coloring is OK. So, as you sad, this isn't happening allways...

But it is enough if we can present a class where the error can be reproduced, isn't it?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Aug 03 2006 :  7:16:07 PM  Show Profile  Reply with Quote
if you have a test project, or even a small piece of sample code that makes this go wrong on demand then that would be ideal

so far i get it myself, but so far i have not found any pattern to this effect. i need to pin down a reliable test case before putting in a bug report, otherwise the developers will have nothing to study. plus if i cannot make it go wrong on demand, how can i tell if it has been fixed?

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

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 06 2006 :  2:50:34 PM  Show Profile  Reply with Quote
OK, I can easily reproduce the problem.

VS2005, VAX 1530.

The steps are:
1. Create a new Win32 Project.

2. Go to the end of the file and type this:
class cTest {
void MyFunction();
int MyVariable;
};

3. Type this to the begining of WinMain function:
cTest test;
test.

...and when you press the dot, the completion listbox appears:
MyFunction
MyVariable

Here "MyFunction" is Bold and Black, but I have defined functions to be brown.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Aug 06 2006 :  3:35:02 PM  Show Profile  Reply with Quote
*sigh*

i have just tried this, and this is what i see:



the orange is the correct colour, since this is the colour i have functions set to.

i placed the class at the bottom of the main header file. i called the test project "win32_black" so the class is at the bottom of "win32_black.h"

if you restart your IDE is the function still black? is this always black if you use CTRL-SPACE to produce the list box more than once?

zen is the art of being at one with the two'ness

Edited by - feline on Aug 06 2006 3:35:36 PM
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Aug 07 2006 :  12:37:48 PM  Show Profile  Reply with Quote
I placed the class definition into the main.cpp file.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18751 Posts

Posted - Aug 08 2006 :  6:57:12 PM  Show Profile  Reply with Quote
got it! thank you

it took a certain amount of fiddling, but i can now reproduce this effect on demand. for me once i restart the IDE the problem goes away, and the function is back to being coloured correctly, but by commenting out and then uncommenting the code after the IDE restart i can make it happen again.

case=2001

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

support
Whole Tomato Software

5566 Posts

Posted - Aug 27 2006 :  7:15:17 PM  Show Profile  Reply with Quote
Fixed in build 1533.
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