Close Modal-Dialog via code

This forum is for questions / discussions regarding development of addons / tweaks for MediaMonkey.

Moderator: Gurus

Andreas Weichert
Posts: 57
Joined: Fri Apr 05, 2013 4:51 am
Contact:

Close Modal-Dialog via code

Post by Andreas Weichert » Thu May 09, 2013 11:06 am

I want close a dialog via code - not the way with a button and ModalResult.
I look for Form.Close or something like this.
My Scripts
Take a look on my Android app Time Sheriff – the extensive all-in-one timer/reminder.

Andreas Weichert
Posts: 57
Joined: Fri Apr 05, 2013 4:51 am
Contact:

Re: Close Modal-Dialog via code

Post by Andreas Weichert » Thu May 16, 2013 4:16 pm

Noboddy here knows how to close a form ???
My Scripts
Take a look on my Android app Time Sheriff – the extensive all-in-one timer/reminder.

Peke
Posts: 11040
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: Close Modal-Dialog via code

Post by Peke » Thu May 16, 2013 5:24 pm

This is why it is modal window? So that you can force input?

If you are referring to yours Multi-Previewer I wonder why you even bothered with New Window when you can use toolbars?

FYI I'm planning to do review of form Scripting in MMW for post 4.1 in hope to be able to improve its features.
Best regards,
Pavle
MM Core Developer and Admin of free MediaMonkey extensions Hosting
Image
Image
How to add Images to forum

Andreas Weichert
Posts: 57
Joined: Fri Apr 05, 2013 4:51 am
Contact:

Re: Close Modal-Dialog via code

Post by Andreas Weichert » Fri May 17, 2013 4:43 am

Peke wrote:This is why it is modal window? So that you can force input?

If you are referring to yours Multi-Previewer I wonder why you even bothered with New Window when you can use toolbars?

FYI I'm planning to do review of form Scripting in MMW for post 4.1 in hope to be able to improve its features.
Thank you for your answer.
Because of the work flow the dialog has more than one exit-conditions: Click the close button and an automatic close if the last track was processed. In the current version I use a hack: Send the hotkey of the close button via shell. This works now.

You mean that I should integrate the controlling of Muli-Previewer in a taskbar ?
This would not allow all the features I need.
1. I had to make about 13 toobar buttons. Which clear to indentfy icons I should use for it. Custom images are not supported.
(Maybe it would work if I make 13 different scripts for every button and make 13 different *.ico - files in the setup)
2. The dialog has not only actions, it has setting to. The toolbar supports not other controls than buttons. Correct ?
3. The Toolbar has no focus so that no hotkeys are possible. Global hotkey would work - but which are free.
4. Its made for quick stepping through tracks - without the need of clicking with the mouse on different screen position. More I dont need in this situation.
5. I will integrate more functions in the previewer. Quick rating, tagging and quick sorting into different playlists.

But I will allow a non-modal form in the next version, so that one can access the main-window.

An general enhancemet of the scripting interface especialy the GUI would be nice. Better plugins would be possible.
1. Imageviews
2. Pure Imagebuttons, Image + Text buttons
3. Tabbed docking of panels - pack different panels (plugins) on different tabpages.
4. Fontbold=false does not work- only true works - with this style it would be possible to indicate something.
My Scripts
Take a look on my Android app Time Sheriff – the extensive all-in-one timer/reminder.

Post Reply