Thanks to a line of code kindly given to me by forum user "dodicat" , this line : screenres W,H,,, &h08 '&h08 is no frame (see fbgfx.bi in the inc folder)
I got spurred into checking up and try to to learn more about ScreenRes .
So I played around a little with a few lines of code , read some manual and also in the end also peeked into the fbgfx.bi in the inc folder of FreeBasic on my harddrive.
So I have two questions in that connection , first question :
This code will create a frame less window
Code: Select all
dim as integer W,H
screeninfo W,H
screenres W-200,H-200,,, &h08
Sleep
So my question would be is there anyway to control where on my screen that the window is generated ? The window is generated centered mid-screen on my "monitor" and question is if I can move the point of generation of the generated Window up,down,right and left ?
------------------------------------------------
Second question :
This code compiles without problems :
Code: Select all
dim as integer W,H
screeninfo W,H
screenres W,H,,, &h08
but if I change the &h08 with GFX_NO_FRAME then not only do I have to #include "fbgfx.bi" but state a Using FB :
Code: Select all
#include "fbgfx.bi"
Using FB
dim as integer W,H
screeninfo W,H
screenres W,H,,, GFX_NO_FRAME
So let me see if I got it right (?) : The GFX_NO_FRAME is defined in the FB 'namespace and then because the GFX_NO_FRAME is used then compiler have to fetch info from the fbgfx.bi ?
Further more , from studying the manual section for ScreenRes then I have seen that the &h08 must be a flag that is referred to by flag name GFX_NO_FRAME , which makes me think that the &h08 must be some internal reference or something for compiler since it do not require any include or namespace reference (?)
So then my question is : But then where are the list of other stuff like &h08 and the proper description (I mean apart from what is listed in and related to the fbgfx.bi ) ???