Jump to content

Bounding box the text dynamically


Reynolds_

Recommended Posts

Simply put, how am I supposed to make a dynamic bounding box? The box's size should change with the text in the GUILabel/d3text. If I type in more text, it should expand to accomodate said text, if I type in less text, it should retract.

To be more precise, I want a dialog box similar to the ones found in all GTA Games positioned in the top left corner which shows hints & other stuff to the palyer.

Link to comment

Thanks for your answers. I got to dxGetWidth already, and, as I said, I am more concerned with word wrapping and its effect on this whole thing. I would want to keep my text's width constant and set the height according to the amount of text in the dxText. I already found my answer, which is the dxGetFontHeight function. It was kind of stupid, I must've missed it late at night. Thanks for all your answers.

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