Some beginner MUI questions
  • Order of the Butterfly
    Order of the Butterfly
    asrael22
    Posts: 404 from 2014/6/11
    From: Germany
    Hi.

    I'm trying to create a simple UI.
    Basically it just has two columns, on the right are a bunch of vertically arranged buttons.
    On the left are two vertically arranged textinputscroll objects.
    Here is a picture:
    Snap-1-495x243x24.jpg

    So I'm struggling with the following:
    - I'd like to have that the right, button column does not change the width. It should have a fixed width with the largest width button.
    So that only the left column changes the size if the window width is resized.
    Right now both columns will get equal width on window resize.
    - how do I change the height of the textinputs? I've tried MUIA_Height, MUIA_Textinput_Lines but that doesn't change anything.
    - How can I make the window height resizable? Only the width is resizable.


    Manfred
  • »31.01.17 - 20:01
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    igracki
    Posts: 382 from 2003/2/24
    From: Berlin
    Set MUIA_Weight to 0 for the right group and to 100 for the left group.
    This should fix the width of the right group.

    The height of the window is not resizable because the buttons are not vertically resizable.
    Use a HVSpace object at the top and or bottom.
  • »31.01.17 - 20:25
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    asrael22
    Posts: 404 from 2014/6/11
    From: Germany
    OK, thanks. That works.

    What controls the height of the text inputs? Do they adapt to the window size or does the window size adapt to the window content.
    I'd like to have one of the textinputs smaller (in height) than the other, and that it keeps the height while the other resizes.


    Manfred
  • »01.02.17 - 06:48
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    Tcheko
    Posts: 508 from 2003/2/25
    From: France
    Quote:

    asrael22 wrote:
    OK, thanks. That works.

    What controls the height of the text inputs? Do they adapt to the window size or does the window size adapt to the window content.
    I'd like to have one of the textinputs smaller (in height) than the other, and that it keeps the height while the other resizes.


    Manfred


    Best practice would be using BetterBalanceObject with a MUI_ObjectID set (for saving the groups weight in app settings) between the two text input groups.

    That way, user can freely spread objects height to its own taste.

    Example :

    Code:
    Child, VGroup,
    Child, HGroup,
    Child, TextInputObject, End,
    End,
    Child, BetterBalanceObject, MUIA_ObjectID, MAKE_ID('B', 'A', 'L', '0'), End,
    Child, HGroup,
    Child, TextInputObject, End,
    End,
    End,




    [ Edited by Tcheko 01.02.2017 - 09:21 ]
    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.
  • »01.02.17 - 08:19
    Profile Visit Website