[fxruby] FXImageFrame/SEL_LEFTBUTTONRELEASE

  • Thread starter Mathijs Claassen
  • Start date
M

Mathijs Claassen

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,075
Latest member
MakersCBDBloodSupport

Latest Threads

Top