Announcement

Collapse
No announcement yet.

DDT Popup Menu Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DDT Popup Menu Question

    How would I create a dialog that has a popup menu like this:

    [code]

    +----------------+
    | popup selector1|
    | popup selector2|
    | popup selector3|
    | popup selector4|
    | popup selector5|
    | popup selector6|
    | popup selector7|
    |----------------+

    I am trying to create a dialog that displays only a popup menu.
    I'm trying to make something like the "Start Menu" in windows.

    Its simply going to display items like a "listbox" but it will
    look like the items listed when you click on the "Start Menu"

    Any ideas?

    ------------------
    -Greg
    -Greg
    [email protected]
    MCP,MCSA,MCSE,MCSD

  • #2
    How about a dynamically created owner-drawn list box control? From memory, the START menu uses a listview control so that could be another possibility?

    Alternatively, why not just create a menu and use TrackPopupMenu() ?



    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      As I understand, a reason of Greg's question is that he was not able to cancel TrackPopupMenu.
      MSDN, Q203372:
      HOWTO: Cancel an Active Menu
      To cancel an active menu send a WM_CANCELMODE message to the window that owns it.
      MORE INFORMATION
      When you send the WM_CANCELMODE message to the owner window of an active menu, the window exits the menu mode. You can use this technique to force the abandonment of active TrackPopupMenu or TrackPopupMenuEx.
      ------------------
      E-MAIL: [email protected]

      [This message has been edited by Semen Matusovski (edited September 11, 2000).]

      Comment


      • #4
        Originally posted by Lance Edmonds:
        How about a dynamically created owner-drawn list box control? From memory, the START menu uses a listview control so that could be another possibility?

        Alternatively, why not just create a menu and use TrackPopupMenu() ?

        Lance,

        I would never of known that the Start Menu is a listview

        And that is the problem, I can't cancel a popup when I don't own it.

        ------------------
        -Greg

        [This message has been edited by Gregery D Engle (edited September 11, 2000).]
        -Greg
        [email protected]
        MCP,MCSA,MCSE,MCSD

        Comment


        • #5
          Semen seems to have answered your question.

          Interestingly, the desktop itself is a listview control (and if I recall correctly, as is Windows Explorer's [dual pane] interface) and the task bar is a tabcontrol with a pushbutton (style instead of conventional tabs).

          ------------------
          Lance
          PowerBASIC Support
          mailto:[email protected][email protected]</A>
          Lance
          mailto:[email protected]

          Comment


          • #6
            Lance,

            I remember that the desktop was a listview but how in the heck do
            they have Two different ICONS in the Start Menu popup?

            eg?

            [program icon] - [program name] - [expand icon]

            I always thought the listview could only have one icon to the
            left hand side.

            Thanks

            ------------------
            -Greg
            -Greg
            [email protected]
            MCP,MCSA,MCSE,MCSD

            Comment


            • #7
              Start menu popup, at least, in Win2000 Pro, is toolbar.
              It's a little strange, but two different programs talk so.

              ------------------
              E-MAIL: [email protected]

              Comment

              Working...
              X