[comp.sys.mac] Changing the justification of editable text items in a dialog box

waldman@husc4.HARVARD.EDU (benjamin waldman) (08/25/87)

I'm confused about a problem I've been having, and I hope someone out there
will be able to help.

I have 2 editable text items in a dialog box, and I want both of them to
be centered.  Since all edit text items share the same TextEdit record, I
just did a TESetJust(teJustCenter, dialog_record.textH) before the dialog
was drawn (it was initially invisible), and then displayed the window.
Well, the first item is centered, but the second isn't.  Moreover, when
editting them, they both behave like the text is centered, in that
when I click in the box, or drag, editting goes on as if the text were
centered.

Am I doing something wrong, or do I have to settle for left justification?

					Thanks in advance,
					Ben Waldman
					waldman@husc4.harvard.edu
					...seismo!harvard!husc4!waldman