MUI-String edithook
  • Moderator
    Kronos
    Posts: 2442 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 - 17:01
    Profile
  • MorphOS Developer
    jacadcaps
    Posts: 3200 from 2003/3/5
    From: Canada
    Edithooks are unsupported.
  • »14.10.13 - 18: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 - 19:00
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 459 from 2003/2/24
    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 - 15:43
    Profile Visit Website