[comp.sys.apple2] Toolbox help

cmparris@uokmax.ecn.uoknor.edu (Chris Michae Parrish) (02/22/91)

Being fairly new to toolbox programming I have a fairly simple question for you
all.  I would like to create a window that will allow the user to select text
items by clicking on them, which will in turn high-light the whole line.  In 
other words I want to create a window like the one in the standard file box, 
SHRconvert's options boxes, or soundsmiths instruments window.

What I need to know is, is this type of window a dialog box or just a window?
What kind of control must you define to get the text line type selection?  Is it
possible to have scrollbars and scrolling content on a dialog box?

Thanks for any help, and if this message is unclear please mail me and I will
try to explain a little better.

cmparris@uokmax.ecn.uoknor.edu


-- 

 
*******************************************************************************
* Grey would be the color, if I                Chris Parrish                  *

dzimmerman@gnh-tff.cts.com (Daniel Zimmerman) (02/24/91)

>> (Questions about scroll bars and dialog boxes, and other stuff)

Well, the control with the lines of text in it is a List Control, and can be
defined according to the specifications in Toolbox Reference Vol. 1 under List
Manager and Toolbox Reference Vol. 3 under Control Manager Update and List
Manager Update. You cannot (easily, it can be done though) have list controls
in dialog boxes, and even difficultly the system will only support one list
control per dialog box. As far as I know, it is also impossible to have a
scrolling dialog box with the dialog manager - the best thing to do is use the
window manager's NewWindow2 call to make a window with a dialog-type alert
frame and use TaskMaster to make the window a "modal dialog", or to use Apple
II Developer Technical Support's "FakeModalDialog" routines.

------------------------------------------------------------------------------
Daniel M. Zimmerman             InterNet - dzimmerman@gnh-tff.cts.com
  TFF Enterprises       America Online - Surak TFF    CompuServe - 76407,2246
 
"Learn reason above all. Learn clear thought; learn to know what is from what
seems to be, and what you wish to be. This is the key to everything: the truth
of reality, the reality of truth. What IS will set you free."
                                                        - Surak Of Vulcan