lee sent me this small snippet ages ago when i was having a similar issue.
In my editor I havent had to use the trim commands yet.
my editor is in fullscreen desktop mode. its fine in exclusive as well for the game is in exclusive.
Rem Project: TilingAMatrix
Rem Created: 13/01/2003 08:51:13
rem Load a texture
load image "4x4.bmp",1
rem Create a matrix
make matrix 1,10,10,4,4
position matrix 1,-5,0,-5
rem Create a set of 16 (4x4) tiles from texture
prepare matrix texture 1,1,4,4
rem Fill matrix with a unique tile id
id=1
for z=0 to 3
for x=0 to 3
set matrix tile 1,x,z,id
inc id
next x
next z
rem Update matrix
update matrix 1
position camera 0,10,-10
point camera 0,0,0
rem Wait for keypress
wait key
and heres the small sample i made for the test.
http://www.lunarpixel.com/temp/4x4.bmp
Im in 32 bit mode as well, other than that im not sure, it was ages ago, soz m8.