[fxruby-users] SEL_CHANGED event for FXText and FXTextfield
Philippe Lang
philippe.lang at attiksystem.ch
Thu Jan 25 08:20:02 EST 2007
Jeroen van der Zijp wrote:
> On Thursday 25 January 2007 01:50, Philippe Lang wrote:
>> Hi,
>>
>> I have noticed a small difference between the SEL_CHANGED event of an
>> FXText and an FXTextfield: in an FXText, the SEL_CHANGED event gets
>> fired even if the content does not "change", like when the selection
>> changes. You can test that with the following test program.
>>
>> I imagine this is no bug at all. But from a "symetry" point of view
>> :), I was expecting both events to mean the same in two similar
>> widgets. The equivalent event for an FXText is actually SEL_REPLACED.
>> It took me some time to figure it out!
>
> I'm actually thinking of FXTextField as a kind of valuator [like
> FXSlider and FXDial], and FXText as something else.
>
> Its often a judgement call as you can also come up with arguments why
> FXTextField should be like FXText.
OK I understand now, this is clear.
Anyway, this is really a detail, FXRuby works just fine, and let me
thanks you again for that!
Cheers,
Philippe
More information about the fxruby-users
mailing list