• Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    connor
    Posts: 570 from 2007/7/29
    I want to build a window with a picture and some text below it. I tried the following:


    Code:

    WindowContents, VGroup,
    Child, MUI_NewObject("Dtpic.mui",
    MUIA_Dtpic_Name, "PROGDIR:picture.jpg",
    End,
    Child, ColGroup(3),
    Child, HVSpace,
    Child, var.obj_info = label1("tell me your name"),
    Child, var.obj_string = name(NULL, 128, NULL, 200),
    Child, HVSpace,
    End,
    Child, horiz_line(100),
    Child, ColGroup(2),
    Child, streetname("tell me your street name"),
    Child, var.obj_string = streetname(NULL, 128, NULL, 200),
    End,
    Child, horiz_line(100),
    Child, ColGroup(3),
    Child, HVSpace,
    // MUIA_Text_Contents, ("33c33bMUI33nnis magic"),
    Child, MUIA_Text_Contents, label3("tell me something about
    you"),
    Child, var.obj_string = story(NULL, 128, NULL, 200),
    Child, HVSpace,
    End,
    End,



    I want to change the colours of the labels and window background but do not
    know how. I read MUIA_Font but it is about fonts, not colours. I did not
    find the right part of the documentation. Can someone give me an example
    how to set e.g. the font colour to white or SHINEPEN? And please also a
    nexample for the background colour if it is used differently.

    Instead of embedding the picture I also would like to have it as full window
    background and paint my gadgets onto it. I found out about MUIA_Background
    but to me it looks like I can only choose an existing background but not my
    own image from disk. How can I do that, please?

    Sorry the code formatting looks ugly but whitespaces as spaces and tabs are omitted inside of code brackets.
  • »09.04.13 - 20:23
    Profile