From: Raj Sahae Date: 2007-03-03T12:48:39+09:00 Subject: help with FXDialogBox I want a DialogBox where I can click a button, perform some operation, possibly returning a value, and then the DialogBox should close (not hide, close). The methods I have tried for this have failed. My current setup, which gives me a seg fault, is: button = FXButton.new(parent, text, icon, nil, nil, 0, . . .) button.connect(SEL_COMMAND) do |sender, sel, data| self.download(card) self.handle(sender, ID_ACCEPT, data) end I also tried button = FXButton.new(parent, text, icon, nil, self, ID_ACCEPT . . .) button.connect(SEL_COMMAND) do self.download(card) end I can't get either of these to work. What information am I missing here? Raj