MUI-String edithook
  • Moderator
    Kronos
    Posts: 2431 from 2003/2/24
    Hi guys, trying to create a string gadget where th 1st n characters are read only.
    First try was with MUIA_String_Bufferpos, but that doesnt seen to trigger a notify.

    Now looking into supplying my own edithook but cant find much of docu..

    So how do I check wether user moved cursor to far right and than eat that event ?
  • »14.10.13 - 20:01
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 3195 from 2003/3/5
    From: Canada
    Edithooks are unsupported.
  • »14.10.13 - 21:54
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Tcheko
    Posts: 538 from 2003/2/25
    From: France
    Quote:

    Kronos wrote:
    Hi guys, trying to create a string gadget where th 1st n characters are read only.
    First try was with MUIA_String_Bufferpos, but that doesnt seen to trigger a notify.

    Now looking into supplying my own edithook but cant find much of docu..

    So how do I check wether user moved cursor to far right and than eat that event ?


    Subclassing string object might help with your requirement.

    search for MUI_EventHandlerRC_Eat for example.



    [ Edited by Tcheko 14.10.2013 - 23:02 ]
    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.10.13 - 22:00
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 453 from 2003/2/25
    From: Berlin
    you could use two string gadgets, first readonly, second editable.
    Use no space between them and put a string-frame around both string-gads.
  • »16.10.13 - 18:43
    Profile Visit Website