CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2002
    Location
    DC Metro Area, USA
    Posts
    1,509

    Vertical Toolbar images

    I'm creating a vertical toolbar with 1 or more buttons with images for each. In design, the buttons (actually the 1 button for now) show up fine, but when the app is run, the toolbar and button show up without the image.... The rub is, if I move the toolbar to either the top or bottom, the image shows fine, but docked on the left or right, it doesn't. This is all .Net code generated code in a MDI view, I haven't started hand coding yet...
    bytz
    --This signature left intentionally blank--

  2. #2
    Join Date
    Sep 2002
    Location
    DC Metro Area, USA
    Posts
    1,509
    Weirdness, after several compiles, trying this and that with no effect, I go home and come back in the morning and the toolbar button is there... Now, I'm almost afraid to muck with it, it might disappear again

    If anyone opbserves this behviour, please let me know, I'd like to get a good handle on it...
    bytz
    --This signature left intentionally blank--

  3. #3
    Join Date
    Sep 2002
    Location
    DC Metro Area, USA
    Posts
    1,509

    Question

    I hate replying to my own posts (yeah, I could edit them, oh well). It seems when the toolbar has a "Dock" property of left or right, the images for the toolbar buttons don't show. Has anyone encountered this or have any clue to a work around?
    bytz
    --This signature left intentionally blank--

  4. #4
    Andy Tacker is offline More than "Just Another Member"
    Join Date
    Jun 2001
    Location
    55°50' N 37°39' E
    Posts
    1,503
    never had such problem...
    I face a problem when I created the context menu and added, Large Icons, small icons and show text properties. after the selection is made, it doesn't show the respective property.
    otherwise, images are shown pretty fine.

    do you use Image List to assign images? if you dont, you should prefer to use it.
    If you think you CAN, you can, If you think you CAN'T, you are probably right.

    Have some nice Idea to share? Write an Article Online or Email to us and You may WIN a Technical Book from CG.

  5. #5
    Join Date
    Sep 2002
    Location
    DC Metro Area, USA
    Posts
    1,509
    Yeap, I used the image list, loaded the bmp into is and did all the associations (at least as far as I can tell)... Works fine if the toolbar is not docked but otherwise the images only show up durrin design time.

    Another thing is if I turn on the XP Styles, the images disappear...
    bytz
    --This signature left intentionally blank--

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