MUI MUIA_list_DoubleClick
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 503 from 2013/5/29
    Hello mates. Noob MUI code question.
    Is there an example of how to use muía_list_DoubleClick?
    I try to use notify and muim_application_returnid in my list object but seems never works.
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »07.08.15 - 15:26
    Profile
  • Moderator
    Kronos
    Posts: 2259 from 2003/2/24
    Code:
    	DoMethod(data->class_list,MUIM_Notify,MUIA_List_DoubleClick,MUIV_EveryTime,obj,1,MM_BaseClassPopup_Selected);


    Works here (tm)

    And try to avoid MUIM_Application_ReturnID it's ad coding practice.
  • »07.08.15 - 17:41
    Profile
  • MorphOS Developer
    geit
    Posts: 1034 from 2004/9/23
    Quote:

    tolkien wrote:
    Hello mates. Noob MUI code question.
    Is there an example of how to use muía_list_DoubleClick?
    I try to use notify and muim_application_returnid in my list object but seems never works.


    Using returnid is some old fashion first generation mui stuff and should only be used on the appilcation object with MUIV_Application_ReturnID_Quit.

    There is more or less no other reason to use it at all.

    Since i assume you are not quitting the application by double clicking a mui list, i suggest to use real methods in that case, as subclassing and adding own methods is the official way to go.

    [ Edited by geit 07.08.2015 - 17:50 ]
  • »07.08.15 - 17:45
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 503 from 2013/5/29
    Hello!
    I know doing returnID is old and dirty but as I have said I'm new doing MUI stuff and there are a few things that don't understand as is subclassing.
    I'm in the process of reading and trying but seriously, Amiga community needs update coding info to get newer coders.
    I'll read again khrashan's info about subclassing and look for add new methods.
    Thanks for the help mates!


    [ Edited by tolkien 07.08.2015 - 18:41 ]
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »07.08.15 - 18:40
    Profile
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    I'm in the process of reading and trying but seriously, Amiga community needs update coding info to get newer coders.

    Some more precise suggestions would be more useful.
  • »10.08.15 - 05:16
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 503 from 2013/5/29
    Some of my suggestions are equal to the naTmeg ones in
    https://morph.zone/modules/newbb_plus/viewtopic.php?topic_id=11301&forum=3
    but will try to elaborate them when I can.
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »11.08.15 - 21:21
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    r-tea
    Posts: 301 from 2005/3/27
    From: Poland, Zdzies...
    Quote:

    tolkien wrote:
    Hello!
    I know doing returnID is old and dirty but as I have said I'm new doing MUI stuff and there are a few things that don't understand as is subclassing.



    I pretty understand you, 'cause I'm noob programmer as well and I use odd and dirty MUI app style .
    Years ago I did a trivial GUI for Arc64 (C64 disk images manipulating tool), and now I digged out my source code.

    Code:
    DoMethod(lister_r, MUIM_Notify, MUIA_Listview_DoubleClick, TRUE, app, 2, MUIM_Application_ReturnID, ID_LRDBLCLICK);


    All IDs I handle in main SWITCH loop and it works.

    But don't use this style if your project become big.
    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.
  • »11.08.15 - 23:13
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    tolkien
    Posts: 503 from 2013/5/29
    That is what I do but with muía_list_DoubleClick but with no response. I'll try to create a listview. Thanks mate!

    [ Edited by tolkien 12.08.2015 - 22:12 ]
    MorphOS: PowerMac G5 - PowerBook G4 - MacMini.
    Classic: Amiga 1200/060 - A500 PiStorm
  • »12.08.15 - 13:24
    Profile