WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-20-2012, 07:45 AM
hotshotiguana hotshotiguana is offline
Member
 
Join Date: Mar 2011
Posts: 22
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
Reply With Quote
  #2  
Old 01-20-2012, 10:22 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
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.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
A door question... left button mouse Sakiot Vizard 3 08-26-2011 12:45 AM
Feedback: "Run Script" button pcatalano Vizard 3 03-28-2011 07:25 AM
Push a button snoopy78 Vizard 1 07-20-2009 09:39 AM
Create Button or Text Chrissy2009 Vizard 1 07-15-2009 05:34 PM
button problems cade_mccall Vizard 3 02-22-2007 09:48 AM


All times are GMT -7. The time now is 09:24 AM.


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