From: Dossy Date: 2002-05-16T15:11:18+09:00 Subject: Re: Can you define an event when an FXMDIChild gets focus? On 2002.05.16, David Naseby wrote: > > From: Dossy [mailto:dossy@panoptic.com] > > In an MDI app, how can you define an event that gets kicked off > > when a MDI child window gets focus? > > Try (in the mditest.rbw) adding the line > mdichild = createTestWindow(10, 10, 400, 300) > mdichild.connect(SEL_FOCUSIN){|send, sel, ev| setTitle(send.getTitle)} Thanks! To define event handlers you use #connect ... duh. -- Dossy -- Dossy Shiobara mail: dossy@panoptic.com Panoptic Computer Network web: http://www.panoptic.com/ "He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on." (p. 70)