Skip to content

Commit

Permalink
Windows: Remove SS_CENTERIMAGE to allow multiline Labels
Browse files Browse the repository at this point in the history
  • Loading branch information
simonkrauter committed Sep 24, 2018
1 parent 3813704 commit 7da7638
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/nigui/private/windows/platform_impl.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1320,7 +1320,7 @@ method `enabled=`(button: NativeButton, enabled: bool) =
# ----------------------------------------------------------------------------------------

proc init(label: NativeLabel) =
label.fHandle = pCreateWindowExWithUserdata("STATIC", WS_CHILD or SS_CENTERIMAGE, 0, pDefaultParentWindow, cast[pointer](label))
label.fHandle = pCreateWindowExWithUserdata("STATIC", WS_CHILD, 0, pDefaultParentWindow, cast[pointer](label))
label.Label.init()

method `text=`(label: NativeLabel, text: string) =
Expand Down
1 change: 0 additions & 1 deletion src/nigui/private/windows/windows.nim
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ const
SM_CXVSCROLL* = 2
SPI_GETWORKAREA* = 0x0030
SPI_SETKEYBOARDCUES* = 0x100B
SS_CENTERIMAGE* = 0x00000200
SW_HIDE* = 0
SW_MAXIMIZE = 3
SW_SHOW* = 5
Expand Down

0 comments on commit 7da7638

Please sign in to comment.