Indigo Rose Software

Go Back   Indigo Rose Software Forums > AutoPlay Media Studio 7.5 > AutoPlay Media Studio 7.5 Examples

Reply
 
Thread Tools Display Modes
  #1  
Old 09-22-2005
Derek's Avatar
Derek Derek is offline
Indigo Rose Customer
 
Join Date: May 2001
Location: 51.501296|-2.700963
Posts: 1,206
Cool Article: Automatically resize Project to user's screen size

To automatically resize your project to the same size as the user's screen size, add the following lines of code to the project's "On Startup" event:
-- Get the user's screen size
screen_info = System.GetDisplayInfo();

-- set the application size to same as screen size
Window.SetSize(Application.GetWndHandle(this), screen_info.Width, screen_info.Height-10);

-- position application window to top left
Window.SetPos(Application.GetWndHandle(this), 0, 0);
You can also choose to enable 'Flat' style in the Project settings instead of 'Standard' thus effectively giving you kiosk mode without the border.
Additionally, simply subtract '10' from the height to show the taskbar:
Window.SetSize(Application.GetWndHandle(this), screen_info.Width, screen_info.Height-10);
__________________
-
- Derek
- ["All glory comes from daring to begin" - fortune cookie]

IR WebHelp: AMS6 SUF7 VP2 TU2
Reply With Quote
  #2  
Old 05-15-2006
Tek Tek is offline
Forum Member
 
Join Date: Mar 2004
Location: Toronto, ON CANADA
Posts: 691
Thanks for the example.

I've been looking for a way to deal with dual monitors as well (second monitor is an extension of the first) but System.GetDisplayInfo() doesnt seem to detect that the desktop size includes the second monitor.

Any ideas on how to do this would be greatly appreciated. Basically, I want to be able to hit a button in my application and send it to the second monitor.
Reply With Quote
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
http://yourfilelink.com - 50MB max upload, free! Intrigued General Chat 14 09-26-2006 09:44 AM
Function: Resize an Image to Fit your Project Window Adam AutoPlay Media Studio 5.0 Examples 0 06-03-2004 12:55 PM
Display Project to suit screen size BaZZa400 AutoPlay Media Studio 4.0 6 05-28-2003 02:48 PM
HOWTO: Create a Project Template Support AutoPlay Media Studio 4.0 Examples 0 10-28-2002 02:49 PM
HOWTO: Make a Media Player Object Go Full Screen Support AutoPlay Media Studio 4.0 Examples 0 10-23-2002 12:23 PM


All times are GMT -6. The time now is 06:15 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software