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
 Code change.
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

CanopenR
Junior Member

USA
19 Posts

Posted - Nov 10 2005 :  5:53:15 PM  Show Profile
I was wondering if there is a way to get the info after my :: to be a different color?
Sample
es =pAppTbl->getAt(pAppName,pAppTblRec,AcDb::kForWrite))

would like to see:
es =pAppTbl->getAt(pAppName,pAppTblRec,AcDb::kForWrite))



________
___/___/
__/___
_/___/anopenR

Edited by - CanopenR on Nov 10 2005 5:53:43 PM

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Nov 10 2005 :  7:22:50 PM  Show Profile
what is kForWrite ? if it is an enum value then you can already get VA to colour it in a different colour, the enum colour.

VA options -> environment -> fonts and colours

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

CanopenR
Junior Member

USA
19 Posts

Posted - Nov 11 2005 :  08:14:20 AM  Show Profile
It is a emun, but it only change colors when i change the variable color.

________
___/___/
__/___
_/___/anopenR
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Nov 11 2005 :  7:21:06 PM  Show Profile
Your observation is correct. VA X can enhance coloring in this case when you apply a color other than black to variables within the IDE.
Go to Top of Page

CanopenR
Junior Member

USA
19 Posts

Posted - Nov 14 2005 :  9:30:53 PM  Show Profile
I'm missing something.... So i can't have adiffernet color for that enum?


________
___/___/
__/___
_/___/anopenR
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Nov 15 2005 :  7:00:03 PM  Show Profile
in VA options -> Environment -> Fonts and Colors
i have variables set to "Gray" and Preprocessor Macros set to "Purple", which also covers enums, making them Purple as well.

certainly colouring of enum's works for me.

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

CanopenR
Junior Member

USA
19 Posts

Posted - Nov 16 2005 :  09:04:28 AM  Show Profile
I use black instead on gray, but the othere is purple and i am still getting black for both.

I have noticed that not all are black. The "cast" in this one is red on my PC..

pAcOle = AcDbOle2Frame::cast(pAcadEnt);


________
___/___/
__/___
_/___/anopenR
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Nov 16 2005 :  6:03:08 PM  Show Profile
assuming you are using C++ can you paste the following line of code into a cpp file and tell me how it is coloured after VA has parsed it:

enum FOOD_TYPES { CHOCOLATE, ORANGES, APPLES };

i need to know what the code you are posting about is, otherwise i cannot really comment.

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

CanopenR
Junior Member

USA
19 Posts

Posted - Nov 17 2005 :  09:04:41 AM  Show Profile
np.. this what is get..

enum FOOD_TYPES { CHOCOLATE, ORANGES, APPLES };

CString stest;

stest = FOOD_TYPES::CHOCOLATE;

This seem to give me what i want. So the problem must be my setup? The "AcDb::kForWrite" is from the Autodesk ObjectARX Library add on. I have included the inc & lib folder in the VC & VA Project search paths. The library is free and can be downloaded at "http://usa.autodesk.com/adsk/servlet/item?siteID=123112&id=785550". I'm current using the 2005 version.

________
___/___/
__/___
_/___/anopenR
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Nov 17 2005 :  5:34:45 PM  Show Profile
for version 2005 have you downloaded:

Download ObjectARX Core Files (5.73 MB)

or

Download Complete ObjectARX SDK (16.6 MB)

if you use VA's alt-g on one of the unknown enum items what happens? what about the tooltip for the enum? i am wondering if VA is picking it up at all.

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

CanopenR
Junior Member

USA
19 Posts

Posted - Nov 18 2005 :  2:00:56 PM  Show Profile
The only differents is the documents and samlpes, but i DL the Full SDK.

A alt-g give me a dialog:
acdb.h:74 enum openmode kForRead=0
acdb.h:73 enum openmode kForRead=0
acdb.h:72 enum openmode kForRead=0

when I select one it takes me to the acdb.h file at the kForRead which is some thing like this:
struct AcDb
{
enum OpenMode { kForRead = 0,
kForWrite = 1,
kForNotify = 2 };


enum CoordAxis { kX = 0,
kY = 1,
kZ = 2
...};




________
___/___/
__/___
_/___/anopenR
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Nov 19 2005 :  4:10:50 PM  Show Profile
so the enum's are not correctly coloured in the autocad header file either? having downloaded the 2005 SDK file and installed it, when i open "acdb.h" in VS2003 with VA 1432 i am seeing the following for line 72



which IDE and version of VA are you using? i am not seeing it mentioned so far in this thread.

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

CanopenR
Junior Member

USA
19 Posts

Posted - Nov 21 2005 :  08:36:42 AM  Show Profile
I am using Stuido 2002 7.09955 and VA 1430. It's required to use the 2005 SDK..

I do not get what you get.. the kForRead adn so on are not colored..


________
___/___/
__/___
_/___/anopenR
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Nov 21 2005 :  5:05:55 PM  Show Profile
i got your email and have inserted the registry keys, but they are not having any effect on the colouring in VS 2003. i suspect VA is maintaining separate colour settings for each IDE.

instead of playing around with the registry keys i will install VS 2002 on a test machine and see what happens then.

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

Edited by - feline on Nov 21 2005 5:11:24 PM
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18750 Posts

Posted - Nov 21 2005 :  6:29:50 PM  Show Profile
right, i have a VS 2002 test system up and running, with the bulk of your registry keys inserted into the registry. i still cannot reproduce the colouring problem you are reporting with VA 1432.

i have replied to your email, enabling you to email me the full registry export from your machine.

do you have any other plugin's installed? any other odd settings?

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