Announcement

Collapse
No announcement yet.

Popup menu WITHOUT originating DDT?

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

  • Popup menu WITHOUT originating DDT?

    Anybody know how to put an icon in the system tray, then have it
    respond to mouse clicks WITHOUT having to set up a calling
    dialog first? I've perviewed the "TRAY.BAS" that ships with
    PBDLL60, plus I've looked at some source code in the "Source
    Code" forum, but they both have calling dialogs. What I want to
    do is have the program start at Windows startup with the icon
    in the tray WITHOUT a dialog initially appearing, yet still
    have the program (via the icon in the system tray) react to
    clicks with the mouse buttons, while the mouse pointer is over
    the icon in the tray.

  • #2
    If I remember correctly a sys tray icon requires a parent window. But nobody says that the window has to be visible. Why not just create a hidden window to be the parent of the sys tray icon?

    In other words, never do the DIALOG SHOW step. Or create a window using the API.

    -- Eric

    ------------------
    Perfect Sync: Perfect Sync Development Tools
    Email: mailto:[email protected][email protected]</A>



    [This message has been edited by Eric Pearson (edited September 15, 2000).]
    "Not my circus, not my monkeys."

    Comment


    • #3
      Guys --
      Is it possible to "animate" a text of the tooltip in the system tray w/o replacing this tooltip by own dialog ?
      Shell_NotifyIcon %NIM_MODIFY updates an icon, but doesn't want to update the text.

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

      Comment


      • #4
        Semen --

        You can't change tooltip text that is currently visible. (To be clear, you can change it, but the change won't take affect until the tooltip disappears.) %NIM_MODIFY will only affect the tooltip text the next time it is displayed.

        -- Eric

        ------------------
        Perfect Sync: Perfect Sync Development Tools
        Email: mailto:[email protected][email protected]</A>



        [This message has been edited by Eric Pearson (edited September 16, 2000).]
        "Not my circus, not my monkeys."

        Comment


        • #5
          Thanks, Eric. I know this fact from experiments.
          But probably exist(simple) way to find tooltip's window and to stimulate refresh ?




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

          Comment

          Working...
          X