|
-
Jan 28th, 2002, 02:03 PM
#1
Thread Starter
Hyperactive Member
prove your proficiency
Here's the situation...
I've posted a question a while back asking if it were possible
to add a text control to a menu. I did some research and found
absolutely no documentation on MS' site as to how it's possible
to recreate this neat little feature seen in places such as MS
Access' popup menu (right clicking a cell in access gives you a
popup menu with the ability to filter for a certain string that's
entered in a text box). In my pro-VB years I tried unsuccessfully
to recreate this. However, now while learning MFC I came
across something that might allow one to add a control such
as 'Edit control' to a menu.
I've successfully added bitmaps which span the width of a menu. The bitmaps I've added have been strips of color...
something that might be useful when you need to pick a color
from a menu. Now I ask, can we extend this to be able to user
draw a text control to this menu item instead? Everything should
be drawn with a DC so how can we make this work for a text
control's DC?
Bababooey
Tatatoothy
Mamamonkey
-
Jan 28th, 2002, 02:21 PM
#2
Monday Morning Lunatic
I very much doubt you can do that with the normal Windows menus, MFC or not.
I think the CoolBar stuff (like in Office) is handled totally separately so it can get away with adding controls to them.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Jan 28th, 2002, 02:24 PM
#3
Thread Starter
Hyperactive Member
it will obviously work with a coolbar but what does a coolbar
have to do with the menus? is there a coolbar-like menu
control floating around someplace?
also, there are ridiculous menu controls out there that I've seen
available for VB that offer the user the ability to draw outlook-
style menus....such as a strip down the side. This is all done, I
suppose, through callbacks. Wouldn't you assume that callbacks
can be used in the situation of hte text box control?
Bababooey
Tatatoothy
Mamamonkey
-
Jan 28th, 2002, 05:17 PM
#4
Monday Morning Lunatic
Originally posted by noble
that would seem too cubmersome to code instead of a real
menu. I wouldn't want the job of recreating all of a menu's
functionality to get the window to do the same job.
I don't think it would be that hard, you just need to keep your wits about you 
I expect there's something like it on PSC, anyway.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
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
|