How to draw a textbox

Posts 115 of 15 · Page 1 of 1
How to drawtext
Hey guy's in all of the stuff they got in the coding section i could not see any tut's on how to drawtext so here it is
Code:
void DrawText(int x,int y,DWORD color,char *text, LPDIRECT3DDEVICE9 pDevice){
RECT rect;
SetRect( &rect, x, y, x, y );
Directx_Font->DrawTextA(NULL,text,-1,&rect, DT_LEFT|DT_NOCLIP, color);
}
And to render it
Code:
			DrawText(x,y,color,"texthere", pDevice);
Cred's
solify
me
Quote Originally Posted by wassup40 View Post
Hey guy's in all of the stuff they got in the coding section i could not see any tut's on how to draw a textbox so here it is
Code:
void DrawText(int x,int y,DWORD color,char *text, LPDIRECT3DDEVICE9 pDevice){
RECT rect;
SetRect( &rect, x, y, x, y );
Directx_Font->DrawTextA(NULL,text,-1,&rect, DT_LEFT|DT_NOCLIP, color);
}
And to render it
Code:
			DrawText(x,y,color,"texthere", pDevice);
Cred's
solify
me
It's "Draw Text", not "Text Box". /
in some base's there are differant methods of DrawBox and DrawText!
and how to add this into a box ?
Quote Originally Posted by o-o View Post
and how to add this into a box ?
maybe look at the code. This isn't to input text into a box this is just to draw predefined text.

but if u read the code and u just want a box around your text then just use the draw box function in the source code section
Quote Originally Posted by o-o View Post
and how to add this into a box ?
Simple, add another DrawBox and place it around the [Draw]Text. If you don't know how to add a DrawBox, it's in the "Useful Funtions" thread (Stickied)
Quote Originally Posted by Amatowarrior View Post
Simple, add another DrawBox and place it around the [Draw]Text. If you don't know how to add a DrawBox, it's in the "Useful Funtions" thread (Stickied)
Sorry but I don't understand you / come on PM and tell me with more explains
Hes just trying to brainfuck you becouse he now is at Infin hacks
Quote Originally Posted by Mr.Magicman View Post
Hes just trying to brainfuck you becouse he now is at Infin hacks
What ya talking about and who ya talking bout.
Quote Originally Posted by wassup40 View Post


What ya talking about and who ya talking bout.
Aint you at that site?
I have went there a few time's but im not registerd im not smart enuff.
thanks... Will help some noobs. It means Draw Text not Textbox
Quote Originally Posted by Sydney View Post
thanks... Will help some noobs. It means Draw Text not Textbox
I know but cant change title /
My mind was somwhere else..
Try going to edit>advanced>then see if the title is there, if so then change it /
Quote Originally Posted by Amatowarrior View Post
Try going to edit>advanced>then see if the title is there, if so then change it /
I did still says the same.
Posts 115 of 15 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?