WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Mimicing Maximize Button (https://forum.worldviz.com/showthread.php?t=4116)

hotshotiguana 01-20-2012 07:45 AM

Mimicing Maximize Button
 
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:
Code:

import viz
import vizact
import win32con
import win32gui

viz.go()

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

vizact.onkeydown(' ',MaximizeWindow)

Are you using the vizpopup module to create the menu bar? It should remain visible even in fullscreen mode.


All times are GMT -7. The time now is 10:11 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC