Skip to content

Is it possible to change the Choice plugin's action when the box is closed? #260

Answered by lintalist
TFWol asked this question in Q&A
Discussion options

You must be logged in to vote

I don't think I ever used the ❌ to close it. We could disable the X so you can no longer use the X to close 👍 😄

1. Add -SysMenu to the Gui to disable the X so you can't use it https://github.com/lintalist/lintalist/blob/master/plugins/Choice.ahk#L50

Gui, 10:+Owner +AlwaysOnTop +Resize +MinSize -SysMenu

2. use Gosub, CancelChoice - I see there is a difference in how X and cancel are processed, so perhaps comment these two lines https://github.com/lintalist/lintalist/blob/0ad490957c76bb01480ae7480ffc3832b221eb02/lintalist.ahk#L2138C2-L2139
and above Gui, 1:-Disabled insert

Gosub, CancelChoice

Now I haven't actually tested this apart from just now, and the Gui, 10: and 10GuiClose: is used fo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TFWol
Comment options

Answer selected by TFWol
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants