[fxruby-users] Retriving FXTextField Data

Harold Worby haroldworby at earthlink.net
Mon Mar 28 23:59:59 EST 2005

OK Thanks,
Now I added the '.connect(SEL_COMMAND){' and the data is correct, but the
Accept button does not dimiss the diallog 'dlg'.
As I read the docs, FXButton.new(parent, text, icon, target, selector,
should be creating a button that will send the message 'selecotor'(ID_ACCEPT
hear) to the object 'target'(dlg here).
Wich is what it seemed to do before I added the .connect(SEL_COMMAND)
I expect it catch the SEL_COMMAND message, execute the {block} and then send
the ID_ACCEPT message. Why doesn't it?

	FXButton.new(buttons, "&Accept", nil, dlg, FXDialogBox::ID_ACCEPT,

-----Original Message-----
From: fxruby-users-bounces at rubyforge.org
[mailto:fxruby-users-bounces at rubyforge.org]On Behalf Of Joel VanderWerf
Sent: Monday, March 28, 2005 12:57 AM
To: H.Worby at kinsey.com; fxruby-users at rubyforge.org
Subject: Re: [fxruby-users] Retriving FXTextField Data

Harold Worby wrote:

> 	FXButton.new(buttons, "&Accept", nil, dlg, FXDialogBox::ID_ACCEPT,
> 		 print "Accept1 ",cell.row," ",txtName.text,"\n"
> 		 print "Accept2 ",cell.row," ",txtPath.text,"\n"
> 		 print "Accept3 ",cell.row," ",txtSize.text,"\n"
> 		 @table.setItemText(cell.row,1,txtName.text)
> 		 @table.setItemText(cell.row,2,txtPath.text)
> 		 @table.setItemText(cell.row,3,txtSize.text)
> 	    }

You are missing a ".connect(SEL_COMMAND)" before the { . I make that
mistake often :)
fxruby-users mailing list
fxruby-users at rubyforge.org

More information about the fxruby-users mailing list