|
-
Apr 19th, 2000, 05:58 PM
#1
Thread Starter
Hyperactive Member
...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
-
Apr 19th, 2000, 07:00 PM
#2
-
Apr 20th, 2000, 04:15 AM
#3
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.
-
Apr 20th, 2000, 04:46 AM
#4
Junior Member
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
-
Apr 23rd, 2000, 10:49 AM
#5
Junior Member
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
-
Apr 24th, 2000, 04:28 PM
#6
Thread Starter
Hyperactive Member
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
-
Apr 24th, 2000, 04:46 PM
#7
Thread Starter
Hyperactive Member
LauPro
LauPro,
I tried your dll....it has the same problems as we'vef been talking about...

Dan
-
Apr 24th, 2000, 09:39 PM
#8
Lively Member
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.
-
Apr 24th, 2000, 09:44 PM
#9
Thread Starter
Hyperactive Member
Jamie,
Get the control from
http://www.vbaccelerator.com/

Dan
-
Apr 24th, 2000, 09:53 PM
#10
Fanatic Member
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.
-
Apr 25th, 2000, 05:19 AM
#11
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
-
Apr 25th, 2000, 05:51 AM
#12
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|