CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: ToolBar Control

  1. #1
    Join Date
    Jan 2003
    Posts
    14

    Question ToolBar Control

    When I Insert buttons into a toolbar in design time it seems like the size of the buttons are ~ the same as if I would insert a 16X16 picture from an Imagelist, but if I just give a value to the caption property it seems like the button gets the ~ same hight as if it would contain a 32 pixel icon and with the text at the bottom. How do i overcome this and get the text centered (both in height and width) in the button and with a smaller hight without needing to make icons of 16X16 with the text I want?
    (I just want to insert some letters)
    Last edited by stickan; January 9th, 2003 at 10:30 PM.
    VB6 SP5 ACCESS MSSQL mySQL CR

  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    You can only play with...

    ...textAllignment, to get description to the right of the place of the icon you do not have, instead of its bottom....(as far as I know...)
    But you can use a coolbar, and add to it commandbuttons (an array of commadbuttons) of size you want...
    Last edited by Cimperiali; January 10th, 2003 at 04:29 AM.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  3. #3
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    For example, look at attachment

    Here an example:
    Attached Files Attached Files
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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

Featured