-
How do I put a margin on a container, I tried this:
```
var titleContainer = newLayoutContainer(Layout_Horizontal)
titleContainer.widthMode = WidthMode_Expand
titleContainer.xAlign = XAlign_Center…
-
addText method for textArea copies whole contents on each call:
`textArea.text = textArea.text & text`
It gets slow for big texts and lots of sequential adds.
At least for Win32 the preferred way…
-
Greetings, I have lately started using the NiGui library. However, I have recently encountered a problem where I am not able to change the `progressbar.value` as displayed [here](https://github.com/tr…
-
When trying to set the text field of an empty TextArea the system crashes with a SIGSEGV
Log:
```
/home/chris/.nimble/pkgs/nigui-0.2.4/nigui.nim(1012) addLine
/home/chris/.nimble/pkgs/nigui-0.2.…
-
I looked for it in the documents, but I didn't find it. I need to know how to work with more than one thread and keep the interface window usable, that is, without freezing.
Currently I use NiGui a…
-
For my SPA and Android app I might want an icon with rounded edges, but since iOS already forces all icons to have rounded edges, this can lead to some conflicts if the icon provided has transparency …
-
This code works fine with the default GC but SIGSEGV's with ARC. Found in https://github.com/trustable-code/NiGui.
### Example
```nim
type
Control = ref object of RootObj
fOnMouseButton…
ghost updated
4 years ago
-
I have a ``Window`` and can set its ``width`` and ``height``. But when I try to get is position or size, e.g., ``let x = mainwindow.x`` I get an error:
```
config.nim(65, 24) Error: undeclared field…
-
Consider following easy code:
```
import nigui
app.init()
proc render_text(text: string, font: string): Image =
result = newImage()
result.resize 1, 1
let canvas = result…
-
```nim
import nigui
app.init()
var window = newWindow("test")
var cPrime = newLayoutContainer(Layout_Horizontal)
var textarea = newTextArea()
window.add(cPrime)
cPrime.add(textarea)
text…