[fxruby-users] SEL_CHANGED event for FXText and FXTextfield

Jeroen van der Zijp jeroen at fox-toolkit.org
Thu Jan 25 08:10:12 EST 2007


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.

	Regards,


		- Jeroen

-- 
+----------------------------------------------------------------------------+
| Copyright (C) 07:00 01/25/2007 Jeroen van der Zijp.   All Rights Reserved. |
+----------------------------------------------------------------------------+


More information about the fxruby-users mailing list