Results 1 to 4 of 4

Thread: text only toobar?

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    3

    Post

    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).

  2. #2
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357

    Post

    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

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    3

    Post

    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.

  4. #4

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Posts
    3

    Post

    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
  •  



Click Here to Expand Forum to Full Width