From: Jamey Cribbs Date: 2004-05-12T04:42:38+09:00 Subject: Re: Some pointers needed on FXRuby-based app Phil Roberts wrote: >When I hit cancel it behaves as I want, i.e. it returns to the main >customer listing. However if I hit save it resets the main view >pane to a blank placeholder and doesn't close the dialogue box. >Instead I have to force the closure by hitting cancel and then >return to the customer listing via the main menu. > > Try this... 1). Rename the onCmdSave method to onCmdAccept. 2). Make sure you have the command "super" in your onCmdAccept method. I usually name my method "onCmdAccept". I think that when I sent you the example and changed the method name to onCmdSave, what was happening was that the call to "super" was not invoking the FXDialog's onCmdAccept method. It's probably in this method that the dialog box get's closed. I'm shooting from the hip again. It's been a long time since I had to figure this part out, so my memory is a little fuzzy! :) Jamey Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. If you are not the intended recipient(s), you are hereby notified that any dissemination, unauthorized review, use, disclosure or distribution of this email and any materials contained in any attachments is prohibited. If you receive this message in error, or are not the intended recipient(s), please immediately notify the sender by email and destroy all copies of the original message, including attachments.