[Mono-bugs] [Bug 339002] New: PropertyGrid: Reset is ignored for some properties

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Nov 4 15:25:48 EST 2007


https://bugzilla.novell.com/show_bug.cgi?id=339002

           Summary: PropertyGrid: Reset is ignored for some properties
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: andyhume32 at yahoo.co.uk
         QAContact: mono-bugs at ximian.com
          Found By: ---


Sample app from trunk/winforms/propertygrid/swf-propertygrid.exe.  After
changing the color of BackColor to e.g. Red), right-click on the BackColor
cells and select Reset.  The TextBox background immediately changes to white. 
Then click elsewhere -- either another window, or a different cell -- and the
background color returns to the previously chosen one.


The same behaviour is seen with most of the other properties (HideSelection,
PasswordChar); other can't be verified due to the behaviour noted below; and
finally some do seem to work but with other issues.  One that appears to work
is Cursor: change to (e.g.) HSplit, move cursor over textbox and see it show
the selected cursor, now <Reset> Cursor, now the default cursor is seen, but
the field still says "HSplit", now click another cell and see the cursor value
change to "[Cursor:Default]".


Finally note however that the context menu is NOT seem on MSFT running the same
app, so no Reset action.  Is the menu added by VisualStudio itself when the
forms/etc designer uses the PropertyGrid?  Or is there a property to enable it
-- I can't find it...  Anyway I'm going to go away and extend my simple repro
case to add a button to call PropertyGrid.ResetSelectedProperty manually to see
what occurs in various cases with MSFT -- how is the DefaultValue attribute
used etc.


(Beware: TextBox _apparently_ _doesn't_ refresh itself on various property
changes, so don't immediately blame the PropertyGrid if some setting/resetting
appears to be discarded.  For instance if one changes TextAlign, the text in
the TextBox is only re-aligned on manual refresh -- cover dialog, uncover
dialog.  How important is it that controls refresh themselves on property
change...?)


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list