### Author Topic: Calculator  (Read 1629 times)

#### jporkkahtc

• Senior Community Member
• Posts: 1901
• Hero Points: 184
• Text
##### Calculator
« on: August 05, 2016, 08:00:13 pm »
I like the improvements :-)

Quick question: When I type something like
123123123+123123123=
The results are placed on the same line, then the next line as well.
246246246|

If I want to make an unrelated calculation, how to I clear the result from the current line?
Without having to hit BACKSPACE a bunch of times?

Seems like <DEL> or something should do that.

#1 Can it be made resizable?
Even if not wider, at least taller so we can expand the history area?
Or, remove the data-entry buttons -- I'm always going to use the real keyboard for that stuff.

#2: Instead of having the little menu to select the base for the 2nd little value window, why not have 4 value windows so it can show dec, hex, bin and octal always?

4: Enter
123+123=
Giving you:
123+123= 246 = 0xF6 (Hex)
246
Now, cursor up.
Backspace over the "=".
123+123| 246 = 0xF6 (Hex)
So the cursor is just to the right of the 2nd "123"
Type = again.
Now the display is confused:
123+123 246 = 492 = 0x1EC (Hex)
492
246

Typing to the left of the = seems to be what was intended.

#### Clark

• SlickEdit Team Member
• Senior Community Member
• Posts: 5149
• Hero Points: 425
##### Re: Calculator
« Reply #1 on: August 05, 2016, 11:17:28 pm »
Quick question: When I type something like
123123123+123123123=
The results are placed on the same line, then the next line as well.
246246246|

If I want to make an unrelated calculation, how to I clear the result from the current line?
Without having to hit BACKSPACE a bunch of times?

Seems like <DEL> or something should do that

I'm a little confused on this one. If your cursor is somewhere in the text "123123123+123123123" and you start typing, everything after the '=' is automatically deleted.

1#  Wanted to do this. Not enough time right now.

2# Thought about this one. Might have to make the dialog bigger and well...it's not resizable yet

4# Looks like it's working as designed. Where the cursor is when you type '=' doesn't matter. Just like hitting the '=' button.

123+123 246=

The not so obvious part here is that '+' is assumed if you write "1 2 3=". That is as designed.

#### jporkkahtc

• Senior Community Member
• Posts: 1901
• Hero Points: 184
• Text
##### Re: Calculator
« Reply #2 on: August 05, 2016, 11:39:42 pm »
Quote
everything after the '=' is automatically deleted.
Not when you delete the =.
It's weird that it doesn't matter where you type the =, and also what part of the end of the line is erased.
In the attached video, the last thing I typed is "=".
The text changes from:
123+123=| 246 = 0xF6 (Hex)
to
123+123| 246 = 0xF6 (Hex)
to
123+123+| 246
So, it erases part of the auto-inserted text, but not all.
That combined with " " == "+", confuses me.

Done Backspace Clear
But really, Esc==Done and <Backspace>==Backspace already so it doesn't matter much.
Clear is nice though.

#### Clark

• SlickEdit Team Member
• Senior Community Member
• Posts: 5149
• Hero Points: 425
##### Re: Calculator
« Reply #3 on: August 05, 2016, 11:48:33 pm »
We are going to leave this alone. Otherwise, we are simply robbing Peter to Paul (Changing one issue for another--the one you don't care about but I do). Sorry you don't like it.

#### Clark

• SlickEdit Team Member
• Senior Community Member
• Posts: 5149
• Hero Points: 425
##### Re: Calculator
« Reply #4 on: August 06, 2016, 08:15:20 pm »
Changed backspace and del to be smarter. Clears everything after the '='.