I am having a weird issue with drawstring that makes no sense.
I have an array I am pulling strings from that I want to write under
thumbnails I am drawing on a canvas.
When I do this in a loop the same string is written in every place.
Its the string from the first item in the array. I have tried loading
the string into a local variable (and verifying that the variable has
the correct string in the debugger) first and then passing that to
drawstring. The line looks like this:
g.DrawString theName,nameXoffset,heightoffset
+scrollPosition,me.width-10,true
Now whats really weird is if I add a space to the end of the string
when I pass it to drawstring the correct name is drawn (except with a
space):
g.DrawString theName+" ",nameXoffset,heightoffset
+scrollPosition,me.width-10,true
I am using 2007r2 on a macbook pro and this strangeness occurs
running the IDE in Rosetta and as well as normally. When I remote
debug this code onto a Vista machine it works fine without the space.
Anybody got any ideas?
I am sure I sure report this but wanted to see if anyone had an answer.
Thanks,
Drew F
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>