Jump to content

Max position of dx element


MAB

Recommended Posts

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.

Link to comment
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 :lol:

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.

Link to comment
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 :lol:

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....

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...