bugDotGNU Portable.NET - Bugs: bug #12814, Cannot reparent Forms

 
 

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

bug #12814: Cannot reparent Forms

Submitted by:  Heiko Weiss <brubbel>
Submitted on:  Tue 26 Apr 2005 10:21:01 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu 08 Sep 2005 12:11:30 PM UTC, comment #5:

fixed in cvs

Deryk Robosson <drobosson>
Project Member
Thu 08 Sep 2005 11:57:22 AM UTC, comment #4:

Problem still exists.
When you create a Form as TopLevel form, with it's visibility "Visible" set to true and now try to set the TopLev to false and then Repüarent the Form it crashes.
The problem is, that the toolkitwindow was created as toplevel window, which cannot be reparent.
I fixed that. See Patch #4404.

Heiko Weiss <brubbel>
Project Member
Mon 02 May 2005 10:19:23 AM UTC, comment #3:

hmm..okay. Looking at System.Windows.Forms/Form.cs, topLevel field doesn't seem to do anything relating to the toolkit from what I can tell. Will dig further.

Deryk Robosson <drobosson>
Project Member
Mon 02 May 2005 09:53:55 AM UTC, comment #2:

Deryk: Your testcase is inaccurate. Try mine, it crashes:

Uncaught exception: Xsharp.XInvalidOperationException: Die angeforderte Operation kann nicht aufWidgets an oberster Ebene angewendet werden
at Xsharp.TopLevelWindow.Reparent(Widget, Int32, Int32) in ./TopLevelWindow.cs:738
at System.Drawing.Toolkit.DrawingTopLevelWindow.System.Drawing.Toolkit.IToolkitWindow.Reparent(IToolkitWindow, Int32, Int32) in ./DrawingTopLevelWindow.cs:169
at System.Windows.Forms.Control.Reparent(Control) in ./Control.cs:5403
at System.Windows.Forms.Control.set_Parent(Control) in ./Control.cs:1446
at FormTest.ButtonClicked(Object, EventArgs)
at System.EventHandler.Invoke(Object, EventArgs)
at System.Windows.Forms.Control.OnClick(EventArgs) in ./Control.cs:4493
at System.Windows.Forms.Button.OnClick(EventArgs) in ./Button.cs:80
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs) in ./Button.cs:107
at System.Windows.Forms.Control.System.Drawing.Toolkit.IToolkitEventSink.ToolkitMouseUp(ToolkitMouseButtons, ToolkitKeys, Int32, Int32, Int32, Int32) in ./Control.cs:6095
at System.Drawing.Toolkit.DrawingWindow.OnButtonRelease(Int32, Int32, ButtonName, ModifierMask) in ./DrawingWindow.cs:474
at Xsharp.InputOnlyWidget.DispatchEvent(XEvent&) in ./InputOnlyWidget.cs:656
at Xsharp.InputOutputWidget.DispatchEvent(XEvent&) in ./InputOutputWidget.cs:575
at Xsharp.Display.DispatchEvent(XEvent&) in ./Display.cs:788
at Xsharp.Display.HandleNextEvent(Boolean) in ./Display.cs:628
at Xsharp.Display.WaitForEvent() in ./Display.cs:678
at Xsharp.Application.WaitForEvent() in ./Application.cs:353
at System.Drawing.Toolkit.DrawingToolkit.ProcessEvents(Boolean) in ./DrawingToolkit.cs:170
at System.Windows.Forms.Application.RunMessageLoop(ApplicationContext) in ./Application.cs:426
at System.Windows.Forms.Application.Run(Form) in ./Application.cs:576
at FormTest.Main()

Erich Kitzmüller <ammoq>
Sun 01 May 2005 04:23:54 AM UTC, comment #1:

Unable to duplicate with CVS checked out 01.May.

Deryk Robosson <drobosson>
Project Member
Tue 26 Apr 2005 10:21:01 AM UTC, original submission:

Creating forms and try to reparent it, throws exception.
Form->TopLevel = false;

Form->Parent = myControl;

new in cvs got today 2005/04/26

Heiko Weiss <brubbel>
Project Member

 

Attached Files
file #2909:  FormTest2.cs added by ammoq (982B - text/x-csharp)
file #2905:  moo.cs added by drobosson (1KiB - application/octet-stream - Test cased used with 01.May CVS check out.)

 

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 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 08 Sep 2005 12:11:30 PM UTCdrobossonStatusWorks For Me=>Fixed
  Open/ClosedOpen=>Closed
Mon 02 May 2005 09:53:55 AM UTCammoqAttached File-=>Added FormTest2.cs, #2461
Sun 01 May 2005 04:23:54 AM UTCdrobossonStatusNone=>Works For Me
  Attached File-=>Added moo.cs, #2457

Back to the top


Powered by Savane 3.1-cleanup1