Page 1 of 1

Calculator Problem (bug?)

Posted: Wed Jan 08, 2014 7:26 pm
by xenic
I start SYS:Utilities/Calculator on my Internet screen with a script. When I select the "Show Tape" menu item in the "Windows" menu, the tape window opens on WorkBench instead of the same screen (Internet) as the calculator. That sort of defeats the purpose of the tape window. The tape window should open on the same screen that the calculator is on when you open the tape window with the menu.

Re: Calculator Problem (bug?)

Posted: Wed Jan 08, 2014 10:20 pm
by Rigo
How are you starting Calculator in your script?
Can you paste the line here?

Simon

Re: Calculator Problem (bug?)

Posted: Thu Jan 09, 2014 4:26 pm
by xenic
Rigo wrote:How are you starting Calculator in your script?
Can you paste the line here?
Simon
I'm starting Calculator from an old program from OS4depot called ScriptLauncher. It's not really a script since it's just a single line. The same problem occurs if the same command is started from a shell. Here is the line:

Code: Select all

Sys:Utilities/Calculator PUBSCREEN=Internet
Internet is the screen name and Calculator opens fine. The problem is that if you select the "Windows/Show Tape" menu item in Calculator the tape window opens on the Workbench screen; leaving the user wondering why the tape window didn't open (it did, but on a different screen).

It is possible to avoid the problem by using the TAPE argument when opening Calculator like this:

Code: Select all

Sys:Utilities/Calculator PUBSCREEN=Internet TAPE="KCON:0/0/300/400/Calculator Tape/INACTIVE/SCREEN Internet"
If the TAPE argument is used when Calculator is started, the tape window will open on the specified screen and can be closed/reopened on the correct screen with the Calculator "Windows/Show Tape" menu item.

The tape window problem occurs when you open Calculator without the TAPE argument and attempt to open the tape window.

It's also not very intuitive for Calculator to open under the pointer when started from a shell or script. It wouldn't hurt to have some TOOLTYPES/ARGUMENTS to specify the Calcualtor opening position (even if it's just a CENTERED argument to override starting under the pointer).