paragui-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [paragui-users] simple image centered


From: Lonnie Cumberland
Subject: Re: [paragui-users] simple image centered
Date: Fri, 31 May 2002 12:32:19 -0700

Thanks Andrew.

you've been a great help to me and I really appreciate it.

I'll try to see if I can locate some more information on this and possibly
even a simple snippet of code as well if  I can find one.

Thanks again.
Lonnie

----- Original Message -----
From: "Andrew Ford" <address@hidden>
To: <address@hidden>
Sent: Friday, May 31, 2002 9:25 AM
Subject: Re: [paragui-users] simple image centered


> I don't have my documentation with me, but you can
> create a borderless window my setting a flag in
> PG_Application::InitScreen() (if the correct flag
> exists), or you can set the screen mode with SDL.  I
> know that the SDL way will allow you to make a window
> without decorations or a border.  I think the function
> you'd want is SDL_SetVideoMode or SDL_SetScreenMode.
> For your second question, once you know the screen
> dimensions and the image size (you can get these from
> the application's screen surface and from the image's
> PG_Rect or from), you can either move the image into
> the correct position (x = screenw / 2 - imagew / 2, y
> similar), or you can create the image in the correct
> position if you get access to the dimensions before
> you create the PG_Image widget.
>
> Andrew.
>
> --- Lonnie Cumberland <address@hidden>
> wrote:
> > Hello All,
> >
> > I just need to ask two more "stupid" questions for
> > the day, ok.
> >
> > 1. How can I make a window without a border or title
> > header, and even without the "close" button inside
> > my "paratest" demo somewhere on the screen.
> >
> > 2. Inside the blank window from question #1, I want
> > to place a simple image centered. Maybe even the
> > "icon.bmp" as an example.
> >
> > Any ideas?
> > Lonnie
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>
> _______________________________________________
> paragui-users mailing list
> address@hidden
> http://mail.freesoftware.fsf.org/mailman/listinfo/paragui-users




reply via email to

[Prev in Thread] Current Thread [Next in Thread]