Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!howland.reston.ans.net!agate!darkstar.UCSC.EDU!news.hal.COM!decwrl!netcomsv!netcom.com!billw
From: billw@netcom.com (William Wright)
Subject: ParcPlace scrollbars and dialog boxes
Message-ID: <billwD0x7qK.4B0@netcom.com>
Organization: NETCOM On-line Communication Services (408 261-4700 guest)
Date: Fri, 16 Dec 1994 20:32:44 GMT
Lines: 29

I am trying to bring up a dialog box with a selection list on it.
When I bring up this dialog I have one of the items in the list 
already selected. This works fine. What I am trying to do now is 
have the box scroll down to where the selected item is. I know how 
to do this on a window, but the dialog box creates some problems. 
On a window I do the following in the #postOpenWith method:

(aBuilder componentAt: #vendorList) widget makeVisible: (vendorList selection).

The problem with dialog boxes is where to put this code. Dialog boxes 
don't ever call the #postOpenWith method. This code can not be 
done before the #open method because the widget hasn't been drawn on 
the screen nor can it be done in the #postBuildWith method for the same 
reason. The widget is not yet drawn on the screen. You can't 
execute the code after the #open message because control doesn't 
return from the #open message until after the user has closed the dialog 
box.

I have also poked around in the structure of this widget with no luck. 
Does anyone know how to do this without going in and messing around with the 
ParcPlace dialog box hierarchy?
 
Bill

-- 
Bill Wright	(billw@netcom.com)
             or (bill_wright@mail.amsinc.com)
Home: (303) 494-7232
Work: (303) 969-3583
