The most up-to-date MUI tutorial
  • Caterpillar
    Caterpillar
    Kokos
    Posts: 26 from 2009/10/27
    From: Poland
    Hi,

    Is there any little bit more fresh MUI tutorial, which could be very helpful in making first steps in development for MOS 2.4?

    Thanks,
    K
  • »27.10.09 - 10:49
    Profile Visit Website
  • Just looking around
    Cebrian
    Posts: 2 from 2009/10/26
    Hi!

    I'm a completely new MorphOS user and I've had little contact with the Amiga before, but I'm also looking for development information. So far, I've found this VERY useful guide:

    Guide to Amiga compatible programming

    If you browse the source it's actually text files. The english version is not finished yet, but the translators seem to be active.
  • »27.10.09 - 18:07
    Profile
  • Moderator
    Kronos
    Posts: 2326 from 2003/2/24
    Did you allready look into :
    documentation/examples/mui (part of the SDK) ?

    These should give you an idea (assuming you allready know a bit about C).

    For the Amiga-API it's probraly still best to get an AmigaDeveloper-CD
  • »27.10.09 - 18:59
    Profile
  • MorphOS Developer
    Henes
    Posts: 507 from 2003/6/14
    http://aminet.net/package/dev/mui/mui38dev MUI/Developer/Docs/MUIdev.guide
  • »27.10.09 - 19:41
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    r-tea
    Posts: 306 from 2005/3/27
    From: Poland, Zdzies...
    It's about MUI 3.8.
    I think Kokos needs MUI 4 dev guide.
    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.
  • »27.10.09 - 21:00
    Profile
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    I wrote short MUI example few years ago:

    http://www.lehtoranta.net/calculator/

    Today I would change some points but it gives an idea how to write simple MUI applications.
    1 + 1 = 3 with very large values of 1
  • »27.10.09 - 21:18
    Profile
  • MorphOS Developer
    itix
    Posts: 1520 from 2003/2/24
    From: Finland
    Quote:


    I think Kokos needs MUI 4 dev guide.



    Basics have not changed since MUI 3. There are more attributes, more methods and more classes in MUI 4 but basics are still the same.
    1 + 1 = 3 with very large values of 1
  • »27.10.09 - 21:20
    Profile
  • Paladin of the Pegasos
    Paladin of the Pegasos
    tokai
    Posts: 1289 from 2003/2/25
    From: binaryriot
    @r-tea

    And what? That's exactly what he needs. MUI4 isn't incompatible to MUI 3.8 all out of the sudden, so its rare developer documentation would be void and no longer working.

    The dev.guide and the class#? examples are all you need to get started properly with MUI coding. MUI's autodocs are also included in the SDK; and looking to os-include/libraries/mui.h might be useful too.

    I know, because I started with exactly this information too and now I wrote quite a bunch MUI based applications and components already (need to count them someday). It's really all you need to get started. You just need to grasp how the subclassing and notification stuff works and then it's easy as stealing Haribos from a baby chimpanzee.
  • »27.10.09 - 21:23
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Tcheko
    Posts: 534 from 2003/2/25
    From: France
    @tokai :

    I will never dare to take Haribos from a baby chimpanzee hands. Those litlle beasts are really strong. I have seen a girl being fighted by many little chimps, she landed to the hospital badly hurt.

    I do agree MUI is easy to play with but the learning curve can be long... Examples can help to do (and understand) things faster. I know there is some example in the SDK but those examples come from pre 2k era with bad pratice like hook IIRC. It covers the basic at least.

    MSDN documentation have most of the time a sample example for every function. Is that bad ? I don't think so.

    Programmer are lazy by nature. Don't ask them to write documentation. MUI by itself could be the subject of a 400 pages book.

    New V51 intuition functions are lightly documented. Is that enough ? I don't think so. Again, a practical example like we were used to have in RKM can be handfull.

    If we want to attract new developpers, extensive & good documentation with examples is a must have IMO.
    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.
  • »28.10.09 - 07:55
    Profile Visit Website
  • Caterpillar
    Caterpillar
    ShInKurO
    Posts: 36 from 2008/5/30
    Quote:


    Cebrian wrote:
    Hi!

    I'm a completely new MorphOS user and I've had little contact with the Amiga before, but I'm also looking for development information. So far, I've found this VERY useful guide:

    Guide to Amiga compatible programming

    If you browse the source it's actually text files. The english version is not finished yet, but the translators seem to be active.


    It could be help so much if someone would check my translations of chapter 4 togheter with other involved members, you should write me in mail to help us :)
  • »28.10.09 - 08:02
    Profile Visit Website
  • MorphOS Developer
    kiero
    Posts: 129 from 2003/2/28
    good place to ask mui-related questions is #mui irc channel on freenode. there is a good chance someone will be there to give advice.
  • »28.10.09 - 08:08
    Profile Visit Website
  • Paladin of the Pegasos
    Paladin of the Pegasos
    jcmarcos
    Posts: 1178 from 2003/3/13
    From: Pinto, Madrid ...
    What a pity a MorphOS developer site never took off. If we could just organize (in a wiki, or whatever) the tons of informations scattered all over here and other places...
  • »28.10.09 - 08:55
    Profile
  • Caterpillar
    Caterpillar
    Kokos
    Posts: 26 from 2009/10/27
    From: Poland
    That could be great! Lots of new mos-under-mac_mini-users are searching for development materials, but it's all scattered over the web, and it looks totally out-of-date.. :(
  • »28.10.09 - 09:59
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    koan
    Posts: 303 from 2005/11/21
    From: UK
    Yes, where is MDC these days ?

    Can't anyone start a wiki ?
  • »28.10.09 - 18:50
    Profile
  • Yokemate of Keyboards
    Yokemate of Keyboards
    Zylesea
    Posts: 2057 from 2003/6/4
    Quote:


    koan wrote:
    Yes, where is MDC these days ?


    https://morph.zone/modules/news/article.php?storyid=1619

    About a wiki, probably not the worst idea. I also struggled on getting information useful for a rather bad programmer. Example code snipplets are really helpful for unexperienced programmers. With Visual Studio's examples I kind of succeeded to write a real app for Win. For Morphos I find it way more difficult to get te required information.
    --
    http://via.bckrs.de

    Whenever you're sad just remember the world is 4.543 billion years old and you somehow managed to exist at the same time as David Bowie.
    ...and Matthias , my friend - RIP
  • »28.10.09 - 19:35
    Profile Visit Website
  • IKE
  • Acolyte of the Butterfly
    Acolyte of the Butterfly
    IKE
    Posts: 146 from 2009/11/7
    From: Southern CA
    Consider it done:

    MorphOS Development Wiki

    I could really use some knowledgeable people's help with this!

    Enjoy,
    IKE
    IKE

    MacMini G4 1.5Ghz/PowerBook G4 1.67Ghz/PowerMac G5 2.0Ghz DP 7,2 Radeon 9650/256MB

    Join the conversation @ r/morphos
  • »11.11.09 - 13:44
    Profile Visit Website
  • Just looking around
    Fester
    Posts: 19 from 2010/4/14
    From: Wisconsin, USA
    Is there a special process to compiling a MUI example?

    I tried several of the examples in the development/examples/mui section of the sdk, with gcc -o outputname programname but all returned errors.

    Tried compiling the Hello World found on the Wiki in the previous post but that one didn't work either.

    When I try: gcc -o hello MUIHelloWorld.c

    I get: MUIHelloWorld.c: In function 'main':
    MUIHelloWorld.c:83: error: lvalue required as left operand of assignment

    When I try: gcc -o demo MUI-Demo.c
    (This is an example source from the SDK installed in System/Development/Examples/MUI)

    I get: /t//cclEx0xM.o: In function 'main':
    /t//cclEx0xM.o(o.text+0x50f2): undefined reference to 'UntuitionBase'
    /t//cclEx0xM.o(o.text+0x50f6): undefined reference to 'UntuitionBase'

    Anything to get me jump started would be great. I'll keep reading. I might figure it out...




    [ Edited by Fester 16.06.2012 - 07:16 ]
  • »16.06.12 - 13:15
    Profile
  • MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    http://library.morph.zone/Magic_User_Interface_Programming

    When compiling, do not forget about -noixemul flag.

    [ Edited by Krashan 16.06.2012 - 13:24 ]
  • »16.06.12 - 13:23
    Profile Visit Website
  • Just looking around
    Fester
    Posts: 19 from 2010/4/14
    From: Wisconsin, USA
    Woo hoo!

    Compiled and ran MUI-demo.c successfully. Thanks!
  • »16.06.12 - 13:44
    Profile