Announcement

Collapse
No announcement yet.

Software Skinning Question

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Software Skinning Question

    I want to implement, into one of my programs, the same style skinning that the other programs use on this site... To make things easier for other skinners... I am more of a backend coder and don't have much experience with GUI's at all... I am just curious how you implement the skins in the application the way it is done with say Frodoplayer or Mediacar... I noticed that each screen generally has a "background" image, "on" image, and an "off" image. The weird thing to me is the "on" image has ALL the highlights on the buttons and I was curious how you show only a section of that image when buttons are pressed? Do you make the main image a background to the whole Form and use image mapping to plot where all the buttons go?

    thanks for any help..
    __________________
    CENTRAFUSE http://www.centrafuse.com
    01 Jeep Cherokee Sport 4x4 Installed
    M10000/512Mb/20GB, Lilliput 7", Holux GM-210

  • #2
    Look up bitblit,stretchblit, all will become clear.
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

    Comment


    • #3
      thanks
      __________________
      CENTRAFUSE http://www.centrafuse.com
      01 Jeep Cherokee Sport 4x4 Installed
      M10000/512Mb/20GB, Lilliput 7", Holux GM-210

      Comment


      • #4
        The bitblit info explains a lot... I see how you only load sections of an image now... One thing I am curious about still, and this may be a stupid question, is how you make your buttons map to locations on the image. Is there a way to use image mapping? Do you make the background of your form just an image and then somehow change all your buttons to not show up, but use certain coordinates on the screen? Any direction will help...
        __________________
        CENTRAFUSE http://www.centrafuse.com
        01 Jeep Cherokee Sport 4x4 Installed
        M10000/512Mb/20GB, Lilliput 7", Holux GM-210

        Comment


        • #5
          You can load the background, off and on images into memory. Then you read the skin definition file to get the location and size of each button on the screen. Then when you setup a button, you can assign its down, and up image from the corresponding location on the pre-loaded image. And use the empty image for the form background image. Do a similar thing for selections lists, etc...

          My headunit program loads mediacar skins and is open source. It is written in C++ but you can look at the Skin.cpp to get an idea of how I handle skins. Look here for details on how to get the source: http://www.mp3car.com/vbulletin/showthread.php?t=28885
          1994 RX-7, EPIA P4-ITX w/ Celeron 2.4 Ghz, Arise PSU, Xenarc 700TSV (new model)

          Comment


          • #6
            Originally posted by veetid
            The bitblit info explains a lot... I see how you only load sections of an image now... One thing I am curious about still, and this may be a stupid question, is how you make your buttons map to locations on the image. Is there a way to use image mapping? Do you make the background of your form just an image and then somehow change all your buttons to not show up, but use certain coordinates on the screen? Any direction will help...
            I load the up picture on the form. I also load the up picture in a picturebox, and the down picture in a picturebox. I use imageboxes for the coordinates.

            Then you blit to the coordinates from the pictureboxes to the form.
            [H]4 Life
            My next generation Front End is right on schedule.
            It will be done sometime in the next generation.
            I'm a lesbian too.
            I am for hire!

            Comment

            Working...
            X