1. RE: IDE-Windows events called???
- Posted by "Derek Parnell" <ddparnell at bigpond.com> Jan 05, 2004
- 354 views
> -----Original Message----- > From: sixs [mailto:sixs at ida.net] > Subject: IDE-Windows events called??? > > > > Hello, > I am having trouble determining when events are called in a project > created in IDE. > For instance : > MyWin_onPaint (integer self, integer event, sequence > params)--params is > ( int x1, int y1, int x2, int y2 ) > I am looking in document for win32lib and don't know when an > event such > as above is called. > jvandal In the win32lib docs, under the 'Events' topic, you can find details about w32HPaint. Basically though, this gets triggered whenever Windows decides that your control needs to be redrawn. This usually happens when another control has been on top of it and has now been moved away, thus 'revealing' this control. Mostly, Windows handles the redrawing of normal controls, but some controls need you help. Commonly, you would do this if you have been drawing or writing directly onto the Window background area. For details about other events, look in the win32lib docs and if that doesn't help, let me know so I can improve them. -- Derek