Closed ZvontyFlugence closed 6 years ago
With my latest commit it should work as you expect. btw, I just saw that you want to create a text editor with NiGui, this is also my plan. I think would be interesting to chat with you e.g. on IRC. GitHub tip: use syntax highlighting when pasting source code.
Thanks for the update! As for assisting in creating a text editor with NiGui, as I said before I'm very new to Nim, and my project was mainly to learn more about Nim and GUI applications. I'm currently a high school senior heading into a Computer Science major for university, so I'm not sure how much help I'd be, but I'd love to chat and talk about it.
I have created a custom Label type to allow a canvas to draw and fill the label with custom colors that wouldn't normally work with a regular Label. However, after creating the MenuLabel type (see below), the label text no longer updates when its changed using
label.text = "text here"
wherelabel: MenuLabel
. I've already verified that the value is actually being changed and there is no issues with any values being nil, but is not drawn to the canvas with the updated text value. I believe it has something to do with the the text being drawn onto the canvas only once. If this is a basic fix, sorry, I am very new to Nim, but any ideas/clues as to how I can work around this?menu_label.nim
Initialization of MenuLabel object
Updating MenuLabel text
EDIT: added syntax highlighting for nim