manve1 Posted February 2, 2013 Posted February 2, 2013 How can i make different rotation to labels? like vertical/horizontal lines?
Puma Posted February 2, 2013 Posted February 2, 2013 (edited) You can't. You need to use the "onClientRender"-event. In the function, you create a rendertarget using dxCreateRenderTarget and set that as rendertarget using dxSetRenderTarget. A rendertarget is basically a drawingplane. Instead of drawing on your screen, you draw in a rendertarget and you draw that rendertarget somewhere on your screen, like writing a note and putting it on the table. Then you use dxDrawText (since you set the created rendertarget as rendertarget, it draws on that rendertarget) to draw your text on the target. After dxDrawText, you reset the rendertarget using dxSetRenderTarget() and draw the rendertarget on the screen using dxDrawImage. Give the image a rotation and you got your rotated text. If you need an example script, just ask for it. Edited February 2, 2013 by Guest
manve1 Posted February 2, 2013 Author Posted February 2, 2013 I just needed to know if it works for labels, as i got my answer (( not needed for the dx stuff )) i'm going to change my script. Thanx
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now