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
 Report value of enum in HCB
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Stephen
Tomato Guru

United Kingdom
781 Posts

Posted - Oct 26 2004 :  05:12:18 AM  Show Profile
When I hover over an enum in the source, a tooltip shows the numerical value of the enum. But in the HCB it doesn't, it just says "enum FOO".

1278, C++, VS.NET 2003.

Stephen Turner
ClickTracks http://www.clicktracks.com/
Winner: ClickZ's Best Web Analytics Tool 2003 & 2004

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Oct 27 2004 :  5:54:35 PM  Show Profile
using the C++ class:

class CMyClass
{
private:
    enum counting { ONE = 1, TWO = 2, THREE = 3, FOUR = 4 };
    int nCount;
public:
    void __stdcall increaseCount( );
    void testParam(bool arg1=true);
};


i am getting:



not a very complex example, but it is working here. using .NET 2003 and VAX 1278

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

Stephen
Tomato Guru

United Kingdom
781 Posts

Posted - Oct 29 2004 :  08:07:07 AM  Show Profile
Well, you made it too easy for VAX! Try
enum counting { ONE = 1, TWO, THREE, FOUR };

Stephen Turner
ClickTracks http://www.clicktracks.com/
Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Nov 03 2004 :  5:59:03 PM  Show Profile
i have changed the class enum to your version, and using the C++ code:

    CMyClass foo;
    int nTest = CMyClass::FOUR;
    nTest = CMyClass::ONE;
    nTest += CMyClass::TWO;
    nTest += CMyClass::THREE;

when i hover over these enum's in the editor i only see the value for CMyClass::ONE. no value is ever given for the other three.

i have tried turning on:
VAX options -> text editor -> listboxes -> get content from default intellisense

and then restarting the IDE, but this hasn't made any difference. i cannot get a tooltip, or any other info showing me the values of the other three enums while editing the code. *wild guess* are you looking at tooltips while debugging your code?

all of this is with .NET 2003 and VAX 1282

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

Stephen
Tomato Guru

United Kingdom
781 Posts

Posted - Nov 04 2004 :  04:23:09 AM  Show Profile
Hmmm, I suppose I may have been. In which case, this is a feature request for the tooltips and the HCB. :-)

Stephen Turner
ClickTracks http://www.clicktracks.com/
Winner: ClickZ's Best Web Analytics Tool 2003 & 2004
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Nov 06 2004 :  2:23:22 PM  Show Profile
case=427

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

Cuc
Junior Member

11 Posts

Posted - Feb 02 2005 :  04:20:15 AM  Show Profile
A small comment on this issue: when VAX is disabled Bill shows all information about an enum. In feline's example, modified by Stephen with auto counting enum, it shows about FOUR:
enum CMyClass::counting::FOUR = 4
I think it is worthy to be followed. When debugging both VAX and Bill shows the correct value of an enum, but without the enum type:
CMyClass::FOUR = 4
I don't know why Bill became so stingy.
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