Results 1 to 12 of 12

Thread: Still trying to add bitmaps to menus....

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    Cool

    ...without colour corruption.

    Can anyone tell me why this doesn't work....

    I'm adding a menu bitmap following the tip from this sight, but I'm trying to add the bitmap from the resource file instead of an ImageList or Picture Box

    Code:
    Set tmpBMP = LoadResPicture(101, vbResBitmap)
    SetMenuItemBitmaps hMenu&, hID&, MF_BITMAP, tmpBMP, tmpBMP
    That doesn't work - what is the difference between doing it like this and using a .Picture property? tmpBMP is DIMmed as IPictureDisp which is apparently the same as .Picture...

    Anyone?



    Dan

  2. #2
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565

    Thumbs up

    When I used the tip from here my bitmaps appeared dull and kinda basic looking, but I read through different threads and found a site which has a free control to place bitmaps in menus. It is really easy to use and gave me perfect results. The control can be found at http://www.vbaccelerator.com

    Hope it solves your problems like it did mine

  3. #3
    Guest

    Wink Steve is Right!!!!!!!!!!!!!!!!!!!!!

    Having spent a few days trying to code bitmap menus, logged into vbaccelerator and there was the answer. Free downloadable controls. Took a couple of hours to get it working how l wanted and problem solved.


  4. #4
    Junior Member
    Join Date
    Mar 2000
    Location
    Ede, Gelderland, Nederland
    Posts
    26

    Lightbulb Better:

    This is also possible!

    Step 1

    Download: www.laupro.homepage.com/laupro.dll (Save target as...)

    Step 2

    Start VB, New project; And go to the menu Project; And than the submenu References

    Step 4

    Click on Browse and select LauPro.dll

    Step 5

    Add this code to a new project:

    Code:
    Private Sub Form_Load()
        Dim LPS As LPStandard
        Set LPS = New LPStandard
        
        LPS.SetMenuBitmap hWnd, 0, 0, Me.Picture
    End Sub
    LauPro

  5. #5
    Junior Member
    Join Date
    Mar 2000
    Location
    Montreal, QC
    Posts
    24

    Exclamation

    Hey all,

    That may work, but what is it that these controls are doing to overcome the washed out colors? I'd feel much better if I knew how they worked then if I just downloaded someone else's control...

    JMik

  6. #6

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    Cool Dead right...

    Similarly, if person or persons unknown could explain what the problem is I'd be grateful.

    Also, does anyone know the answer to the picture from resource problem?????



    Dan

  7. #7

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    Unhappy LauPro

    LauPro,


    I tried your dll....it has the same problems as we'vef been talking about...



    Dan

  8. #8
    Lively Member
    Join Date
    Mar 2000
    Posts
    103
    Does anyone here know how to add the bitmaps to a popup menu??? As soon as I make the first menu item invisible, the example on this site no longer works.

  9. #9

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    Sedgefield
    Posts
    337

    Talking

    Jamie,

    Get the control from

    http://www.vbaccelerator.com/




    Dan

  10. #10
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565

    Exclamation

    You can try the control from vbAccelerator, but as far as I know it has trouble with menu items when they are made invisible. Not sure if there is a way around it or not.

  11. #11
    Guest
    Hi there,

    Does anyone know if these controls from vbaccelerator.com also have these "menu-bug" which makes the colors look washed-out, as discussed in http://forums.vb-world.net/showthrea...threadid=14153 ??

    Imar

  12. #12
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565

    Thumbs up

    The control does not have this bug, and gives you menu icons exactly how they look in office 97.

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