PDA

View Full Version : Minimizing windows from a button push



Paul Pratt
August 22nd, 2016, 00:20
Hello all,

I have been looking into a way to minimize a window from a button press. Similar to closing the window with a button press on an icon graphic.

I have set up the graphics, templates, and delved into the develops guides and found the function isMinimized(). This returns true or false only. I haven't found a function that would directly minimize the window similar to the function close().

With isMinimized I can find the state of the window and that's about it.


function onButtonPress()
if window.isMinimized() == false then;
-- something here;
end
end

Looking for that "something here". I tried some ideas with onMenuSelection() and trying to have it work as if I used the radial menu. I haven't given up on that yet, just haven't worked with that either.

Any ideas?

Paul Pratt
August 22nd, 2016, 16:46
I am beginning to think the "minimizing" is built in to the radial menu and the functions for it are not accessible to rulesets. Anyone know if that is true?

Ikael
August 22nd, 2016, 21:09
I am beginning to think the "minimizing" is built in to the radial menu and the functions for it are not accessible to rulesets. Anyone know if that is true?

Yes, minimize feature is not available via FG API yet which is why no such feature have been implemented

Nickademus
August 22nd, 2016, 23:08
Which is one of the things I will never understand....

Paul Pratt
August 23rd, 2016, 00:06
Thanks for the info.