dtsfan1976 Posted July 26, 2012 Posted July 26, 2012 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. Quote
MSasu Posted July 26, 2012 Posted July 26, 2012 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. Quote
dtsfan1976 Posted July 26, 2012 Author Posted July 26, 2012 Can you give an example of how you would use a text tile for this? Quote
MSasu Posted July 26, 2012 Posted July 26, 2012 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. Quote
BIGAL Posted July 27, 2012 Posted July 27, 2012 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. Quote
Recommended Posts
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.