IGRAPHICS_Translate | developer.brewmp.com IGRAPHICS_Translate | developer.brewmp.com

Developer

IGRAPHICS_Translate

Forums:

I am using IGRAPHICS_Translate but not working.

first i placed a ITEXTCTL in screen. then use IGRAPHICS_Translate(*pGraphics, 0, -20);

then draw ITEXTCTL_SetRect() again. with same rect as before.

It should go up bby 20 pixels in screen. but it's not. how will i do it.

Please reply as soon as possible.

I dont get what ur exactly trying to do

I dont get what ur exactly trying to do

I don't think that ITextCtl is using the instance of IGraphics that you are changing. Can't you just modify the rectangle you pass in to ITEXTCTL_SetRect?

I don't think that ITextCtl is using the instance of IGraphics that you are changing. Can't you just modify the rectangle you pass in to ITEXTCTL_SetRect?

IGRAPHICS_Translate() only affects other IGraphics methods.

IGRAPHICS_Translate() only affects other IGraphics methods.

i have already used to change the rect but it is not affective. it prints both rects in screen even i am refreshing the whole screen. first it prints the old rect then the new rect of ITextCtl.
can you tell me the code y which i will be able to do.

i have already used to change the rect but it is not affective. it prints both rects in screen even i am refreshing the whole screen. first it prints the old rect then the new rect of ITextCtl.
can you tell me the code y which i will be able to do.