This is the reply I got from the author of Easyptr regarding the MITEM versus sprites names query I raised a few days ago.
>Sorry, I had to find an EASYPTR manual. Actually I don't have a printed >English EASYPTR description (and the MAC it was written on is out of >order), but I could find my German manual. This does not allow a >filename for MITEM or SPRA, so you will have to load the sprite >separately into memory. As MITEM uses the same universal routine for >decoding a variant parameter it may work to pass a filename and even to >load it into memory, but the returned address obviously is wrong. >Regards > >Albin Actually, the English manual permits name of an appended definition rather than filename of a sprite, but this does not work either. Using addresses or sprite numbers as Thierry Godefroy suggested does work well. As Albin implies, with certain sprites, the possibility of wrong address returned is likely the cause of the problem, since some funny effects (drawn incomplete or wrong position) do sometimes happen. -- Dilwyn Jones [EMAIL PROTECTED] http://www.soft.net.uk/dj/index.html -----Ursprüngliche Nachricht----- Von: Dilwyn Jones [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 24. Dezember 2001 13:42 An: Albin Hessler Betreff: Re: Easyptr 3.05 > >Hi, I assume the origin of your sprite is positionned so that the sprite >can not be drawn within the item. >Position the origin of the sprite so that it can be drawn from the >origin of the loose item defined in the 'Object' submenu of EASYMENU -> >'Justification', e.g. when the justification is kept in the 'center' >(default), then set the origin of the sprite to the center of the sprite >too. > >I hope this helps. No it doesn't, this has been tried. Thierry Godefroy and I have come to the conclusion that there may be a bug in MITEM when it comes to accessing sprites by name. If MITEM#ch%,-loose_item,-2,SPRA(sprite_number) is used with the sprite in an appended file, the sprite is displayed correctly. From memory, Thierry thought (though I have not tested this to see if he is correct) that SPRA('name') has the same problem. In other words, the problem seems to be occurring when the sprite is accessed by name, the display of sprites seems to work OK when accessed by number or by address. Changing the origin and justification had no effect (in fact, the origin was at top left of the 32x24 sprite in Easysprite and justification of the loose item was LEFT in Loose item->Object in Easymenu, with the loose item dimension made larger than the sprite to ensure there was room). The error when it happens is always the same; "out of range" at the line including the MITEM statement. I've experimented with a number of settings for the sprites and loose items as you suggested and still the same problem. Merry Christmas, Albin. I hope you and your family are keeping well. -- Dilwyn Jones [EMAIL PROTECTED] http://www.soft.net.uk/dj/index.html