Simon Krauter
Simon Krauter
To disallow the input of certain characters, you can use ``event.handled = true`` in the event handler. Example: https://github.com/trustable-code/NiGui/blob/master/examples/example_06_keyboard_events.nim#L29
Can you please give an example program which demonstrates your use case?
Thanks for the feedback :) You are right, it's very incomplete so far. Mostly I add only feateres when I need them. What features do you need?
I have just added support for bold font (commit https://github.com/trustable-code/NiGui/commit/eeae283cf8e45fa77fd13a23f3f91159398a22f0). Example: ```nim var button = newButton("Button with bold text") button.fontBold = true ``` Does this work for you? I guess...
@Araq Thank you for the hint. I wasn't aware of the 'finalizer' feature. I will replace the 'dispose' construct with finalizers.
@Dankr4d: It seems you have useful knowledge for this project. Please contact me so we can exchange our thoughts.
+1. With a sans serif font it would be the best notes app for me.
Is there any mac user who would like to implement macOS support for https://github.com/trustable-code/NiGui ?
Yes, the numbers should be updated. On my linux system the example_01_basic_app is now 407 kB.
NiGui does not open the file itself, it calls `GdipCreateBitmapFromFile` to load the file. Apparently Windows does not close the file. I found this: https://stackoverflow.com/questions/4978419/c-gdi-loading-an-image-from-a-file-then-deleting-the-file-before-unloading