[fxruby-users] FXChoiceBox

Uwe Hartl uwe.hartl at gmx.net
Mon Feb 27 17:24:53 EST 2006


can somebody give me an example of an FXChoiceBox?
			f = File.open("icons/bigpenguin.png", "rb")
			icon = FXPNGIcon.new(getApp(), f.read)
			choice = FXChoiceBox.ask(getApp(), opts = 0, caption = "Unbekannter 
Eintrag", text = "Wirklich neuen Wert anlegen?", icon, ["Ja", "Nein"])
			self.text = "" if choice == 1

This just does not work. What do I do wrong and where do I get such easy 
example code? 

Is there somewhere a database of code snippets for FXRuby?


Uwe Hartl                                e-mail: Uwe.Hartl at gmx.net
91522 Ansbach                            Telephone: (0981) 9724526
Am Mühlfeld 8                            Notfall-Mobil: (0160)90418680

More information about the fxruby-users mailing list