Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 1624: Definition bar & enumerations

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
MrDoomMaster Posted - Dec 18 2007 : 5:37:04 PM
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.
2   L A T E S T    R E P L I E S    (Newest First)
MrDoomMaster Posted - Dec 19 2007 : 09:07:03 AM
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 :)
feline Posted - Dec 19 2007 : 08:27:16 AM
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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000