Search found 306 matches

by lassar
Jul 05, 2008 17:35
Forum: Sources, Examples, Tips and Tricks
Topic: Graphic drivers checker, and check for screen resolution
Replies: 3
Views: 2082

Improved version

This is a update to my previous code Know how some users have bad graphic drivers and substandard graphics cards. I have done code to check for when fullscreen is not supported. It will bring up the desktop, hide the desktop, hide the taskbar ,go windowed, and center the window. The code was taken f...
by lassar
Jul 04, 2008 19:18
Forum: General
Topic: Trying to center window using SETCONTROL
Replies: 1
Views: 718

Trying to center window using SETCONTROL

I am trying to center a window using SETCONTROL. According to the FreeBasic Manual it says SETCONTROL SET_WINDOW_POS returns postion in desktop coordinates. I tested out the code it is definitely not centering right. I think the problem is I have not included the height of the caption bar. How do yo...
by lassar
Jun 22, 2008 15:37
Forum: Sources, Examples, Tips and Tricks
Topic: Graphic drivers checker, and check for screen resolution
Replies: 3
Views: 2082

counting_pine wrote:What dialect are you using, or are you using an old version of FreeBASIC?

I am using FreeBasic 18.2 and -lang qp




_________________
Lassar
by lassar
Jun 22, 2008 0:49
Forum: Windows
Topic: Can't get fullscreen 640 by 480 32bit truecolor to work
Replies: 27
Views: 7170

Code to help get around this

I just did some code to help get around this. If the graphics drivers are bad or the graphics card does not support this.

It is in Tips and Tricks.

The link is :

http://www.freebasic.net/forum/viewtopic.php?t=11684




_______________________
Lassar
by lassar
Jun 22, 2008 0:43
Forum: Sources, Examples, Tips and Tricks
Topic: Graphic drivers checker, and check for screen resolution
Replies: 3
Views: 2082

Graphic drivers checker, and check for screen resolution

I have been on a couple of other forums and it seems that some of the modern graphics cards might not support 640 by 480 resolution. Also sometimes the graphics drivers or directx drivers are bad. I am posting code that checks that your screen resolution is supported and if you can go fullscreen. If...
by lassar
Jun 18, 2008 1:46
Forum: Windows
Topic: Alt-enter does not work when shelling to freebasic program
Replies: 1
Views: 1202

Finally Figured it out

Hope this keeps you from making the same mistake I did. I was using createprocess and using SW_SHOWMAXIMIZED for the windowed. I was looking over the powerbasic constants in the Win32api.inc . The ' Old ShowWindow() Commands says that SW_SHOWMAXIMIZED is the same as the old SHOW_FULLSCREEN. No wonde...
by lassar
Jun 17, 2008 19:33
Forum: Windows
Topic: Found Bug in FreeBasic ScreenRes
Replies: 16
Views: 5304

The only solution; I see for now is too use FreeBasic 18.2 .

If you do need to use FreeBasic 18.5; you could shell to the
Freebasic 18.5 program from the FreeBasic 18.2 program.
by lassar
Jun 17, 2008 15:41
Forum: Windows
Topic: Found Bug in FreeBasic ScreenRes
Replies: 16
Views: 5304

This works fine here on Vista with the latest fbc; which version of Windows and FreeBASIC are you using? I am using 32bit XP and FreeBasic 18.2 Works fine using FreeBasic 18.2 Does not work using FreeBasic 18.3 . Does not work using Freebasic 18.5b . I am including two executables . One complied wi...
by lassar
Jun 17, 2008 5:18
Forum: Windows
Topic: Found Bug in FreeBasic ScreenRes
Replies: 16
Views: 5304

Found Bug in FreeBasic ScreenRes

FreeBasic above version 18.2 will not create a window without a border after fullscreen mode. See http://www.freebasic.net/forum/viewtopic.php?p=101847#101847] forum page for full example. screenres 640, 480, 32 ,,&H08 ' Windowed mode without border Bload "StartSplash.bmp" Do:Loop Unti...
by lassar
Jun 17, 2008 3:27
Forum: Sources, Examples, Tips and Tricks
Topic: Splash Screen
Replies: 5
Views: 2558

ScreenShots for Splash

@lassar ... care to post some screenshot? or the .png you are using, that will help to test... also... QB + WinApi... why? It could just as easily bload a bmp pict; instead of png pict. screenres 640, 480, 32 ,,&H08 ' Windowed mode without border Bload "StartSplash1.bmp" Do:Loop Until...
by lassar
Jun 14, 2008 3:07
Forum: Sources, Examples, Tips and Tricks
Topic: Splash Screen
Replies: 5
Views: 2558

Splash Screen

I was going thru freebasic and could not believe that no one had done a good splash screen I checked the help file and came up with this. I had grabbed some code off my computer that was working and changed it a bit. and added some other code from my other program to put this together fast. I just h...
by lassar
Jun 14, 2008 0:53
Forum: Windows
Topic: Alt-enter does not work when shelling to freebasic program
Replies: 1
Views: 1202

Alt-enter does not work when shelling to freebasic program

I have a powerbasic program that shells to a freebasic program. The freebasic program goes full screen.When I press Alt-enter I get some black on the desktop, and that is all. I also have a freebasic program that shells to this program. The freebasic program goes full screen. I press Alt-enter it go...
by lassar
Jun 12, 2008 21:26
Forum: Windows
Topic: Can't get fullscreen 640 by 480 32bit truecolor to work
Replies: 27
Views: 7170

How do you know it won't support 640 by 480 ?

To maddogg6: newer video cards are not capable of that resolution in windows. My NVidia for instance, lowest resolution is 800x600. How are you arriving at the lowest resolution, your graphics card supports. Is it from "right click" desktop, properties,settings, OR Is it from "right c...
by lassar
Jun 12, 2008 5:27
Forum: Windows
Topic: Can't get fullscreen 640 by 480 32bit truecolor to work
Replies: 27
Views: 7170

Been googling black screen and cursor. Seems like most answers to that is latest graphics card drivers and latest directx drivers As far as the newest video cards not being able to show 640 by 480 32bit color. I was look thru the help section and found this. Dim As Integer mode, w, h '' Find which 3...
by lassar
Jun 12, 2008 4:51
Forum: Windows
Topic: Can't get fullscreen 640 by 480 32bit truecolor to work
Replies: 27
Views: 7170

Interesting, what is a guy to do to get it to work then ?

Interesting, what is a guy to do to get it to work then ?

I never thought that, 640 by 480 truecolor might not be supported.

So what do I change to get the program to work in all computers ?