diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-12 03:37:29 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-08-12 03:37:29 +0200 |
| commit | 80ceca9f199f37928f8c3068d07732b77d45156f (patch) | |
| tree | 23cc31124f141dfc7919581d8cfab381a4ebc977 /src/GraphicObjects/Window.cs | |
| parent | 2b62c4b6eefdeaf3ddb4247b6241e87ee2345a6a (diff) | |
* Crow.csproj, Default.style, button.svg, buttest.svg, buttest2.svg, buttest4.svg, 0.crow:
test and divers
* DirectoryView.cs:
SelectedItem property
* GraphicObject.cs:
Style class, EventInfo in styles
* Group.cs:
lock children
* Popper.cs:
alignment = top left, simple unpop on mouse leave, no additional tests
* Spinner.cs:
ctor order
* TabView.cs:
code clean
* Window.cs:
movable
* Style.cs, Interface.cs:
Style class
* StyleReader.cs:
parser exception, debug expression parsing
* Button.crow, Popper.goml, TabItem.crow, CheckBox.goml, Expandable.goml, MessageBox.goml, RadioButton.goml, ScrollingListBox.goml:
templating
* TreeView.crow:
scrollbar
* 1.crow:
showcase
* test.style, Tests.csproj, CheckBox2.imlt:
tests
Diffstat (limited to 'src/GraphicObjects/Window.cs')
| -rw-r--r-- | src/GraphicObjects/Window.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/GraphicObjects/Window.cs b/src/GraphicObjects/Window.cs index cbdbbb2c..be482e43 100644 --- a/src/GraphicObjects/Window.cs +++ b/src/GraphicObjects/Window.cs @@ -45,6 +45,7 @@ namespace Crow string _title; string _icon; bool _resizable; + bool _movable; bool hoverBorder = false; Container _contentContainer; @@ -100,7 +101,16 @@ namespace Crow NotifyValueChanged ("Resizable", _resizable); } } - + [XmlAttributeAttribute()][DefaultValue(true)] + public bool Movable { + get { + return _movable; + } + set { + _movable = value; + NotifyValueChanged ("Movable", _movable); + } + } #region GraphicObject Overrides public override void ResolveBindings () { @@ -120,7 +130,7 @@ namespace Crow return; } - if (this.HasFocus) { + if (this.HasFocus && _movable) { if (e.Mouse.IsButtonDown (MouseButton.Left)) { int currentLeft = this.Left; int currentTop = this.Top; |