1. size a window to full screen

At one time, I had a snippet that I would cut and paste to get the dimensions of
the user's screen and then set the dimensions of a window being created to full
screen.

I can't seem to find it anywhere on my computer...OR in the archives....I got it
SOMEWHERE from the rapideuphoria site..I just can't remember where.

Does anyone else have that snippet..or know where it is...or can tell me how to
do it, again?

Thanks,
Michelle

new topic     » topic index » view message » categorize

2. Re: size a window to full screen

I actually wrote a Full Screen Demo a while back. It should be in the
archives. It makes the window truely full screen, with no titlebar and no
Alt+F4. Everything is already done for you, all it takes is a call to
setFullScreen( MyWin, True ) to go full screen, and there is a function
called isFullScreen( MyWin ).

~Greg

----- Original Message -----
From: "Michelle" <guest at RapidEuphoria.com>
To: <EUforum at topica.com>
Subject: size a window to full screen


>
>
> posted by: Michelle <michellerogers at bellsouth.net>
>
> At one time, I had a snippet that I would cut and paste to get the
dimensions of the user's screen and then set the dimensions of a window
being created to full screen.
>
> I can't seem to find it anywhere on my computer...OR in the archives....I
got it SOMEWHERE from the rapideuphoria site..I just can't remember where.
>
> Does anyone else have that snippet..or know where it is...or can tell me
how to do it, again?
>
> Thanks,
> Michelle
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

3. Re: size a window to full screen

ok..I found that one...but for some reason it wouldn't work..it would go full
screen and then immediately pop back down to the size that was set in the
declaration.

The snippet that I had actually got a variable to use for the x and y values in
the window variable declaration.

It SEEMS like it had a function or procedure that was something like
getScreen....but I can't remember...is there a command that gets the size of the
users screen?  If I knew a command for that, I could make it myself, but I can't
find a command to get the size of the user's screen.

new topic     » goto parent     » topic index » view message » categorize

4. Re: size a window to full screen

I haven't tried it yet..but that may be exactly what I'm looking for...thank
you
Michelle Rogers
----- Original Message ----- 
From: "Brian Broker" <bkb at cnw.com>
To: <EUforum at topica.com>
Subject: RE: size a window to full screen


>
>
> If you are using Win32Lib then you can get the user's screen resolution
> with:
>
>    getCtlSize(Screen)
>
> Not sure if that is what you are looking for...
> -- Brian
>
> Michelle wrote:
> >
> >
> > posted by: Michelle <michellerogers at bellsouth.net>
> >
> > ok..I found that one...but for some reason it wouldn't work..it would go
> > full screen and then immediately pop back down to the size that was set
> > in the declaration.
> >
> > The snippet that I had actually got a variable to use for the x and y
> > values in the window variable declaration.
> >
> > It SEEMS like it had a function or procedure that was something like
> > getScreen....but I can't remember...is there a command that gets the
> > size of the users screen?  If I knew a command for that, I could make it
> > myself, but I can't find a command to get the size of the user's screen.
>
>
>
>

new topic     » goto parent     » topic index » view message » categorize

5. Re: size a window to full screen

Also, to get screen resolution, call getSystemMetrics(SM_CXSCREEN) 
for horizontal resolution, and getSystemMetrics(SM_CYSCREEN) for 
vertical resolution.

Phil

Michelle Rogers wrote:
> 
> I haven't tried it yet..but that may be exactly what I'm looking for...thank
> you
> Michelle Rogers
> ----- Original Message ----- 
> From: "Brian Broker" <bkb at cnw.com>
> To: <EUforum at topica.com>
> Subject: RE: size a window to full screen
> 
> 
> > If you are using Win32Lib then you can get the user's screen resolution
> > with:
> >
> >    getCtlSize(Screen)
> >
> > Not sure if that is what you are looking for...
> > -- Brian
> >
> > Michelle wrote:
> > >
> > >
> > > posted by: Michelle <michellerogers at bellsouth.net>
> > >
> > > ok..I found that one...but for some reason it wouldn't work..it would go
> > > full screen and then immediately pop back down to the size that was set
> > > in the declaration.
> > >
> > > The snippet that I had actually got a variable to use for the x and y
> > > values in the window variable declaration.
> > >
> > > It SEEMS like it had a function or procedure that was something like
> > > getScreen....but I can't remember...is there a command that gets the
> > > size of the users screen?  If I knew a command for that, I could make it
> > > myself, but I can't find a command to get the size of the user's screen.
> >
> >

new topic     » goto parent     » topic index » view message » categorize

6. Re: size a window to full screen

The simplest way to go 'fullscreen' is this ...


    hWnd = getHandle(id)
    VOID = w32Func( xSetWindowLong,{ hWnd, GWL_STYLE, WS_POPUP })
    VOID = w32Func( xShowWindow, { hWnd, SW_MAXIMIZE } )

-- 
Derek

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu