borland C++ builder 6 (Popup Menus)

This is a discussion on borland C++ builder 6 (Popup Menus) within the C++ Programming forums, part of the General Programming Boards category; Ok i have this popup menu and i have this button. This is what i want to happen: 1. i ...

  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, 02:44 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21