IgorTimofeev/MineOS

How to resize windows to any size?

happymimimix opened this issue · 8 comments

I can maximize windows, I can also restore them, but I can't resize them to any other size.
I hope this can be fixed soon.

That would be completely inconvenient in the reality of OC terminals, where mouse input is limited to touch-drop events and combined with very slow rendering. Anyway, MineOS active development was suspended a long time ago, and window resizing is not something we are going to do.

But you can still implement a such feature in your own applications the way you want

That would be completely inconvenient in the reality of OC terminals, where mouse input is limited to touch-drop events and combined with very slow rendering. Anyway, MineOS active development was suspended a long time ago, and window resizing is not something we are going to do.

But you can still implement a such feature in your own applications the way you want

I don't see any problem implementing this in OC, MineOS has already have a resizable panel and it won't be difficult to make a window resizer.
It don't need to be resizable from every direction, only the right bottom corner need to be concerned.
When the mouse cursor clicked on the most bottom right character, let the window size follow the mouse cursor until it releases.

If OC used Python, Java, or C++ I can of course implement a window resize function on my own. But it used Lua which I'm terrible at.

In the next 11 months if no one else make window resize a reality, I'm going to learn some Lua and try to implement one on my own.

Also lacking a global clipboard is also a pain in MineOS.
I think this shouldn't be hard to achieve either, just simply make a global variable that all programs can read and write. Or, even simpler, create a file somewhere on the hard disk that all programs can read from. OC's hard drive should be fast enough to be used as a clipboard. Also, I don't think OC have any locks on the hard disk like NTFS do, so that shouldn't be a problem either.

It's really ironic how people are already asking MineOS to salt passwords when it can't even resize windows and don't have a global clipboard!

it used Lua which I'm terrible at.

lua is similar to python and it's not difficult to learn it.

It's nice to see your enthusiasm. You can do PR when you're done🎉

Also, when implementing system-wide clipboard, don't forget to modify GUI library to support text selection and insertion on text input elements, as well as pre-packaged apps that already has local clipboard implementation such as code editor

Also, when implementing system-wide clipboard, don't forget to modify GUI library to support text selection and insertion on text input elements, as well as pre-packaged apps that already has local clipboard implementation such as code editor

This is easy bro!
Just take a look at where each individual app copy&paste text and modify that section to let them put text into the system clipboard instead of their own private variable.
I would update all the builtin apps to support this new system wide clipboard API, but for stuffs in the marketplace, it's the developer's duty to make their apps up to date.
We only need to make sure that MineOS still has full compatibility for the old per app clipboard API so these old apps won't completely stop working.
Other than that, nothing else need to be changed.

Also I think it should totally be possible to make a OC fork that can copy stuff into Windows clipboard so not only people can copy things across different apps inside MineOS but also into the real world!

It's nice to see your enthusiasm. You can do PR when you're done🎉

I would try to implement a window resize thing in MineOS, but I think I might need some help in MineOS's APIs.