Thanks. I got it working after fixing an incorrect DataSource reference to the TextBox. Nothing showed in the error log but it somehow stopped the keyup event from showing up. Now I can do an incremental search on a grid in a dialog, return it to the main form and process it. Very nice. Steve Rose ----------------------------------- On Thursday 13 August 2009 03:25:58 pm Steve Rose wrote: > I am trying to design a child search form called from a parent form. I have > been able to design a dialog form to which I can pass the parent form's > bizojb and I can get return values from the dialog back to the parent form. > The parent and child can communicate fine. The problem I can't overcome is > this: I want to do a regex search in the child dialog form but to do that I > need to capture the KeyUp events from a textbox in the dialog. These events > don't seem to fire when type in the textbox and I assume it is because of > the modal nature of a dialog. It looks like I can't use a dialog or maybe I > am completely off base. Any advice on how to design a regex search form > that can communicate with its parent? > Steve Rose
I have forgotten are you hand coding or using ClassDesigner to create the dialog?. To best of my knowledge controlling a dTextBox key events works the same in Dialog or a Form. So show us the code you are using to get the key strokes in the dialog. If this a special case dialog and you find no other way pass the dialog a reference to the calling form. Try something like this: myDialog = dabo.ui.dDialog(self, .........) myDialog.CallingForm = self Now myDialog.CallingForm can be used for whatever you see as required. or Any of the other methods of passing data to a dialog --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
