OpenWindowedScreen only 800x600 ?

Just starting out? Need help? Post your questions and find answers here.
sigi
User
User
Posts: 79
Joined: Fri Apr 25, 2003 7:16 pm
Location: Germany

OpenWindowedScreen only 800x600 ?

Post by sigi »

Hi,
If i try OpenWindowedScreen() greater then 800x600 my Proggie crashes.
My Desktop has 1024x768. Why this?
:(
Searhin
User
User
Posts: 41
Joined: Mon May 26, 2003 10:53 am
Location: Germany

Post by Searhin »

no problem here, even if the WindowedScreen is larger than the parent window.

Maybe if you paste your code in the forum someone can help you. :?
sigi
User
User
Posts: 79
Joined: Fri Apr 25, 2003 7:16 pm
Location: Germany

piece of code

Post by sigi »

Hi, if i change OpenWindowedScreen bigger than 800x600 it crashes.
Here a piece of the Code...

If InitEngine3D()

Add3DArchive("Data\", #PB_3DArchive_FileSystem)
Add3DArchive("Data\skybox1.zip", #PB_3DArchive_Zip)


If OpenWindow(#ROOT_WINDOW,0,0,800,600, #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_ScreenCentered,"PureWorlds 0.1")


CreateMenu(0, WindowID(#ROOT_WINDOW))
MenuTitle("Project")
MenuItem(1, "New")
MenuItem(#MENU_ITEM_QUIT, "Quit")
MenuTitle("Objects")
MenuItem(3,"Load...")
MenuTitle("Sky")
MenuItem(4,"Load SkyBox...")
MenuItem(5,"Load SkyDome...")
MenuTitle("Lights")
MenuItem(6,"Change Ambient Light...")
MenuTitle("Textures")
MenuItem(7,"Load Texture...")
MenuTitle("Particle")
MenuItem(8,"New Particles...")
MenuTitle("About")
MenuItem(#MENU_ITEM_ABOUT, "About...")

If InitKeyboard()
If InitMouse()
If InitSprite()
If OpenWindowedScreen(WindowID(#ROOT_WINDOW),0,MenuHeight(),800,600-MenuHeight(),0,0,0)

CreateCamera(0, 0, 0, 100, 100)
CameraLocate(0, 0, 0, 100)

SetFrameRate(60)

AmbientColor(RGB(red,green,blue))

Repeat

EventID.l = WindowEvent()

If EventWindowID() = #ROOT_WINDOW

Select EventID


Thanks for looking in to it.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

code incomplete, try using 'code' tags
--Kale

Image
sigi
User
User
Posts: 79
Joined: Fri Apr 25, 2003 7:16 pm
Location: Germany

Code is not complete

Post by sigi »

This should do it.
There is nothing important in the following code that has to do with
my problem, i think. Only Gadget Stuff and so on. The Rest is working ok.
Does the Screen3DRequester-Examples in the Examples Directory not
only shows 800x600 in OpenWindowedScreenMode ? On my PC it is so.

I have a 2GH Pentium 4, 512 MB Ram, Windows XP Home.
Post Reply