Results 1 to 4 of 4

Thread: Bitmap - buttons won't fill entirely with BMP, border rests

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Location
    just as global as it gets
    Posts
    71

    Question Bitmap - buttons won't fill entirely with BMP, border rests

    Hey,

    If I want to make a button with my own graphics, I set style to "graphically" and give it a custom bmp. The button is 855x15 Twips, that's with me 57x21 Pixel. OK, I create a BMP that is exactly that size in pixels. Now, I set btn.caption to "" and throw in the Bitmap. All is fine except for that the BMP doesn't take up the whole space, the button still has a grey border and the BMP is slightly offset.

    I can work around this using a picture box, but then I don't have options like DownPicture etc. or I'd have to do this manually

    So is there a solution?

    Thanks!!
    The PC can't replace your life...
    ...but you can get a great break with it

    VB6, (D)HTML, JavaScript, TI-85
    German, English, Portuguese, Spanish, French & a bit of latin

  2. #2
    Addicted Member
    Join Date
    Jan 2001
    Location
    Little Rock, Ar
    Posts
    151
    Try making your Image larger.

  3. #3
    Fanatic Member PsychoMark's Avatar
    Join Date
    Feb 2001
    Location
    Netherlands
    Posts
    540
    Never tried to do it that way, but you could look for something like a BorderStyle property. Or just make your own using a picturebox like you suggested, just use the MouseDown and MouseUp events to draw the picture...
    Teaudirenopossum.Musasapientumfixaestinaure.
    (I can't hear you. There's a banana in my ear)

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Apr 2001
    Location
    just as global as it gets
    Posts
    71
    That BorderWidth-thing would be it, but there is no such property for anything else than lines.

    If I simply enlarge the button, maybe the whole image would fit in, but with that ugly grey border which really makes colored images look like crap!!

    Hmm if nothing else helps than I guess I'll have to stick to the image-field version
    The PC can't replace your life...
    ...but you can get a great break with it

    VB6, (D)HTML, JavaScript, TI-85
    German, English, Portuguese, Spanish, French & a bit of latin

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