[fxruby-users] FXOptionMenu setCurrent method

Jeroen van der Zijp jeroen at fox-toolkit.org
Thu Mar 30 20:43:57 EST 2006

On Wednesday 29 March 2006 13:47, Mark Volkmann wrote:
> I've got a FXOptionMenu that is associated with an FXPopup that has
> several FXOptions.
> At some point after creating this, I'd like to set the current value
> of the option menu. I see that FXOptionMenu has a setCurrent method,
> but it's not clear to me what I'm suppose to pass to that. Does anyone
> know how to use that method or if that's the normal way to set the
> value of an option menu?

My recommendation is to call setCurrentNo() which simply takes the index;
the other takes a pointer to FXOption which is often not as convenient!

	- Jeroen

| Copyright (C) 19:40 03/30/2006 Jeroen van der Zijp.   All Rights Reserved. |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/fxruby-users/attachments/20060330/12e2f5be/attachment.bin 

More information about the fxruby-users mailing list