Buttons on an image Background
  • Butterfly
    Butterfly
    rebraist
    Posts: 96 from 2011/4/6
    From: Naples, Italy
    Hi! Is there a way i can create a mui window, draw a picture on its background and then put some button objects on the picture?
    I was thinking i could override om_draw for an area object, and this wouldn't allow me to attach some buttons on the area, but can i do the same for a window object (in this way i could even attach buttons on it)?
    Thk you!
    Mac Mini g4 1,5 mos 3.1 registered
    Powerbook g4 1,67 mos 3.1 unregistered
    Sam440 Os4.1.6
    Aros-Aros-Aros.
  • »04.06.13 - 22:02
    Profile
  • Moderator
    Kronos
    Posts: 2362 from 2003/2/24
    You could try defining that picture the window's (default) background.
  • »04.06.13 - 22:04
    Profile
  • MorphOS Developer
    geit
    Posts: 1054 from 2004/9/23
    Yeah, MUIA_Background is the way to go, but only if you have a good reason, as you limit the users configuration possibilities

    Geit
  • »04.06.13 - 22:09
    Profile
  • Butterfly
    Butterfly
    rebraist
    Posts: 96 from 2011/4/6
    From: Naples, Italy
    thx!!! i'll try it!!

    [ Edited by rebraist 05.06.2013 - 14:10 ]
    Mac Mini g4 1,5 mos 3.1 registered
    Powerbook g4 1,67 mos 3.1 unregistered
    Sam440 Os4.1.6
    Aros-Aros-Aros.
  • »05.06.13 - 12:06
    Profile
  • Butterfly
    Butterfly
    rebraist
    Posts: 96 from 2011/4/6
    From: Naples, Italy
    Yeah MUIA_Background, placed in a Vgroup, works! But how can i view all of my picture?
    When i use my jpg (but with png is the same thing), my window is sized just as the buttons placed in it.
    Thk u!!
    Mac Mini g4 1,5 mos 3.1 registered
    Powerbook g4 1,67 mos 3.1 unregistered
    Sam440 Os4.1.6
    Aros-Aros-Aros.
  • »07.06.13 - 20:45
    Profile
  • Butterfly
    Butterfly
    rebraist
    Posts: 96 from 2011/4/6
    From: Naples, Italy
    i've solved putting two vspace, but isn't a way mui displays the Whole picture?
    Mac Mini g4 1,5 mos 3.1 registered
    Powerbook g4 1,67 mos 3.1 unregistered
    Sam440 Os4.1.6
    Aros-Aros-Aros.
  • »08.06.13 - 19:51
    Profile