Author |
Topic |
|
CanopenR
Junior Member
USA
19 Posts |
Posted - Nov 10 2005 : 5:53:15 PM
|
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
19019 Posts |
Posted - Nov 10 2005 : 7:22:50 PM
|
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 |
|
|
CanopenR
Junior Member
USA
19 Posts |
Posted - Nov 11 2005 : 08:14:20 AM
|
It is a emun, but it only change colors when i change the variable color. |
________ ___/___/ __/___ _/___/anopenR |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Nov 11 2005 : 7:21:06 PM
|
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. |
|
|
CanopenR
Junior Member
USA
19 Posts |
Posted - Nov 14 2005 : 9:30:53 PM
|
I'm missing something.... So i can't have adiffernet color for that enum?
|
________ ___/___/ __/___ _/___/anopenR |
|
|
feline
Whole Tomato Software
United Kingdom
19019 Posts |
Posted - Nov 15 2005 : 7:00:03 PM
|
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 |
|
|
CanopenR
Junior Member
USA
19 Posts |
Posted - Nov 16 2005 : 09:04:28 AM
|
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 |
|
|
feline
Whole Tomato Software
United Kingdom
19019 Posts |
Posted - Nov 16 2005 : 6:03:08 PM
|
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 |
|
|
CanopenR
Junior Member
USA
19 Posts |
Posted - Nov 17 2005 : 09:04:41 AM
|
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 |
|
|
feline
Whole Tomato Software
United Kingdom
19019 Posts |
Posted - Nov 17 2005 : 5:34:45 PM
|
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 |
|
|
CanopenR
Junior Member
USA
19 Posts |
Posted - Nov 18 2005 : 2:00:56 PM
|
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 |
|
|
feline
Whole Tomato Software
United Kingdom
19019 Posts |
Posted - Nov 19 2005 : 4:10:50 PM
|
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 |
|
|
CanopenR
Junior Member
USA
19 Posts |
Posted - Nov 21 2005 : 08:36:42 AM
|
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 |
|
|
feline
Whole Tomato Software
United Kingdom
19019 Posts |
Posted - Nov 21 2005 : 5:05:55 PM
|
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 |
|
|
feline
Whole Tomato Software
United Kingdom
19019 Posts |
Posted - Nov 21 2005 : 6:29:50 PM
|
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 |
|
|
|
Topic |
|