An old MUI bug for ImageObject
Posted: Thu Sep 01, 2011 12:18 am
I'm reporting a MUI bug I found present in AmigaOS4.1 Update 2 (I will try to report back after upgrading to Update 3, but I will be surprised if it has been fixed).
I wanted to create a MUI gui with a picture inside a button. The following code does not work as expected:
Specifically, ImageObject just results in a tiny empty image, when it is told to use mode 5 (i.e. load a picture using datatypes). Forcing the image object to be larger does not help.
On the other hand, the following code basically works:
The reason why I don't use this is that MUI seems to ignore the height of the inserted image (and so I need a spurious "\n" to make it look roughly right on my set-up).
In the end I solved my problem with Dtpic/BitmapObject instead of an ImageObject, but that doesn't stop ImageObject from being buggy:
http://www.amigans.net/modules/xforum/v ... t_id=64544
I wanted to create a MUI gui with a picture inside a button. The following code does not work as expected:
Code: Select all
Child,GroupObject,
MUIA_Group_Horiz,TRUE,
MUIA_Background,MUII_ButtonBack, MUIA_Frame,MUIV_Frame_Button, MUIA_InputMode,MUIV_InputMode_RelVerify,
Child, ImageObject, MUIA_Image_Spec,"5:tbimages:quit", End,
Child, FreeLabel("this is a button!"),
Child, RectangleObject, MUIA_InnerLeft,0, MUIA_InnerRight,0, MUIA_InnerTop,0, MUIA_InnerBottom,0, End,
End
On the other hand, the following code basically works:
Code: Select all
Child, SimpleButton("\33I[5:tbimages:quit] this is a button!\n"),
In the end I solved my problem with Dtpic/BitmapObject instead of an ImageObject, but that doesn't stop ImageObject from being buggy:
http://www.amigans.net/modules/xforum/v ... t_id=64544