rs4u+@andrew.cmu.edu (Richard Siegel) (04/29/88)
"editText" items are items that contain editable text; they're not TEHandles, though. If you want to set up a TEHandle (with a scrollbar) in the dialog box, you need to set up a UserItem and write a custom dialog filter to handle mouse clicks and keystrokes in your TEHandle and scroll bar. While not too difficult to do, it does take some doing... R.
pem@cadnetix.COM (Paul Meyer) (04/29/88)
[] If you look at the discussion of the Dialog manager in IM I, it will show you what's going on with edittext items. Basically, the dialog record contains a TEhandle which is shared by all the editText items in the dialog (this saves space, and since only one item is edited at a time, it works perfectly). You can use the GetDItem() and SetDItem() calls, and the GetIText() and SetIText() calls, to manipulate nearly everything about the text items anyway. The whole idea of the dialog manager is to do things like TEIdle, TECut, FindControl, etc. etc. for you. If you are doing a modal dialog, ModalDialog() already does all the right things for you. If the dialog is modeless, calling (memory failure for routine name) when IsDialogEvent() says to will do them. If you need to do something so wierd that have to play with the TE record, don't make a dialog at all. Draw a window, and draw controls, etc., and do the normal things with your modifications. Alternatively, you can do what Rich suggested with a userItem, but I can't see why you'd want to. -- Paul Meyer pem@cadnetix.COM Cadnetix Corp. 5775 Central Ave. {uunet,boulder}!cadnetix!pem Boulder, CO 80301 (303)444-8075x244