picoe / Eto

Cross platform GUI framework for desktop and mobile applications in .NET
Other
3.57k stars 325 forks source link

TextBox.OnTextChanging(..) isn't called in the right order #536

Open Ummon opened 8 years ago

Ummon commented 8 years ago

I create my own TextBox :

type DigitBox() as this =
    inherit TextBox()
    // [..]
    override this.OnTextChanging(e: TextChangingEventArgs) =
    printfn "OnTextChanging, e.Text: %A" e.Text
   // [..]

When the user select the textbox content (was "2" for instance) and type one key ("3" in this example), OnTextChanging is called twice:

OnTextChanging, e.Text: "3"
OnTextChanging, e.Text: ""

I think the order isn't correct and the calls should be swapped.

Eto.Forms and Eto.Platform.Gtk3 version: 2.2.0

cwensley commented 8 years ago

Thanks for reporting the issue! I'll take a look. It is probably GTK3 specific, but I'll check GTK2 as well.