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

Submitter:  Heiko Weiss <brubbel>
Submitted:  Tue 26 Apr 2005 10:21:01 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

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

fixed in cvs

Deryk Robosson <drobosson>
Group 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>
Group 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>
Group 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>
Group 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>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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

 

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.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-09-08 drobosson StatusWorks For Me Fixed
    Open/ClosedOpen Closed
2005-05-02 ammoq Attached File- Added FormTest2.cs, #2461
2005-05-01 drobosson StatusNone Works For Me
    Attached File- Added moo.cs, #2457

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code