Re: HP38/39: How to set DEG mode?



Khanh-Dang wrote:
Hmmm.. Then, I'd rather seting the angle mode with something like:
SEVENTEEN ClrSysFlag EIGHTEEN ClrSysFlag	( SETDEG )

An Aplet doesn't work like the 49/48 when it comes to flag settings, they are linked to an applet, so each applet have their own flags and settings.

If you do what you suggest, it will only switch the settings temporarily, if you ever suspend your aplet to run a calculation in the HOME screen for example, your settings will be lost.

When you change your flag, you need to change the settings as you describe (playing with the system flags) or using the supported entry SetSysAngle but you also need to set it up in your aplet structure. If you check the aplet skeleton, you'll see that one of the variable of the aplets containt the current mode. Store 1 for Degree.

The system aplet do it that way:
NULLNAME AngleSto2
::
    CONTEXT@ SWAP SETaplCXT
    DUP SetSysAngle             ( Set Angle System Flag as well )
    Angle@ ?ReDrREPL#
    CONTEXT!
;
.



Relevant Pages

  • Re: HP38/39: How to set DEG mode?
    ... > they are linked to an applet, so each applet have their own flags and ... > If you do what you suggest, it will only switch the settings ... to TOL, because I like well-done work, but I have no documentation. ...
    (comp.sys.hp48)
  • Re: DDK build result different from VS result
    ... The only flags of interest with respect to ... > built using the standard settings from the ddk. ... that now go entirely into the sources file. ...
    (microsoft.public.development.device.drivers)
  • JDK 1.5.0_05 wont load applets from the Internet?
    ... I'm setting up a new PC with a brand-new installation of Windows XP and ... using Mozilla under Linux -- but trying to load a page with an applet ... proxy out of the picture, but this did not fix things. ... I have Java configured to use the browser's settings; ...
    (comp.lang.java.gui)
  • Re: multiple mice "profiles"
    ... Some mice have their own applet to change settings independently of the Microsoft applet. ... When I say that I mean something other than Control Panel --> Mouse that lets you adjust the settings, either by a tray icon or a separate Control Panel applet. ... If one has its own applet and the other doesn't, use the Microsoft applet for the one that doesn't and the third party software for the one that does. ...
    (microsoft.public.windows.vista.hardware_devices)
  • Restore my flags (and PATH)!
    ... The simplest program I know of for restoring flag settings ... while also retaining the originally saved settings ... If I change some settings (flags and/or current directory) ... to automatically restore those flags after a RESTORE). ...
    (comp.sys.hp48)