Open whitebyte opened 1 month ago
Also for some reason TextWidget
won't appear until the main window resize, but I guess it's a separate issue
If we replace
TextWidget
withButton
it works as intended. I'm looking here http://buggins.github.io/dlangui/ddox/dlangui/widgets/controls/TextWidget.html and I have an impression thatTextWidget
should be clickable. Am I missing something here?
Hi! I've looked into the source code, and clicking is actually disabled for TextWidget
. Actually-actually, clicking has to be explicitly enabled for a widget, which TextWidget
doesn't do, so it never gets to processing clicks. I don't know if it's a bug or intended behavior, and I don't know if clicking a TextWidget
should be allowed :)
Also for some reason
TextWidget
won't appear until the main window resize, but I guess it's a separate issue
I have tested this on Windows 11 and it works fine - TextWidget
is displayed as intended. Can you tell me what OS do you use and what platform (x11, SDL, etc)?
Indeed, setting clickable = true
did the trick.
I don't know if clicking a TextWidget should be allowed :)
I see no reason why not?
Can you tell me what OS do you use and what platform (x11, SDL, etc)?
It's Linux. I guess it's SDL
In either way - If clicking a TextWidget is not allowed then click
property should not be available too.
When I run this example and click the widget, nothing happens. If we replace
TextWidget
withButton
it works as intended. I'm looking here http://buggins.github.io/dlangui/ddox/dlangui/widgets/controls/TextWidget.html and I have an impression thatTextWidget
should be clickable. Am I missing something here?