Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Possilbe new feature

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
pwaugh Posted - Jan 18 2007 : 11:30:04 PM
While this might not be killer useful for everyone, it would sure save me time as I often have to do this.

I often have to enter a define for a resource like this:

#define BMP_ANNUNCIATOR_BATTERYHOT_OFF 0x01FE // 516

Unfortunately, it would be more ideal to enter them in decimal (as there are certain key value ranges), but the existing stuff needs them in hex.

What would be cool is if I could enter the decimal, right click and convert it to hex, octal, or bin maybe. =)

Instead, I have to break out the calculator for each conversion.

Patrick
4   L A T E S T    R E P L I E S    (Newest First)
pwaugh Posted - Jan 19 2007 : 09:18:57 AM
quote:
Originally posted by feline

my initial reaction is that this is outside VA's area, and to wonder if it is something that can be done with an IDE macro. Have a look at this thread:

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=4662



Thanks, I'll have a look.

After thinking a bit more about it, I realize I could probably use a nested macro. I just like to reduce complexity.
feline Posted - Jan 19 2007 : 07:21:20 AM
my initial reaction is that this is outside VA's area, and to wonder if it is something that can be done with an IDE macro. Have a look at this thread:

http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=4662

I bookmarked this, and still want to go back and study it, since manipulating numbers in code does seem like a very useful idea, and one I used quite a lot in VIM.

Without trying I am not sure how easily the macro could be adapted, but it should provide the basic building blocks for this.
pwaugh Posted - Jan 19 2007 : 04:01:04 AM
quote:
Originally posted by sl@sh

Just as an aside: 0x01FE equals 510, not 516 . Maybe it would be a good feature for you then!



Yeah, the line was pieced together, and not from actual code. I just inserted the 0x01FE as it came to mind.
sl@sh Posted - Jan 19 2007 : 03:29:35 AM
Just as an aside: 0x01FE equals 510, not 516 . Maybe it would be a good feature for you then!

Apart from that, even though it's quite some time ago I had to deal with hex (or binary) numbers, I can see the merit. Maybe this could be implemented as a refactor function?

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