[Mono-winforms-list] Month Calendar and NumericUpDown Control

Peter Dennis Bartok peter at novonyx.com
Fri Jun 10 12:54:33 EDT 2005


John,

I cannot reproduce the described issue with Value not being set when on a 
invisible control. I did a testcase where I set the value before the control 
is added to it's parent, and the control is only displayed if I click a 
button. The control then shows up properly, with the set value in the text 
field.

The Readonly issue is a textbox issue, which will be fixed as part of the 
ongoing textbox work

I fixed focus handling, which affected keyboard handling, as of r45760. It 
will need more fixing, though, since we don't handle tabbing off the control 
properly yet.

Cheers,
  Peter

-----Original Message-----
From: "jba" <jba-mono at optusnet.com.au>
To: "Mono-Winforms-List (E-mail)" <mono-winforms-list at ximian.com>
Date: 10 June, 2005 06:37
Subject: [Mono-winforms-list] Month Calendar and NumericUpDown Control


>Hey guys,
>
>I saw a commit that said NumericUpDown was implemented so I wired it
>into MonthCalendar (which should now be considered feature complete).
>
>Along the way I discovered what I think are bugs in NumericUpDown. If
>NumericUpDown is not actually complete yet then feel free to ignore
>these points:
>
>- Setting the Value property for the numeric up down control while it's
>not visible results in that value not being set. I believe the flow is
>this:
> Set .Visible = false
> Set .Minimum
> .Value now has .Minimum as it's value
> Set .Value;
> .Value calls one of the updateedit method which inturn uses a parseedit
>method which for some reason reads the minimum value as the current text
>and so .Value gets reset to parsed minimum value.
>
>- It's not responding to Readonly property correctly (.ReadOnly = true
>means up/down buttons work but not text editing.
>
>- It seems to render buttons on windows for me, but not on linux
>
>- It doesn't seem to be handling the key press events (this may be an
>issue with the way I'm using it though).
>
>There was something else about the way MonthCalendar render's on linux
>but I can't remember it now. Will send that through when I remember.
>
>Regards,
>
>JBA
>
>_______________________________________________
>Mono-winforms-list maillist  -  Mono-winforms-list at lists.ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-winforms-list
>
> 



More information about the Mono-winforms-list mailing list