home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!swrinde!emory!europa.asd.contel.com!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!sunic!lunic!my!sm-emac15.sm.luth.se!matti
- From: matti@my.sm.luth.se (Matti Larborn)
- Newsgroups: comp.sys.mac.programmer
- Subject: Help updating windows
- Message-ID: <1338@my.sm.luth.se>
- Date: 5 Nov 92 11:51:28 GMT
- Sender: news@sm.luth.se
- Organization: Lule} University
- Lines: 23
- X-UserAgent: Nuntius v1.1.1d11
- X-XXMessage-ID: <A71EC94D4501037B@sm-emac15.sm.luth.se>
- X-XXDate: Thu, 5 Nov 92 11:51:25 GMT
-
- You can use two updating modes for windows in the toolbox.
-
- 1) Each time an update event occurs you redraw the content of the window
- requested.
-
- 2) You set the window picture to a pict. The toolbox will now redraw the
- windows contents each time it is needed.
-
- How should this second approach be implemented?
-
- 1) Should I use OpenPicture and then ClosePicture to create a window
- picture? Then SetWindowPic to bind my window to the pict. Would this do
- it?
- 2) Or must i use OpenPicture and ClosePicture every time I draw in the
- window?
- 3) Something else...
-
- I am using Think Pascal 4.0.1
-
- The first approach makes my application crash on the ClosePicture call!
-
-
- --Matti Larborn, Sweden.
-