Re: [Fxruby-users] Strange Behaviour under Win32 with FXRuby
Status: Inactive
Brought to you by:
lyle
From: Lyle J. <jl...@cf...> - 2003-12-10 19:42:25
|
Stef T wrote: > Actually, i went back to a tried and tested debugging > technique called 'remarking' :) Basically, an earlier > version was working as expected under Win32, so checked > it out from CVS, compared the differences and one by > one remarked out the bits and re-ran it. When you referred to it as "remarking", I thought for a moment that you were referring to the technique in which the bug disappears as soon as you tell someone else about it ;) > One last teeny tiny probably stupid question, which i know > breaks OO design but, how would i tie a 'connect' onto a > button from another class ? Can you typecast the connect > so that it knows its going onto a FXButton in an instance > variable or is there a 'widget controller' which i can > query to get an FXButton 'handle' passed to me? If I understand what you're asking, I think I would just second Hugh's recommendation of putting whatever code is necessary in the block to call the desired method on the other button, e.g. button1.connect(SEL_COMMAND) { button2.doSomething } Lyle |