[fxruby-users] FXChoiceBox

Lyle Johnson lyle at knology.net
Mon Feb 27 19:21:35 EST 2006


On Feb 27, 2006, at 4:24 PM, Uwe Hartl wrote:

> 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?

Your code looks fine; there appears to be a bug in the wrappers for 
this function. I've added a bug report and this should get fixed in the 
next release.



More information about the fxruby-users mailing list