MAB Posted October 1, 2015 Posted October 1, 2015 lets take a look at this resource and this is the topic of it. the text in the box never leaves the box and when you go back with the caret line you find the old text. how did he do that? how to make a dx edit box never leave an area whatever its length? and without removing any letter of it.
Dealman Posted October 2, 2015 Posted October 2, 2015 By creating a render target, anything outside of the specified area can be cut off. dxCreateRenderTarget
TAPL Posted October 2, 2015 Posted October 2, 2015 No need for render target, just set the arguments of dxDrawText 'clip' to true and 'wordBreak' to false and be sure to adjust the bounding box to whatever you want.
MAB Posted October 2, 2015 Author Posted October 2, 2015 No need for render target, just set the arguments of dxDrawText 'clip' to true and 'wordBreak' to false and be sure to adjust the bounding box to whatever you want. how to adjust the bounding box? (what bounding box) ?!
MAB Posted October 2, 2015 Author Posted October 2, 2015 By creating a render target, anything outside of the specified area can be cut off. dxCreateRenderTarget don't understand it.. example please... and use a dx rectangle as the place that the text won't leave .. please
Dealman Posted October 2, 2015 Posted October 2, 2015 No need for render target, just set the arguments of dxDrawText 'clip' to true and 'wordBreak' to false and be sure to adjust the bounding box to whatever you want. I totally forgot about that one how to adjust the bounding box? (what bounding box) ?! The bounding box is the area of the text, if you use the GUI Editor this is seen as pink lines. Anything that goes outside of this area will not be seen.
MAB Posted October 2, 2015 Author Posted October 2, 2015 No need for render target, just set the arguments of dxDrawText 'clip' to true and 'wordBreak' to false and be sure to adjust the bounding box to whatever you want. I totally forgot about that one how to adjust the bounding box? (what bounding box) ?! The bounding box is the area of the text, if you use the GUI Editor this is seen as pink lines. Anything that goes outside of this area will not be seen. aha understood that but i don't want it to be invisible... look at my direct x tutorial the go to the dx edit box spoiler i want it to show the old text and when i go back with the caret, i find the old text again.... like the mta normal edit box and the dx edit box resource i talked about....
MAB Posted October 3, 2015 Author Posted October 3, 2015 It's exactly what you want. so if i went back with the caret i will find the old text? is it even going to show the new text?
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