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

Submitted by:  Erich Kitzmüller <ammoq>
Submitted on:  Mon 01 Nov 2004 01:44:15 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Postponed
Privacy: PublicAssigned to: None
Open/Closed: Open

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>
Project 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>
Project 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
file #912:  FormTest.cs added by ammoq (695B - text/x-csharp)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Tue 02 Aug 2005 10:14:19 AM UTCdrobossonStatusNone=>Postponed
Tue 02 Nov 2004 08:42:21 PM UTCammoqAttached File-=>Added FormTest.cs, #1829

Back to the top


Powered by Savane 3.1-cleanup1