diff options
Diffstat (limited to 'src')
| -rwxr-xr-x | src/nigui.nim | 10 | ||||
| -rwxr-xr-x | src/nigui/private/windows/platform_impl.nim | 3 |
2 files changed, 2 insertions, 11 deletions
diff --git a/src/nigui.nim b/src/nigui.nim index b633094..c9dd0a9 100755 --- a/src/nigui.nim +++ b/src/nigui.nim @@ -1140,9 +1140,6 @@ proc newSaveFileDialog(): SaveFileDialog = result = new SaveFileDialog result.title = "Save File" result.directory = getCurrentDir() - result.defaultExtension = "" - result.defaultName = "" - result.file = "" proc isDown(key: Key): bool = fDownKeys.contains(key) @@ -1455,7 +1452,6 @@ proc newControl(): Control = result.ControlImpl.init() proc init(control: Control) = - control.tag = "" control.fWidthMode = WidthMode_Static control.fHeightMode = HeightMode_Static control.fWidth = 50.scaleToDpi @@ -2314,7 +2310,6 @@ proc newFrame(text = ""): Frame = proc init(frame: Frame) = frame.ControlImpl.init() - frame.fText = "" method text(frame: Frame): string = frame.fText @@ -2345,7 +2340,6 @@ proc newButton(text = ""): Button = proc init(button: Button) = button.ControlImpl.init() - button.fText = "" button.fOnClick = nil button.fWidthMode = WidthMode_Auto button.fHeightMode = HeightMode_Auto @@ -2392,7 +2386,6 @@ proc newCheckbox(text = ""): Checkbox = proc init(checkbox: Checkbox) = checkbox.ControlImpl.init() - checkbox.fText = "" checkbox.fOnClick = nil checkbox.fWidthMode = WidthMode_Auto checkbox.fHeightMode = HeightMode_Auto @@ -2437,7 +2430,6 @@ proc newLabel(text = ""): Label = proc init(label: Label) = label.ControlImpl.init() - label.fText = "" label.fWidthMode = WidthMode_Auto label.fHeightMode = HeightMode_Auto label.minWidth = 10.scaleToDpi @@ -2557,4 +2549,4 @@ method `wrap=`(textArea: TextArea, wrap: bool) = # ---------------------------------------------------------------------------------------- when useWindows(): include "nigui/private/windows/platform_impl" -when useGtk(): include "nigui/private/gtk3/platform_impl"
\ No newline at end of file +when useGtk(): include "nigui/private/gtk3/platform_impl" diff --git a/src/nigui/private/windows/platform_impl.nim b/src/nigui/private/windows/platform_impl.nim index d62ef22..4984628 100755 --- a/src/nigui/private/windows/platform_impl.nim +++ b/src/nigui/private/windows/platform_impl.nim @@ -435,7 +435,6 @@ proc processEvents(app: App) = discard DispatchMessageA(msg.addr) proc clipboardText(app: App): string = - result = "" if not OpenClipboard(nil): return let data = GetClipboardData(CF_TEXT) @@ -1558,4 +1557,4 @@ method `wrap=`(textArea: NativeTextArea, wrap: bool) = # TODO: allow to enable/disable word draw at runtime # It seems that this is not possible. # Word wrap depends on whether dwStyle contains WS_HSCROLL at window creation. - # Changing the style later has not the wanted effect.
\ No newline at end of file + # Changing the style later has not the wanted effect. |
