|
-
Feb 2nd, 2000, 01:17 AM
#1
Thread Starter
New Member
how do i create a toolbar object with buttons that doesn't have any pictures?
right now, the closest thing i can come to is have each toolbar button have this big chunk of blank gray space to the left of the text (where the bitmap would be).
-
Feb 2nd, 2000, 02:16 AM
#2
Frenzied Member
Maybe I'm missing something or we are using different controls, but with the Toolbar control that comes with Microsoft Windows Common Controls 6.0, just don't specify an image list for your toolbar, or for individual buttons, specify image 0 for that button.
~seaweed
-
Feb 2nd, 2000, 04:50 AM
#3
Thread Starter
New Member
yes, i'm talking about the toobar control that comes with common controls 6.0 in visual basic 6.0
even when i do this, there is still all this extra space in the button. my button's text only takes of half the space of the button itself.
Private Sub Form_Load()
Dim myButton1 As button
Dim myButton2 As button
Set myButton1 = Toolbar1.Buttons.Add (1, "file", "file", tbrDefault, 0)
Set myButton2 = Toolbar1.Buttons.Add(2, "blah", "blah", tbrDefault, 0)
End Sub
i must be doing something wrong here, i just don't know how to fix it.
-
Feb 3rd, 2000, 12:54 PM
#4
Thread Starter
New Member
I read somewhere that in Visual C you can get rid of the space allocated to the image by setting iBitmap of the toolbar to -1. I'm just looking for a way to do this in Visual Basic.
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
|