On 27/04/2007, at 11:06 AM, Drew F. wrote: > 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. ... > 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
This is creating a new, temporary string variable with a lifetime until the end of the DrawString. More context needed. My bet is that if you describe more of what is happening that we can work it out and it will turn out to be some combination of event order surprising you and the double-buffering effects of OS/X. I just got a little reminder myself not to assume ANYTHING about event orders, with an OK button Action event firing before a LostFocus event on an edit field (OS/X). good luck Andy _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
