Results 1 to 6 of 6

Thread: Software Skinning Question

  1. #1
    VENDOR - Centrafuse veetid's Avatar
    Join Date
    Apr 2004
    Posts
    5,040

    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. #2
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    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!

  3. #3
    VENDOR - Centrafuse veetid's Avatar
    Join Date
    Apr 2004
    Posts
    5,040
    thanks
    __________________
    CENTRAFUSE http://www.centrafuse.com
    01 Jeep Cherokee Sport 4x4 Installed
    M10000/512Mb/20GB, Lilliput 7", Holux GM-210

  4. #4
    VENDOR - Centrafuse veetid's Avatar
    Join Date
    Apr 2004
    Posts
    5,040
    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

  5. #5
    Variable Bitrate NoPistonPC's Avatar
    Join Date
    Apr 2004
    Location
    Boston
    Posts
    360
    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: Headunit (Linux/Windows CarPC frontend) + initial screenshots
    1994 RX-7, EPIA P4-ITX w/ Celeron 2.4 Ghz, Arise PSU, Xenarc 700TSV (new model)

  6. #6
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Quote 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!

Similar Threads

  1. Replies: 1
    Last Post: 06-06-2004, 01:16 PM
  2. Software question
    By BadMofo666 in forum Newbie
    Replies: 1
    Last Post: 04-19-2004, 08:02 AM
  3. General Software and Computer Question
    By Its Lo in forum Software & Software Development
    Replies: 7
    Last Post: 04-01-2004, 10:35 PM
  4. Newbie question. What software to install?
    By Bergetun in forum Newbie
    Replies: 10
    Last Post: 03-16-2004, 08:10 PM
  5. X-post question from software forum...6 ch sound
    By jusatry in forum General Hardware Discussion
    Replies: 0
    Last Post: 12-29-2003, 12:01 AM

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
  •