Forum: Ruby images in FXRuby

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Afabd225e57b433553138fead5a820d4?d=identicon&s=25 Raj Sahae (rajsahae)
on 2007-01-17 00:54
I'm new to FXRuby, and I'm having a problem with displaying images.  I'm
simply trying to display an image in a vertical scroll window, with the
end result being a program that shows multiple images with vertical
scrolling.  I can get button icons to work just fine.  I have tried
using both FXImageView and FXImageFrame.  What am I doing wrong?  A
sample of my code is:

require 'fox16'
include Fox
theApp =

imageFile ="gm.jpg", "rb")
theMainWindow =, "Hello", nil, nil, DECOR_ALL,
400, 400)
firstWindow =,
image =,
imageView =, image)

This topic is locked and can not be replied to.