summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrustable-code <krauter.simon@arcor.de>2019-08-31 14:19:53 +0200
committertrustable-code <krauter.simon@arcor.de>2019-08-31 14:19:53 +0200
commit9748fe93cff44113118fa9e1c8f278aa00e07afc (patch)
tree7a6185cc399dc720f0a6463a32a881010b171b49 /src
parentae06979e84f1e635526aa1505b7d97eb4cccddd3 (diff)
downloadNiGui-9748fe93cff44113118fa9e1c8f278aa00e07afc.tar.gz
NiGui-9748fe93cff44113118fa9e1c8f278aa00e07afc.zip
Remove unused code
Diffstat (limited to 'src')
-rwxr-xr-xsrc/nigui/private/windows/platform_impl.nim7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/nigui/private/windows/platform_impl.nim b/src/nigui/private/windows/platform_impl.nim
index b171ff8..133d7dc 100755
--- a/src/nigui/private/windows/platform_impl.nim
+++ b/src/nigui/private/windows/platform_impl.nim
@@ -1060,12 +1060,6 @@ method setFontBold(control: ControlImpl, fontBold: bool) =
procCall control.Control.setFontBold(fontBold)
control.pUpdateFont()
-# method `setBackgroundColor=`(control: ControlImpl, color: Color) =
- # procCall control.Control.setBackgroundColor(color)
- # var brush = CreateSolidBrush(color.pColorToRGB32())
- # discard SetClassLongPtrA(control.fHandle, GCLP_HBRBACKGROUND, brush)
- # no effect
-
proc pGetTextSize(control: ControlImpl, text: string): Size =
let hdc = GetDC(control.fHandle)
result = pGetTextSize(hdc, control.fFont, text)
@@ -1472,7 +1466,6 @@ method `selectionEnd=`(textBox: NativeTextBox, selectionEnd: int) =
discard SendMessageA(textBox.fHandle, EM_SETSEL, cast[pointer](textBox.selectionStart), cast[pointer](selectionEnd))
method resetBackgroundColor(textBox: NativeTextBox) =
- # textBox.setBackgroundColor(rgb(255, 255, 0))
textBox.setBackgroundColor(GetSysColor(COLOR_WINDOW).pRgb32ToColor())
textBox.fUseDefaultBackgroundColor = true