First time here? Check out the FAQ!
1

modeless message window

How can I create a temporary modeless message window from an extension plugin? I just need something to show a window with a custom text, that stays visible until I manually destroy it after some task has been completed.

steve1964's avatar
114
steve1964
asked 2022-06-17 08:37:54 -0600
Wingware Support's avatar
4.2k
Wingware Support
updated 2022-07-15 08:42:03 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

0

Take a look at the implementation of CAPIApplication.ShowMessageDialog in wingapi.py. That's basically what you want but you need access to the variable dlg afterwards to close the message window from your code so you can't call the API. To close the dialog, call dlg.Close(). You may also want to specify and implement a Cancel button, of course.

There are also some internals that might be useful if you want to show a progress bar & status text, and we'll look at exposing that in the API in the future. If youd have the Wing sources and want to look at that, it's CDetailsProgressDialog in src/guiutils/dialogs.py.

Wingware Support's avatar
4.2k
Wingware Support
answered 2022-06-17 09:57:01 -0600, updated 2022-06-17 10:08:14 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss.

Add Answer