[fxruby-users] FXShutterItem Button Icon

Jeroen van der Zijp jeroen at fox-toolkit.org
Tue Mar 1 17:31:04 EST 2005

On Tuesday 01 March 2005 01:20 pm, Jamey Cribbs wrote:
> Hi, I googled for this but did not see anything, so I'm asking here.
> I have an FXShutter.  I'm trying to put an icon, with text below it, on 
> each FXShutterItem.  I have subclassed the FXShutterItem and, I am 
> trying to pass TEXT_BELOW_ICON to the FXShutterItem's embedded button, 
> but it does not appear to work.  Both the icon and the text show up on 
> the embedded button, but they are both centered and the text is centered 
> OVER the icon instead of below it.
> Is this possible?

1) FXShutterItem allows you to access FXButton, so there should be
   no reason to subclass.  

2) You can setIcon(), setText(), setJustify() and setIconPosition() on
   the button, and lay out the icon/text any way possible.


	- Jeoren

More information about the fxruby-users mailing list