bugDotGNU Portable.NET - Bugs: bug #10854, Form.DesktopLocation not consistent

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #10854: Form.DesktopLocation not consistent

Submitter:  Erich Kitzmüller <ammoq>
Submitted:  Mon 01 Nov 2004 01:44:15 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Postponed Privacy:  Public
Assigned to:  None Open/Closed:  Open

Discussion

Tue 02 Aug 2005 10:14:19 AM UTC, comment #3: 

Revisited this one and I am unable to figure out exactly what is causing this.  The problem itself is clearly demonstrated with the test case code in comment #2.  The left/top fields in Control.cs indicate that they do in fact include the window dressings but I suspect another method somewhere may be altering the values.  Will revalidate this after Rich commits his work.

Deryk Robosson <drobosson>
Group Member
Tue 02 Nov 2004 08:42:21 PM UTC, comment #2: 

using System.Windows.Forms;
using System;
using System.Drawing;

public class FormTest : System.Windows.Forms.Form {
public FormTest() {
Button b = new  Button();
b.Left = 20;
b.Top = 20;
b.Text = "Click me";
b.Click += new System.EventHandler(ButtonClicked);
Controls.Add(b);
Closed += new System.EventHandler(FormClosed);
}

public void ButtonClicked(object sender, EventArgs e) {
FormTest f = new FormTest();
f.Visible = true;
f.DesktopLocation = DesktopLocation; should open new form at same position
Visible = false;
}

public void FormClosed(object sender, EventArgs e) {
Application.Exit();
}

static void Main() {
Application.Run(new FormTest());
}
}

Erich Kitzmüller <ammoq>
Tue 02 Nov 2004 11:58:36 AM UTC, comment #1: 

Do you have a test case that exhibits this behavior?

Deryk Robosson <drobosson>
Group Member
Mon 01 Nov 2004 01:44:15 AM UTC, original submission:  

"set" sets the corner of the outer border (including the border given by the window manager), but "get" returns the corner of the inner window (without the border drawn by the window manager).

Erich Kitzmüller <ammoq>

 

Attached Files

Attached Files
file #912:  FormTest.cs added by ammoq (695B - text/x-csharp)

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

History

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-08-02 drobosson StatusNone Postponed
2004-11-02 ammoq Attached File- Added FormTest.cs, #1829

Back to the top

Powered by Savane 3.16.
Corresponding source code