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

Thread: Tollbar 2 img

  1. #1
    Join Date
    Jul 2001
    Posts
    14

    Tollbar 2 img

    How can I have buttons on tollbar that will act like radiobuttons. I want toolbar-button to stay down or upp, and it will have two difrent image, one for down and one for up.


  2. #2
    Join Date
    Apr 2000
    Location
    South Carolina,USA
    Posts
    2,210

    Re: Tollbar 2 img

    You need to set the Style property of each Button on the toolbar to 1 - tbrChecked. To change Pictures, one for up and one for down, create two image lists.Add the Images for "OUT" state to the first imagelist. Add the images for the "IN" state to the other imagelist. Assign one to the Toolbar property "ImageList" the other to the "HotIMageList" property.

    John G

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