mierlp Posted November 9, 2014 Share Posted November 9, 2014 Hi On my form i disabled BorderIcons and the BorderStyle = bsSizeable I have to buttons on the form, one for maximize and the other one form minimize ButtonMax fires : FormWebBrowser.WindowState := wsMaximized and this WORKS ButtonMin fires : FormWebBrowser.WindowState := wsNormal and this does NOT WORK Oke...there's a other solution like : ShowWindow(FormWebBrowser.Handle, sw_restore) and that's also not working When i enalbe the BorderIcons then the resize with those button's is working Do is miss something or how to minimize or restore the form after it's maximized Regards Peter Link to comment Share on other sites More sharing options...
Sherzod Posted November 9, 2014 Share Posted November 9, 2014 Hi, Try (One way...) maximize: procedure TUniForm1.UniButton1Click(Sender: TObject); begin UniSession.AddJS(UniForm1.WebForm.JSName + '.maximize();'); end; restore: procedure TUniForm1.UniButton2Click(Sender: TObject); begin UniSession.AddJS(UniForm1.WebForm.JSName + '.restore();'); end; Best regards. Link to comment Share on other sites More sharing options...
M477H13U Posted December 19, 2017 Share Posted December 19, 2017 Hello UNiGui users !!! Our form are not minimizing and maximizing while clicking on the corresponding button. I implemented Ext events : window.maximize, window.minimize, window.restore; but it does not seems to work ! Any workarounds ? best regards, Link to comment Share on other sites More sharing options...
Sherzod Posted December 19, 2017 Share Posted December 19, 2017 Hi, The 'minimize' tool button (documentation): @cfg {Boolean} minimizable True to display the 'minimize' tool button and allow the user to minimize the window, false to hide the button and disallow minimizing the window. Note that this button provides no implementation -- the behavior of minimizing a window is implementation-specific, so the minimize event must be handled and a custom minimize behavior implemented for this option to be useful. The 'maximize' tool button: I couldn't reproduce your issue, Can you make a simple testcase for this ?! Link to comment Share on other sites More sharing options...
irigsoft Posted January 17, 2023 Share Posted January 17, 2023 On 11/9/2014 at 1:39 PM, mierlp said: Hi On my form i disabled BorderIcons and the BorderStyle = bsSizeable I have to buttons on the form, one for maximize and the other one form minimize ButtonMax fires : FormWebBrowser.WindowState := wsMaximized and this WORKS ButtonMin fires : FormWebBrowser.WindowState := wsNormal and this does NOT WORK Oke...there's a other solution like : ShowWindow(FormWebBrowser.Handle, sw_restore) and that's also not working When i enalbe the BorderIcons then the resize with those button's is working Do is miss something or how to minimize or restore the form after it's maximized Regards Peter based on this: https://fiddle.sencha.com/#view/editor&fiddle/3kc1 , here is a example: ClientInfo.zip Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now