CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: rioch

Search: Search took 0.05 seconds.

  1. Replies
    12
    Views
    13,001

    Re: Toolbar button sizes

    Any help on this? I'm stumped.
  2. Replies
    12
    Views
    13,001

    Re: Toolbar button sizes

    RecalcLayout didn't help. Let me explain some more.

    I have a toolbar which has three buttons and a combo box. All the buttons have an icon, the first button also has text to the right of the icon....
  3. Replies
    12
    Views
    13,001

    Re: Toolbar button sizes

    In the end I did the following:

    m_wndToolBar1.GetToolBarCtrl().SetExtendedStyle(TBSTYLE_EX_MIXEDBUTTONS);
    CString strButtonText = "Something...";
    TBBUTTONINFO tbbi;
    tbbi.cbSize = sizeof(tbbi);...
  4. Replies
    12
    Views
    13,001

    Re: Toolbar button sizes

    It seems I needed the flat TBIF_BYINDEX. However, this only works correctly if I don't set the text. If I set the text (either method) it causes all buttons to change size. It even pushes other...
  5. Replies
    12
    Views
    13,001

    Re: Toolbar button sizes

    I've created the toolbar using the style TBSTYLE_LIST. I've tried the code below, but neither the text appears nor the button size changes. If I remove the text from the buttonInfo and set it instead...
  6. Replies
    12
    Views
    13,001

    Re: Toolbar button sizes

    My mistake. So to use this I'll have to derive from CToolBar and add some functions to set the button sizes. Is there a good place to do this such that all button size according to text width?...
  7. Replies
    12
    Views
    13,001

    Re: Toolbar button sizes

    As far as I'm aware, and according to the msdn docs, SetButtonInfo only sets the width of a separator. For all other types it sets the index of the image to use.
  8. Replies
    12
    Views
    13,001

    Toolbar button sizes

    I've created a toolbar that has text to the right of the icon using the TBSTYLE_LIST style and added text to a button using SetButtonText(). Initially, the button size is not changed to reflect the...
Results 1 to 8 of 8





Click Here to Expand Forum to Full Width

Featured