Jump to content

Recommended Posts

Posted

I would like to find out if I can center text within a dialog edit box. I am populating this edit box from the result of a :popup_list. This information will not be edited and for display only.

 

Here is my code currently.

 

(write-line ":edit_box {" f)

(write-line "edit_width = 10;" f)

(write-line "edit_limit = 9;" f)

(write-line "key = \"mill_disp\";" f)

(write-line "}" f)

 

If this is at all possible please help me out.

Posted

If is just for display you may try to add spaces in front of the said string; the number of spaces will be correlated with the size of currently shown string. Or use a text tile instead.

 

By the way, please edit your post and add the required code tags.

Posted

Can you give an example of how you would use a text tile for this?

Posted

This is what I was thinking about:

(set_tile "mill_disp" (strcat "        " "abc"))
(set_tile "mill_disp" (strcat "  "       "dtsfan1976"))

Based on your above example that's still pending code tags.

Posted

A quick look at a old help book talks about right justified when edit_width is zero and goes on to talk about left & right justification only no centre option.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...