[fxruby-users] storing widget references in hash

Jacob Hanson jacdx at jacobhanson.com
Sun May 15 18:46:16 EDT 2005

Hello List,

I'm keeping an hash of controls I create, e.g.

myArray['label'] = FXLabel.new(...
myArray['dropdown'] = FXComboBox.new(...

But, if I 'p' the hash, instead of seeing references to the widget
objects, all that gets stored are the labels for the controls, as if I
was saying FXComboBox.new().to_s. But I'm not. Hash doesn't do an
internal type conversion of values does it? Any other reason why I
would be seeing this?

       _/ _/  _/   Jacob Hanson
      _/ _/_/_/   mailto:jacdx at jacobhanson.com
 _/_/_/ _/  _/   http://www.jacobhanson.com

More information about the fxruby-users mailing list