Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!usc!elroy.jpl.nasa.gov!ucla-cs!trajmar@oahu.cs.ucla.edu From: trajmar@oahu.cs.ucla.edu (Peter Trajmar) Newsgroups: comp.sys.mac.programmer Subject: dialogs with ModalDialog() Message-ID: <37353@shemp.CS.UCLA.EDU> Date: 27 Jul 90 20:49:10 GMT Sender: news@CS.UCLA.EDU Distribution: usa Organization: UCLA Computer Science Department Lines: 22 I have two questions about dialogs (using ModalDialog()). 1) How can I dim a static text item? I know I can make it a control such as a check box and then do it. The problem is I don't want the check box part to be drawn. Covering this with a user item does not work very well since you can briefly see the box when ModalDialog() redraws. I could also make a custom control but that seems like more trouble than it's worth. 2) Is there a good way to right align the text in an editText item? I was able to do this using the DialogPeek handle. The problem is that the text ends up being outside of the viewing area. I have not seen any application that does not have its text left aligned. Perhaps this is also more trouble than its worth. What I would ideally like do do is decimal align floating point numbers that are in a column of editText items. I would appreciate any pointers you can give me. Peter Trajmar (trajmar@cs.ucla.edu)