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
 Feature Requests
 Possilbe new feature
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pwaugh
Ketchup Master

USA
68 Posts

Posted - Jan 18 2007 :  11:30:04 PM  Show Profile  Reply with Quote
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

Programming in C++

VA_X.dll 10.4.1626.0
Built 2008.01.17

(1-user license) Support ends 2009.01.29

DevEnv.exe version 9.0.21022.8
msenv.dll version 9.0.21022.8
Comctl32.dll version 6.0.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
Single processor
Platform: Win32

sl@sh
Tomato Guru

Switzerland
204 Posts

Posted - Jan 19 2007 :  03:29:35 AM  Show Profile  Reply with Quote
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?
Go to Top of Page

pwaugh
Ketchup Master

USA
68 Posts

Posted - Jan 19 2007 :  04:01:04 AM  Show Profile  Reply with Quote
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.

Programming in C++

VA_X.dll 10.4.1626.0
Built 2008.01.17

(1-user license) Support ends 2009.01.29

DevEnv.exe version 9.0.21022.8
msenv.dll version 9.0.21022.8
Comctl32.dll version 6.0.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
Single processor
Platform: Win32
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18943 Posts

Posted - Jan 19 2007 :  07:21:20 AM  Show Profile  Reply with Quote
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.

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

pwaugh
Ketchup Master

USA
68 Posts

Posted - Jan 19 2007 :  09:18:57 AM  Show Profile  Reply with Quote
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.

Programming in C++

VA_X.dll 10.4.1626.0
Built 2008.01.17

(1-user license) Support ends 2009.01.29

DevEnv.exe version 9.0.21022.8
msenv.dll version 9.0.21022.8
Comctl32.dll version 6.0.2900.2982
Windows XP 5.1 Build 2600 Service Pack 2
Single processor
Platform: Win32
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