[Mono-bugs] [Bug 325264] Form: Wrong dialog sizes in Reflector

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 25 15:56:32 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=325264#c1


Everaldo Canuto <ecanuto at novell.com> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |ecanuto at novell.com




--- Comment #1 from Everaldo Canuto <ecanuto at novell.com>  2007-10-25 13:56:32 MST ---
Sample code from .NET Reflector:

protected override void OnSizeChanged(EventArgs e)
{
        this.acceptButton.Top = this.ClientSize.Height - 10
                - this.acceptButton.Height;
        this.acceptButton.Left = this.ClientSize.Width - 10
                - this.acceptButton.Width - 5 - this.cancelButton.Width;

        this.cancelButton.Top = this.ClientSize.Height - 10
                - this.cancelButton.Height;
        this.cancelButton.Left = this.ClientSize.Width - 10
                - this.cancelButton.Width;

        this.toTextBox.Width = this.ClientSize.Width -
        this.toTextBox.Left - 10;

        this.fromTextBox.Width = this.ClientSize.Width -
        this.fromTextBox.Left - 10;

        this.subjectTextBox.Width = this.ClientSize.Width -
        this.subjectTextBox.Left - 10;

        this.messageTextBox.Width = this.ClientSize.Width -
        this.messageTextBox.Left - 10;
        this.messageTextBox.Height = this.acceptButton.Top -
        this.messageTextBox.Top - 10;

        base.OnSizeChanged(e);
}


-- 
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