[MUI] StringObject and cursor up/down key events
  • Order of the Butterfly
    Order of the Butterfly
    r-tea
    Posts: 268 from 2005/3/27
    From: Opole, Poland
    Hi guys.
    How to dectec cursor keys strikes from within MUI String object?
    Is there an easy way?

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

    MUIKEY_UP
    MUIKEY_DOWN

    ?
  • »14.07.17 - 02:38
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    r-tea
    Posts: 268 from 2005/3/27
    From: Opole, Poland
    Quote:

    jacadcaps wrote:
    Did you try checking for

    MUIKEY_UP
    MUIKEY_DOWN

    ?


    No, looks like it's for building mcc's only.

    I miss draggable screens... and do you? I know I'm in a minority unfortunately.
  • »14.07.17 - 17:57
    Profile Visit Website
  • MorphOS Developer
    jacadcaps
    Posts: 1488 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 - 18:49
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Tcheko
    Posts: 415 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 - 18:51
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    r-tea
    Posts: 268 from 2005/3/27
    From: Opole, Poland
    I don't need it anymore. Thanks anyway.

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