Results 1 to 6 of 6

Thread: skinning....need a lil coding help...

  1. #1

    Thread Starter
    Addicted Member theonetrueace's Avatar
    Join Date
    Jan 2002
    Location
    South Alabama
    Posts
    196

    skinning....need a lil coding help...

    im creating a skinning engine for a project and i need a lil bit of help.....

    i thought about using picture boxs but they dont support transparence properly....im going to be loading a set of bitmaps on to the form, which has no borders...im thinking im gonna need to create a custom control which will support transparency properly and do all the events that a picturebox does.....or can i just modify the picturebox somehow....

    a lil code pertaining to your suggestions would be awsome.....or just a suggestion would be great.....thanks in advance...

    AcE

  2. #2
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489
    you mean skins for apps like WinAmp? if so, I THINK you can goto the 'developers' section at winamp.com and they have open-source code for download. I could be wrong.

  3. #3
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    Don't use picture boxes, they will eventually screw things up. Instead use the OnPaint event and put all your drawing code there
    \m/\m/

  4. #4

    Thread Starter
    Addicted Member theonetrueace's Avatar
    Join Date
    Jan 2002
    Location
    South Alabama
    Posts
    196
    ok....using the onpaint event is fine and dandy....but how will i catch clicks and other events on the form with no controls, other than the form to click....i guess i could keep an eye on the cursor position but that seems like the long way around this problem......what u guyz think?

  5. #5
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by theonetrueace
    ok....using the onpaint event is fine and dandy....but how will i catch clicks and other events on the form with no controls, other than the form to click....i guess i could keep an eye on the cursor position but that seems like the long way around this problem......what u guyz think?
    dunno if this is a good way but you could define some variables of type Region and define the close button, minimize button, etc's location each in a separate region variable. If you have a variable like that for each button then you can do a hittest by calling Region.IsVisible (mouseX, mouseY)
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  6. #6

    Thread Starter
    Addicted Member theonetrueace's Avatar
    Join Date
    Jan 2002
    Location
    South Alabama
    Posts
    196
    ok....so i have figured out alot in the last two hours...i have an interesting question....

    considering a form's ability to use a region to determine borders...would it be posible to have a region which fades off....making a very nice userinterface....it would use an alpha layering system much like windows xp icons....which would require semi transparency....now whats a great format for this type of transparency...i can think of none better than png...ideas?

    AcE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width