Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Yak
Video Cleanup
cXtraComboBox
Increase/ Decrease Digital Video Volume
SM scroll control
Get Font List without using xtras!
Set FrameRate of a Flash Sprite
Get Crazy
Cinemac
DmmXLS Excel XTRA
 

 

 

Behavior Set Screen Size

Added on 9/16/1999

 

Compatibilities:
D6_5 D7 D8 PC Script

Required Xtras:
Buddy API

Rating:

Author: MediaMacros (website)

Set Screen Size

--Code by Chuck Neal
--Chuck@mediamacros.coc

on setScreen whatWidth, whatHeight, whatDepth
  global gRes, gColor, gChanged
  
  if baScreenInfo( "depth" ) >= whatDepth and baScreenInfo( "height" ) >= whatHeight and  baScreenInfo( "width" ) >= whatWidth then
    set gChanged = False
  else    
    set OK = baSetDisplay( whatWidth , whatHeight , whatDepth , "test" , false )    
    if ok = 0 then
      set gChanged = True
      set gColor = the colorDepth
      set myTall = getat(getat(the desktoprectlist,1),4)
      set myWide = getat(getat(the desktoprectlist,1),3)
      set gRes = [myWide, myTall]
      baSetDisplay( whatWidth , whatHeight , whatDepth , "temp" , false )
    else
      alert "This Presentation is created to run in " & string(whatDepth) & "-bit color or greater and a resolution of " & string(whatwidth) & "X" & string(whatHeight) & "."      
      set Answer = baMsgBox( "Do you want to continue with your existing settings? Click yes to continue, or no to exit and reset your settings manualy.", "Continue?" , "YesNo", "Question" , 2 )
      if Answer = "No" then
        quit
      else
        nothing
      end if
      set gChanged = False
    end if
  end if  
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail