« Return to Thread: updata of a value from outside

Re: updata of a value from outside

by Lyle Johnson-4 :: Rate this Message:

Reply to Author | View in Thread


On Jun 13, 2009, at 4:23 PM, jabowen wrote:

> I have a button in the test gui that runs a random number generator  
> class
> outside of the gui.  How do I get the field to update inside the  
> gui?  It
> creates the number but and puts it but does not update the field.

You need to be sure to update the value of the data target. Try  
changing your button action to this:

        activate_button.connect(SEL_COMMAND) do
                @rand_num.current_addr
                @intTarget.value = $current_addr
        end

Hope this helps,

Lyle
_______________________________________________
fxruby-users mailing list
fxruby-users@...
http://rubyforge.org/mailman/listinfo/fxruby-users

 « Return to Thread: updata of a value from outside