2.3 Frequently asked questions

This section covers some frequently asked questions. Please read them first before asking on the mailing list or forum because your problem might have been covered here.

Q: My GUI is not resizable. Isn't one of the big advantages of MUI that its GUIs are always resizable and MUI takes care of this automatically?

A: Yes, but there are some things that you need to keep in mind for the resize feature to work correctly. If there is a gadget in your GUI that has a fixed size, you need to pad it using resizable <rectangle> objects on its sides. Then your GUI will be resizable again. For example, imagine you have a 64x64 <image> object in a horizontal group in your window. MUI won't be able to resize this window unless you add rectangle objects to the sides of your image object because MUI needs to find an object that can be resized so you need to take care that non-resizable objects in your GUI are always padded with resizable ones. By the way, be careful with the <label> tag: Objects of label class are actually not resizable! If you want resizable labels, just use <text> instead.

Q: Why are labels not resizable then?

A: Honestly, I don't know. There is a Label.FreeVert attribute but the corresponding Label.FreeHoriz is missing. I do not really know why Stefan Stuntz did it this way but I am sure there is some rationale behind it.

Q: Why are there no Application.Author, Application.Copyright, Application.Description, Application.Title, and Application.Version attributes?

A: These attributes have been deliberately left out to avoid redundancies with Hollywood. Hollywood already offers the @APPAUTHOR, @APPCOPYRIGHT, @APPDESCRIPTION, @APPTITLE, and @APPVERSION preprocessor commands. The contents of these preprocessor commands will be automatically passed to the MUI application object when it is created.


Show TOC