Solved

Pop-up menus

Posted on 1998-12-02
4
174 Views
Last Modified: 2013-11-28
Hi...quick question: How do I make a pop-up menu with one of the menu items bringing up another pop-up menu when it's clicked on. Those items always have a little right-pointing arrow indicating they have more items...you know what I mean?

Cheers
   Shawn Halfpenny
0
Comment
Question by:aztec
  • 2
4 Comments
 
LVL 17

Accepted Solution

by:
inthe earned 50 total points
ID: 1349053
AzTec,
stick a popup menu component from standard bar
right click component and select menu designer
now click on 'caption' in object inspector and type something.
next back on menu designer right click either item you just gave a caption to or the one below and select 'create submenu' and give that a caption thats it repeat until happy with your popup menu

Barry
0
 

Author Comment

by:aztec
ID: 1349054
Excellent! Works great! In a related question Barry, how do get a little icon to show next to each item in a popup menu? I've seen programs that have it...maybe Delphi 3 cannot do it??

Cheers
  Shawn
0
 
LVL 4

Expert Comment

by:BoRiS
ID: 1349055
aztec

Popupmenus in delphi 3 can do it you need to use the API call

SetMenuItemBitmaps(
Menu,      // handle of menu
Position,      // menu item to receive new bitmaps
Flags,      // menu item flags
BitmapUnchecked,      // handle of unchecked bitmap
BitmapChecked      // handle of checked bitmap
);

Later
BoRiS
0
 

Author Comment

by:aztec
ID: 1349056
Thanks Boris...ummm, could you give me a little example of how this SetMenuItemBitmaps works?

Thanks
  Shawn
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Read about how to approach blogging and about ways to do it right. Stand out from the crowd and let your knowledge be consumed by a large audience. This article aims to explain how your blog should look like,  the most important things to do while b…
Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
Use Wufoo, an online form creation tool, to make powerful forms. Learn how to selectively show certain fields based on user input using rules to gather relevant information and data from your forms. The rules feature provides you with an opportunity…
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question