[fxruby-users] [solved] Is there a way to handle window (FXDialogBox) "close event" ?

Vladimir Konrad v.konrad at lse.ac.uk
Mon Jan 14 05:57:47 EST 2008


> It depends on how the dialog box closes. Usually, you would use a  
> pattern like the following:
> 
> 	dialog = FXFileDialog.new(...) # or some other kind of dialog
> box #
> 	# ... add code here to initialize the text fields in the
> dialog box equal to program variables...
> 	#
> 	if dialog.execute != 0
> 		#
> 		# ... add code here to set the program variables
> based on the new values of the text fields...
> 	end
> 
> Hope this helps,

Thank you.

Vlad

Please access the attached hyperlink for an important electronic communications disclaimer: http://www.lse.ac.uk/collections/secretariat/legal/disclaimer.htm


More information about the fxruby-users mailing list