Closed mark-summerfield closed 4 years ago
This works for me unter Linux and Windows:
var window = newWindow()
window.x = window.x + 20
Can you show a small program to reproduce the error?
As your small program shows, a small program doesn't produce the error. I plan to release a game written in pure nim/nigui with the load/save of window size/pos commented out (since it exhibits this bug) and I'll try to remember to add a link to it then.
Sorry, it was my bug not yours.
I have a
Window
and can set itswidth
andheight
. But when I try to get is position or size, e.g.,let x = mainwindow.x
I get an error:What puzzles me is that
x
does appear to be a public field. I'd like to be able to get/set the size and pos so that I can load/save them for the user.