I'm trying to write text and rectangles to a region and offset or translate the region depending on circumstance, but I can't get anything to work
textR = CreateObject("roRegion", screen, 96, 40, 1088, 640) ' Draws to screen, smaller than mainR
textR.SetAlphaEnable(TRUE)
'textR.SetPretranslation(0, 300)
'textR.Offset(0, 300, 0, 0)
I've tried both the SetPretranslation() and the Offset() tests above, but in both cases the rectangles and text I later draw (with DrawRect() and DrawText() are still in the exact same position as when these two lines are both commented out like they are now. I want to move them up or down as desired, so my tests only affect the Y position.
Are Offset() and SetPretranslation() only for DrawObject, DrawRotatedObject, and DrawScaledObject as mentioned for SetPretranslation() reference material?
region.Set() doesn't seem to help either, if I set up some region "fakeR" with the Y offset I want, then do textR.Set(fakeR), no effect.