PDA

View Full Version : Mimicing Maximize Button


hotshotiguana
01-20-2012, 07:45 AM
I am running an application and I am trying to mimic the maximize button in the upper right corner of the application. I don't want it to be "full-screen" when I open it because I lose the menu bar I created in my application.

Is there a way to do this?

Thanks,
Chris

farshizzo
01-20-2012, 10:22 AM
The following code sample shows how to programmatically maximize the Vizard window:import viz
import vizact
import win32con
import win32gui

viz.go()

def MaximizeWindow():
win32gui.ShowWindow(viz.window.getHandle(),win32co n.SW_MAXIMIZE)

vizact.onkeydown(' ',MaximizeWindow)
Are you using the vizpopup module to create the menu bar? It should remain visible even in fullscreen mode.