DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Neil W Guest

    Wallpaper desktop my application


    How can I set the wallpaper to a company logo on my application?

    I can set this in the config but how can i just make it sit in the middle
    of the screen?

    look forward to your help!

    Neil

  2. #2
    Barbara Peisch Guest

    Re: Wallpaper desktop my application

    Set the _Screen.Picture property.

    --


    -BP
    www.peisch.com

    "Neil W" <neilw@tpgplc.co.uk> wrote in message
    news:3a23dc80$1@news.devx.com...
    >
    > How can I set the wallpaper to a company logo on my application?
    >
    > I can set this in the config but how can i just make it sit in the middle
    > of the screen?
    >
    > look forward to your help!
    >
    > Neil




  3. #3
    Cindy Winegarden Guest

    Re: Wallpaper desktop my application

    Neil,

    As Barbara mentioned, _SCREEN.Picture = "MyPicture"

    I've done this with a picture that didn't fill up the whole background, and
    had to guess/calculate where to put it. Also, the location may change with
    different monitor sizes.

    Here's what I have:


    _SCREEN.BACKCOLOR = 15113676

    _SCREEN.ADDOBJECT([MyPic], [Image])
    _SCREEN.MyPic.PICTURE = [D:\MyImage.bmp]
    _SCREEN.MyPic.TOP = 150
    _SCREEN.MyPic.LEFT = 300
    _SCREEN.MyPic.VISIBLE = .T.

    --


    Cindy Winegarden

    Microsoft Certified Professional, Visual FoxPro
    Microsoft Visual FoxPro MVP

    cindy.winegarden@mvps.org



    "Neil W" <neilw@tpgplc.co.uk> wrote in message
    news:3a23dc80$1@news.devx.com...
    |
    | How can I set the wallpaper to a company logo on my application?
    |
    | I can set this in the config but how can i just make it sit in the middle
    | of the screen?
    |
    | look forward to your help!
    |
    | Neil



  4. #4
    Rick Bean Guest

    Re: Wallpaper desktop my application

    Cindy,
    Nice Lilac color <g>. How come you didn't use rgb(200,157,230) instead of
    15113676? Do you have any problems with this on systems with a video depth
    less than 16M colors?

    Rick

    "Cindy Winegarden" <cindy.winegarden@mvps.org> wrote in message
    news:3a2412b0$1@news.devx.com...
    > Neil,
    >
    > As Barbara mentioned, _SCREEN.Picture = "MyPicture"
    >
    > I've done this with a picture that didn't fill up the whole background,

    and
    > had to guess/calculate where to put it. Also, the location may change with
    > different monitor sizes.
    >
    > Here's what I have:
    >
    >
    > _SCREEN.BACKCOLOR = 15113676
    >
    > _SCREEN.ADDOBJECT([MyPic], [Image])
    > _SCREEN.MyPic.PICTURE = [D:\MyImage.bmp]
    > _SCREEN.MyPic.TOP = 150
    > _SCREEN.MyPic.LEFT = 300
    > _SCREEN.MyPic.VISIBLE = .T.
    >
    > --
    >
    >
    > Cindy Winegarden
    >
    > Microsoft Certified Professional, Visual FoxPro
    > Microsoft Visual FoxPro MVP
    >
    > cindy.winegarden@mvps.org
    >
    >
    >
    > "Neil W" <neilw@tpgplc.co.uk> wrote in message
    > news:3a23dc80$1@news.devx.com...
    > |
    > | How can I set the wallpaper to a company logo on my application?
    > |
    > | I can set this in the config but how can i just make it sit in the

    middle
    > | of the screen?
    > |
    > | look forward to your help!
    > |
    > | Neil
    >
    >




  5. #5
    Cindy Winegarden Guest

    Re: Wallpaper desktop my application

    Rick,

    I forget why I used the integer instead of the RGB(). I got the color I
    wanted from Windows somehow after playing with the color picker.

    This is not really for an app, it's my personal development environment. At
    home with a lot of colors it's smooth, at work with 256 colors it looks
    "textured" but close to the right color, and of course the .BMP looks more
    "pixel-y."

    I can't get enough shades of Purple, but I don't inflict that on others, I
    stick to Windows colors and let the user choose!

    --


    Cindy Winegarden

    Microsoft Certified Professional, Visual FoxPro
    Microsoft Visual FoxPro MVP

    cindy.winegarden@mvps.org



    "Rick Bean" <rgbean@NOSPAMmelange-inc.com> wrote in message
    news:3a242b10$1@news.devx.com...
    | Cindy,
    | Nice Lilac color <g>. How come you didn't use rgb(200,157,230) instead of
    | 15113676? Do you have any problems with this on systems with a video depth
    | less than 16M colors?
    |
    | Rick
    |
    | "Cindy Winegarden" <cindy.winegarden@mvps.org> wrote in message
    | news:3a2412b0$1@news.devx.com...
    | > Neil,
    | >
    | > As Barbara mentioned, _SCREEN.Picture = "MyPicture"
    | >
    | > I've done this with a picture that didn't fill up the whole background,
    | and
    | > had to guess/calculate where to put it. Also, the location may change
    with
    | > different monitor sizes.
    | >
    | > Here's what I have:
    | >
    | >
    | > _SCREEN.BACKCOLOR = 15113676
    | >
    | > _SCREEN.ADDOBJECT([MyPic], [Image])
    | > _SCREEN.MyPic.PICTURE = [D:\MyImage.bmp]
    | > _SCREEN.MyPic.TOP = 150
    | > _SCREEN.MyPic.LEFT = 300
    | > _SCREEN.MyPic.VISIBLE = .T.
    | >
    | > --
    | >
    | >
    | > Cindy Winegarden
    | >
    | > Microsoft Certified Professional, Visual FoxPro
    | > Microsoft Visual FoxPro MVP
    | >
    | > cindy.winegarden@mvps.org
    | >
    | >
    | >
    | > "Neil W" <neilw@tpgplc.co.uk> wrote in message
    | > news:3a23dc80$1@news.devx.com...
    | > |
    | > | How can I set the wallpaper to a company logo on my application?
    | > |
    | > | I can set this in the config but how can i just make it sit in the
    | middle
    | > | of the screen?
    | > |
    | > | look forward to your help!
    | > |
    | > | Neil
    | >
    | >
    |
    |



  6. #6
    John Dobson Guest

    Re: Wallpaper desktop my application

    To save guessing where to place the image, you could use the following
    technique.

    Subclass the image control and then you can use the following code:
    _SCREEN.ADDOBJECT("myPic", "imgImage")
    --_SCREEN.myPic.PICTURE = "yourpicture.bmp"
    _SCREEN.myPic.TOP = (_SCREEN.HEIGHT * .5) -(_SCREEN.myPic.HEIGHT * .5)
    _SCREEN.myPic.LEFT = (_SCREEN.WIDTH * .5) -(_SCREEN.myPic.WIDTH * .5)
    _SCREEN.myPic.VISIBLE = .T.

    HTH

    John

    "Cindy Winegarden" <cindy.winegarden@mvps.org> wrote in message
    news:3a2412b0$1@news.devx.com...
    > Neil,
    >
    > As Barbara mentioned, _SCREEN.Picture = "MyPicture"
    >
    > I've done this with a picture that didn't fill up the whole background,

    and
    > had to guess/calculate where to put it. Also, the location may change with
    > different monitor sizes.
    >
    > Here's what I have:
    >
    >
    > _SCREEN.BACKCOLOR = 15113676
    >
    > _SCREEN.ADDOBJECT([MyPic], [Image])
    > _SCREEN.MyPic.PICTURE = [D:\MyImage.bmp]
    > _SCREEN.MyPic.TOP = 150
    > _SCREEN.MyPic.LEFT = 300
    > _SCREEN.MyPic.VISIBLE = .T.
    >
    > --
    >
    >
    > Cindy Winegarden
    >
    > Microsoft Certified Professional, Visual FoxPro
    > Microsoft Visual FoxPro MVP
    >
    > cindy.winegarden@mvps.org
    >
    >
    >
    > "Neil W" <neilw@tpgplc.co.uk> wrote in message
    > news:3a23dc80$1@news.devx.com...
    > |
    > | How can I set the wallpaper to a company logo on my application?
    > |
    > | I can set this in the config but how can i just make it sit in the

    middle
    > | of the screen?
    > |
    > | look forward to your help!
    > |
    > | Neil
    >
    >




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links