Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let MI remember window size and position on screen #7

Open
pstein opened this issue Feb 12, 2022 · 5 comments
Open

Let MI remember window size and position on screen #7

pstein opened this issue Feb 12, 2022 · 5 comments

Comments

@pstein
Copy link

pstein commented Feb 12, 2022

After MI is started I resize the window and move it to another position on screen.

Unfortunately MI does not remember the new size and pos.

Can this remembering added in the next release?

@lordmulder
Copy link
Owner

lordmulder commented Feb 12, 2022

It would be possible to add this, as an option. But, at this time, MediaInfo GUI does not even create/read a configuration file where such options (or the previous window position) could be persisted. So maybe in some future version...

@githottub
Copy link

Since probably most users will maximize the window (which is usually necessary to see as much of the media info as possible) a good compromise would be to default the app to maximized. This could be coded without any need to create/read a configuration file.

@lordmulder
Copy link
Owner

lordmulder commented Aug 20, 2024

Simply create a shortcut to MediaInfoXP.exe, edit the properties of the shortcut and change "Run:" to "Maximized" 😏

@githottub
Copy link

Yeah, I know but there will be many others who aren't aware of this method. Therefore, I was thinking if you just coded it to open maximized, since that's how most people will need to use it anyway, it would save you from dealing with future issues similar to this one being posted. Just a thought...

@lordmulder
Copy link
Owner

lordmulder commented Aug 28, 2024

This is kind of a "standard" method 😏

There is a reason why the main() function for Windows GUI applications is defined as:

int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd);

Note the nShowCmd parameter that is passed to the applications main() function from the system!

https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-winmain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants