SetMenuItemBitmaps & CreatePopupMenu [RESOLVED!!!!] -
How can I set Pictures into a menu created by CreatePopupMenu??
Part of the problem is that this is Access2000
how do I get the handle of an Image... in an imaglist? or image control?
SetMenuItemBitmaps & CreatePopupMenu [RESOLVED!!!!] -
How can I set Pictures into a menu created by CreatePopupMenu??
Part of the problem is that this is Access2000
how do I get the handle of an Image... in an imaglist? or image control?
Menu Checkmarks -
I am making a program in which I create my own menues using CreatePopupMenu(), etc. I want to set custom checkmark bitmaps, but can't figure out how. When I try to use SetMenuItemBitmaps(...) it returns zero. When I try to use SetMenuItemInfo(...) it won't display correctly. I've tried
CreatePopupMenu -
I'm using the CreatePopupMenu & InsertMenu API Calls to create the Favorites menu on the fly. I've already achieved that... however, does anybody know how to detect the click on any of those submenues. What's more... is there anyway to get their handle?
CreatePopupMenu and Icons -
I have created a program that creates a menu at runtime via CreatePopupMenu. Now I would like to add some icons to it. I have found a lot of code that adds icons to existing menus (both create in the menu editor and the system menu). But no one of them works.
Does any one knows what c
Add images to Popup menu... -
I can add images to the regular menus using
SetMenuItemBitmaps
but it doesnt want to work for popmenus!
any ideas??
Icons on dynamic popup menu -
Hello everyone.
I took a program over from someone.
This program is used to disable the normal popmenu in a textbox, so, subclassing is involved.
Now, we had to do 2 things to the new "textbox menu", add colors, or add icons to the menu items.
we have got the backgrou
Menus in multiple parent windows -
Let's say I have two windows (windows like the Internet Explorer window, or a dialog box window; it's that main parent container window with a title bar and an icon, along with the minimize maximize and close boxes), alright? I am trying to append a menu to each of them:
case WM_
Appendmenu description string garbled -
I am trying to use Appendmenu to dynamically add sub menus.
I am playing with the code and can't get the menu description to display. It is just garbled ascii as if i was using a bad pointer.
Here is the code, i am referencing win32.tlb so the i haven't declared these functions in
Size of bitmaps in menus -
I'm using the API function SetMenuItemBitmaps to display bitmaps in menus. What's the maximum bitmap size allowed?
System Tray Pop Up Menu -
How can I get my form's icon in the system tray with menu without my form having a title bar?
Can this be done with CreatePopUpMenu/DestroyMenu?
Make the Popup Menu go away! -
My program is using the Form.Popupmenu routine to create a popup menu, but when the user clicks somewhere out side of the popup menu's bounds, the menu does not go away. Is there a way to force it to disappear without using the API CreatePopupMenu instead?
Convert HICON to HBITMAP -
Hi, does anyone know how to convert a HICON value to a HBITMAP? Im basically extracting a icon from a image list, and I need to convert it to a HBITMAP so I can use it in SetMenuItemBitmaps.
Any ideas?
Creating menu on other application -
ok, i want to create a new popup menu on another application. I know how to make a new menu on the application, but none of the submenus show up. I'm pretty sure that I'm supposed to use CreateMenu, CreatePopUpMenu, and AppendMenu, but I cant quite figure out how to use them properly
insert icon from exe into menuitem... -
OK, here's a tricky one. I have a dynamically generated menu. The menu contains menu items that simply Shell a given executable file or open a document in its default application. The user can edit the menu at runtime, the data that builds the menu is saved in a text file. So basically
Tooltip on menuitem [Unresolved] -
Hi!
I'm wonder if there is a way to make a tooltip on a menu item. I have a program that creates a menu with CreatePopupMenu and I would like to add a tooltip on the menu. I have seen one other programs that does this, but I think that the program was written in C.
Regards,
Henr
Placing popupmenus into other programs -
Hi, basically i have code that creates a menu inside another program, ie it lets me put a menu into notepad called "Alistair".
However I cant work out (Becuse im dumb) how i get the items in the menu to do stuff?
So does any1 know how?
Thanks for any help
I think
Get Menu Position from Caption -
Hi, is it possible to get the positon of a menu item for use with SetMenuItemBitmaps if i know the caption of the menu?
The position varies on different computers, so i need to get the positon from the caption, which is always the same.
Dempsey
Resolved item issue -
Sorry about this. I'm just wondering how am I suppose to mark items as being resolved.
I have currently just been doing an advanced edit on my original post and adding [RESOLVED] but by the looks of it, this is not the correct way of marking an item as resolved.
UPDATE
-----
Fi
Using APIs to Create submenu or submenu array -
I know the code to create a popupmenu and fill it with items. Here is the code:
Code:
Public Declare Function CreatePopupMenu Lib "user32.dll" () As Long
Public Type MENUITEMINFO
cbSize As Long
fMask As Long
fType As Long
fState As Long
wID As
How to place an icon next to a menu item -
Hello. I'm sorry for asking this but for the last hour I've been looking for a simple answer to my question and can't find one.
Anyways, I am creating a menu on a VB6 form using the menu editor. (I know there's other controls out there that look way better - but I'm a little leary
api code problem... -
Hi,
I'm trying to learn the Win API and I came across this article at:
http://vb-world.net/php-bin/printfri...iclepageid=486
And I implimented the code exactly but it does not seem to work.. The code should put a picture next to a menu item but it keeps returning 0 and not put
Wicked cool 3d popup menu item picture -
Am whipping up a Popup menu class....
UHkay, I can create a popup menu using only the API, and set a picture using SetMenuItemBitmaps buuut when hovering over the item the bitmap is "inverted", looking realy lame. How do I tell the menu to place a 3d box around the item pict
Menu Bitmaps -
Hello. Thank you for listening to my problem:
I've been adding bitmaps to the menus (trying to make the
UI cover up the fact it's a pretty lame program) but there's
a small problem. I've been using the bmps from the TlBr_W95
folder, but they seem too big, you see the problem is
resolved or not!!!!! --:RESOLVED:-- -
can neone plz tell me how to put RESOLVED in the title bar of the thread???
i tried many times but in vain
thnx in advance
Icons in menu code, what am I missing -
Hello all,
Below are 2 snippets of code that I have added to my form and module. It was recommended to me from another post I had. This is an attempt to add icons to menus. The code compiles fine, but does nothing. Can you see any problems or anything I am missing ?
Thanks,
'Code
New function Request! - - func Resolved -
I see the forum admin constantly pushing "Add resolved to all your posts which are resolved". This is of course a great idea! As people will assume two things: the post is done and needs no more feedback, or it is done and it contains useful answers so it is worth a look.
[RESOL[SUPER DUPER RESOLVED] [EXTRA PRIMA GOOD RESOLVED] Hello -
hello hello hello
edit: Rob and I were testing how many time thread can be [RESOLVED]...
the answer is - as many times as you wish but as far as the length of a Title fields allows (apparently 84 chars).
Problem With Menu Bitmaps -
I used the following code to put bitmaps in my popupmenu:
Declare Function GetMenu Lib "user32" _
(ByVal hwnd As Long) As Long
Declare Function GetSubMenu Lib "user32" _
(ByVal hMenu As Long, ByVal nPos As Long) As Long
Declare Function GetMenuItemID Lib
RESOLVED **need help ahh! -
sry i had friend help me..i think i put resolved in title...
resolved
[**Resolved**] Mark posts *Resolved* -
How do posts get marked as resolved. Can I do it if I started the thread? If so, how?
Suppress Resolved Threads -
I would like to suppress resolved threads so I can focus on the unresolved ones as I tend to scan the forums for ways to help. It would be easier if I could turn them on/off easily. Is there already a way that I don't know about?
P.S. I liked rhino's [Resolved] button idea.
Dav
VBSMart and the SmartMenuXP **RESOLVED** -
I am trying to follow the example on the http://www.vbsmart.com website about OfficeXP and .Net menus.
I have typed in the following code and added the applicable API declares etc but I keep getting a ByRef arguement type mismatch on the last parameter (0) of the TrackPopUpMenuEx ap
how do we specify which answer has resolved my problem -
Hi, In the thread tools, I see the link to mark that a thread s been resolved but I see no where where i can specify the person or the answer that resolved my quuestions amongst all the questions
Thanks
How to mark RESOLVED (RESOLVED) -
Hi all,
Simple question. How do I mark a thread as Resolved?
What should my sig contain -
Guys, what special notes or notices would be helpful to add in my sig?
Like: please rate a post if it helped you, please mark a thread resolved if it is resolved, etc... Anything more?
- AND -
If a thread is marked resolved, can I still post on that thread? Thanks a lot!
Still trying to add bitmaps to menus.... -
...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, vbR
Little annoyance about new "Resolved" thing... -
I like the new way the resolved thing is, one great thing is that others can now mark it as read if they know it is answered, but...
if you go to the usercp and look at the thread it does not have the "[RESOLVED]" thing in the name (if you are subscribed to that board)
They need to put a resolved button -
I think when you go in to edit your thred there should be a "resolved check box" I thin you would have more people put resolved in their name
what you could also do is make it in their User CP where the post replies are put a check box that sayes "Make this thred reso
---+Resolved+--- help -
---+Resolved+--- I also need to know how to load an image in a specific folder (ie. the program doesnt know the image name, so it loads the only image in a particular folder).
---+Resolved+--- And lastly i need to know how to delete a folder.
Thanks to whoever helps!
Create a New Menu -
hi all
i used this code for create a new menu
Code:
Const MF_CHECKED = &H8&
Const MF_APPEND = &H100&
Const TPM_LEFTALIGN = &H0&
Const MF_DISABLED = &H2&
Const MF_GRAYED = &H1&
Const MF_SEPARATOR = &H800&
Const MF_STRING = &