Lua dialog capability questions #54
Replies: 8 comments
|
these dialogs use default gtk/qt/win32/carbon fonts/hotkeys and have no way to change the behavior on the lua side dunno about the scrollbar, but you can hide it like this
|
|
normal<space><star><star>bold<star><star><space>normal
normal bold normal Are you missing the spaces? |
|
Thank you guys for the responses.
4
Thanks again |
|
|
@JonnyTech @Skif-off Question 4 above |
|
i think you either misremember something, or you encountered some wierd window manager/lazarus bug. irrc inputlistbox code has been using bsDialog for the last 11 years at least, which should prohibit window resizing, and inputquery is a standard lazarus dialog |
|
Ahh thank you for confirming. |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I was thinking about some ideas, but first I had some questions about Lua dialogs in DC that I was wondering if you guys would be able to answer.
DC offers the following Lua dialogs
Dialogs.InputQueryDialogs.InputListBoxDC LUA DIALOG QUESTIONSCan different fonts be used?
Can different font sizes be used?
I know CSS/QSS can be used to alter fonts but was just wondering if this can be done in Lua specifically.
Can hotkeys be setup in Lua script?
For example in a
Dialogs.InputListBoxdialogcan
Right Arrowkey be assignedSelect/Open/Run/Set/ etc.the selected/highlighted item from a list of items?
New Question
4) I have asked this already but, I could have sworn that Lua dialog boxes (input, listbox) could be resized in the past?
I unfortunately do not have any old versions/AppImages to test this out to verify.
I kind of even thought that DC dialogs could be adjusted as well, such as the MakeDir dialog for creating new folders.
For a while now, I have noticed that no dialogs can be resized?
GITHUB FORMATTING QUESTIONSHope okay, I thought I would also sneak in a couple of Github formatting questions as well.
A) I think another user mentioned that this was possible but do not know how to do this.
Sometimes might want to post code that is very long, is there a way to paste longer code in a code box that contains a scroll bars so text/post is not overly long.
B) Still cannot seem to get bold text to work, does this work for anyone else?
I have read in the past that this feature was broken, but that was a while ago, hard to believe this is not fixed.
I have tried adding
**stars,__double underscore,<b>, and even<strong>prefix and suffix and none of them seem to work.Thank You
All reactions