Mercurial > hg > ucis.core
comparison FBGUI/FBGUI.cs @ 31:af27992b5972
FBGUI: Added Form Closed event
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Thu, 18 Apr 2013 22:45:54 +0200 |
parents | 24e918d2ac18 |
children | ff1bc8445743 |
comparison
equal
deleted
inserted
replaced
30:24e918d2ac18 | 31:af27992b5972 |
---|---|
710 public class FBGForm : FBGDockContainer { | 710 public class FBGForm : FBGDockContainer { |
711 private Point prevPosition = Point.Empty; | 711 private Point prevPosition = Point.Empty; |
712 private NonClientOps moveresize = 0; | 712 private NonClientOps moveresize = 0; |
713 private String text = String.Empty; | 713 private String text = String.Empty; |
714 public event EventHandler TextChanged; | 714 public event EventHandler TextChanged; |
715 public event EventHandler Closed; | |
715 public Boolean Sizable { get; set; } | 716 public Boolean Sizable { get; set; } |
716 public Boolean Movable { get; set; } | 717 public Boolean Movable { get; set; } |
717 public Boolean Closable { get; set; } | 718 public Boolean Closable { get; set; } |
718 [Flags] | 719 [Flags] |
719 private enum NonClientOps : int { | 720 private enum NonClientOps : int { |
845 g.DrawLine(Pens.Black, Bounds.Width - 5 - 14 + 3, 4 + 14 - 3, Bounds.Width - 5 - 14 + 14 - 3, 4 + 3); | 846 g.DrawLine(Pens.Black, Bounds.Width - 5 - 14 + 3, 4 + 14 - 3, Bounds.Width - 5 - 14 + 14 - 3, 4 + 3); |
846 } | 847 } |
847 } | 848 } |
848 public void Close() { | 849 public void Close() { |
849 Parent.RemoveControl(this); | 850 Parent.RemoveControl(this); |
851 RaiseEvent(Closed); | |
850 } | 852 } |
851 } | 853 } |
852 public class FBGDesktop : FBGContainerControl { | 854 public class FBGDesktop : FBGContainerControl { |
853 FBGContainerControl windowcontainer; | 855 FBGContainerControl windowcontainer; |
854 FBGContainerControl menucontainer; | 856 FBGContainerControl menucontainer; |