# \[fxruby\] FXImageFrame/SEL\_LEFTBUTTONRELEASE

**URL:** <https://www.ruby-forum.com/t/fxruby-fximageframe-sel-leftbuttonrelease/133539>\
**Category:** Ruby\
**Created:** [April 1, 2008, 12:50pm UTC](https://www.ruby-forum.com/t/fxruby-fximageframe-sel-leftbuttonrelease/133539 "2008-04-01T12:50:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![klaashaas](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/838e76/32.png) [@klaashaas](https://www.ruby-forum.com/u/klaashaas)\
**Post date:** [April 1, 2008, 12:50pm UTC](https://www.ruby-forum.com/t/fxruby-fximageframe-sel-leftbuttonrelease/133539/1 "2008-04-01T12:50:40Z")

</div>

Hi,

I have a FXImageFrame widget and I would like it to show another image  
when I click on it.

I’m having no luck with receiving a onclick via SEL\_LEFTBUTTONRELEASE.

…  
imageframe=FXImageFrame.new(mainwindow,the\_image,LAYOUT\_EXPLICIT,0,0,20,20)  
imageframe.connect(SEL\_LEFTBUTTONRELEASE) {p ‘onclick received’}  
…

What is it that I’m missing?

Thanks in advance,  
Mathijs.

PS. I asked this question on the fxruby-users mailing list last week,  
but I didn’t get a reply, hence my post here.
