Thread: borland C++ builder 6 (Popup Menus)

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    29

    borland C++ builder 6 (Popup Menus)

    Ok i have this popup menu and i have this button. This is what i want to happen:
    1. i click button
    2. popup menu appeares beside it

    This is what i've got:
    1. i click button
    2. popup menu appeares where i tell it to appear (PopupMenu1->Popup(1,1)
    obviusly i could change the 1,1 but i want it to pop up next to the button, not somwhere on the screen.

    what command do i use to make popup menu popup next to an object?

  2. #2
    Registered User
    Join Date
    Mar 2002
    Posts
    6
    PopupMenu1...OnCreate ...(...)
    {
    PopupMenu1->Left=Button1->Left+100;
    PopupMenu1->Top=Button1->Top-10;
    }

  3. #3
    Registered User
    Join Date
    Apr 2003
    Posts
    29

    ?????????

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. THE END - Borland C++ Builder, Delphi, J Builder?
    By Davros in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 02-28-2006, 11:23 PM
  2. TreeView + Popup menu
    By JaWiB in forum Windows Programming
    Replies: 9
    Last Post: 02-17-2006, 01:56 AM
  3. the last popup
    By iain in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 01-21-2002, 06:30 PM
  4. Popup Menus
    By PsychoBrat in forum Windows Programming
    Replies: 1
    Last Post: 10-18-2001, 01:44 AM