[MUI] StringObject and cursor up/down key events
  • Order of the Butterfly
    Order of the Butterfly
    r-tea
    Posts: 300 from 2005/3/27
    From: Poland, Zdzies...
    Hi guys.
    How to dectec cursor keys strikes from within MUI String object?
    Is there an easy way?
    Mac mini G4@1,5GHz silent upgrade + Xerox Phaser 3140 + EPSON Perfection 1240U
    Commodore C64C + 2 x 1541II + Datasette + SD-Box

    I miss draggable screens... and do you? I know I'm in a minority unfortunately.
  • »13.07.17 - 20:02
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    takemehomegrandma
    Posts: 2720 from 2003/2/24
    JavaScript? ;-)
    MorphOS is Amiga done right! :-)
    MorphOS NG will be AROS done right! :-)
  • »14.07.17 - 01:16
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 2968 from 2003/3/5
    From: Canada
    Did you try checking for

    MUIKEY_UP
    MUIKEY_DOWN

    ?
  • »14.07.17 - 01:38
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    r-tea
    Posts: 300 from 2005/3/27
    From: Poland, Zdzies...
    Quote:

    jacadcaps wrote:
    Did you try checking for

    MUIKEY_UP
    MUIKEY_DOWN

    ?


    No, looks like it's for building mcc's only.
    Mac mini G4@1,5GHz silent upgrade + Xerox Phaser 3140 + EPSON Perfection 1240U
    Commodore C64C + 2 x 1541II + Datasette + SD-Box

    I miss draggable screens... and do you? I know I'm in a minority unfortunately.
  • »14.07.17 - 16:57
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 2968 from 2003/3/5
    From: Canada
    Well, you need to sched a little bit more detail into what exactly is it that you are doing. Source code perhaps?
  • »14.07.17 - 17:49
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Tcheko
    Posts: 508 from 2003/2/25
    From: France
    @r-tea, subclass the StringObject and add an event handler catching IDCMP_RAWKEY.
    See http://www.sasg.com/mui/autodocs/MUI_Window.html#MUIM_Window_AddEventHandler for the details.

    That way, you'll be able to see all keyboard events and catch UP/DOWN keys. If you want to eat the event (ie no further processing), the EventHandler method should return MUI_EventHandlerRC_Eat.
    Quelque soit le chemin que tu prendras dans la vie, sache que tu auras des ampoules aux pieds.
    -------
    I need to practice my Kung Fu.
  • »14.07.17 - 17:51
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    r-tea
    Posts: 300 from 2005/3/27
    From: Poland, Zdzies...
    I don't need it anymore. Thanks anyway.
    Mac mini G4@1,5GHz silent upgrade + Xerox Phaser 3140 + EPSON Perfection 1240U
    Commodore C64C + 2 x 1541II + Datasette + SD-Box

    I miss draggable screens... and do you? I know I'm in a minority unfortunately.
  • »14.08.17 - 13:55
    Profile