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
 1624: Definition bar & enumerations
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MrDoomMaster
Tomato Guru

251 Posts

Posted - Dec 18 2007 :  5:37:04 PM  Show Profile  Reply with Quote
IDE: Visual Studio 2005

Hi,

Consider the following enumeration:


/// Various camera actions that may be performed.
/// These actions are usually a result of input events.
enum CameraAction
{
	  MOVE_FORWARD		= 0//= 1<<0
	, MOVE_BACKWARD		//= 1<<1
	, MOVE_LEFT			//= 1<<2
	, MOVE_RIGHT		//= 1<<3
	, MOVE_UP			//= 1<<4
	, MOVE_DOWN			//= 1<<5
	, ROTATE_RIGHT
	, ROTATE_LEFT
	, ROTATE_UP
	, ROTATE_DOWN
	, ROLL_LEFT
	, ROLL_RIGHT
	, INCREASE_ACCEL
	, DECREASE_ACCEL
	, CAMERA_ROTATION
	, AUTO_MOVE
	///////////////////////////////////
	, NUM_CAMERAACTIONS
	, CAMERAACTION_NONE	//= 0
};


Make a special note at the comments to the right of the top-most enumerated members. Place your caret within any enumeration member in this enumeration and look at the Definition bar at the top (next to the context bar). Notice how it shows the contents of the comments in the field. These should not appear.

Edited by - MrDoomMaster on Dec 18 2007 5:37:42 PM

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - Dec 19 2007 :  08:27:16 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=10731

As you may already know if you move the commas to the ends of the enum items, rather than the beginning, then this problem goes away.

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

MrDoomMaster
Tomato Guru

251 Posts

Posted - Dec 19 2007 :  09:07:03 AM  Show Profile  Reply with Quote
quote:
Originally posted by feline

I am seeing the same effect here. Thank you for the clear description.

case=10731

As you may already know if you move the commas to the ends of the enum items, rather than the beginning, then this problem goes away.


Didn't know that, but thank you. However it's not my style :)
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