|
-
May 31st, 2001, 06:46 PM
#1
Thread Starter
Lively Member
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 
-
May 31st, 2001, 11:52 PM
#2
Addicted Member
Try making your Image larger.
-
Jun 1st, 2001, 02:06 AM
#3
Fanatic Member
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)
-
Jun 1st, 2001, 04:48 AM
#4
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|