Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!pa.dec.com!decuac!haven!mimsy!yogurt From: yogurt@mimsy.umd.edu (Rob Crittenden) Newsgroups: comp.lang.pascal Subject: Timer in TPW Keywords: timer, TPW Message-ID: <32937@mimsy.umd.edu> Date: 14 Apr 91 17:37:41 GMT Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 21 I'm having problems getting my app to recieve wm_timer callbacks. I do a SetTimer(HWindow, 1, 1000, nil) in my Init (that's my TObject.Init, not TApplication.Init) and have in my object: Test.Timer(var Msg: TMessage) virtual wm_First + wm_Timer; and the method of Timer only brings up a messagebox to say it got the callback. The problem is, I seem to be missing all of the wm_timer messages. Also, I'm trying to get a window to start out iconified and I can't figure that one out either. Right now, the best I can do is to get it to come up and then iconify it (by using ShowWindow(HWindow, sw_ShowMinimized) or something similar). Any ideas? -- +------------------------------------------------------------------------+ | yogurt@cs.umd.edu Robert Comp Sci Dept, U of Md | | uunet!cs!yogurt Crittenden College Park, MD 20742 | +------------------- so much beer, so little time -----------------------+