Delphi

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Interface use question

    3 answers - 1006 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    When you have an application that runs from the tray, do you prefer
    NT to have it also show up on the windows taskbar, or do you like it to
    appear in both? I've tried to make this an optional setting however it
    doesn't seem possible as the mainform is created one way or the other before
    option settings can be readunless someone knows of a way to handle this
    directly from the dpr? And note, the mainform of my application is used
    only for basic setup code, global interface control components, the trayicon
    component, and its custom popup menu codeit never actually becomes
    visible nor is it accessed directly in anyway by the user!
    from Robert Meek dba Tangentals Design CCopyright 2006
    "When I examine myself and my methods of thought, I come to the conclusion
    that the gift of Fantasy has meant more to me then my talent for absorbing
    positive knowledge!"
    Albert Einstein
    Delphi mailing list -Delphi (AT) elists (DOT) org
  • No.1 | | 511 bytes | |

    Hi Robert,

    I have a couple of apps which work the following way.

    When "minimised", they appear only in the tray.
    When "open" or "visible" they appear both in the tray and on
    the taskbar.

    I find this an excellent way of operating, as if they're open I can
    bring them to the front easily to adjust settings etc, but as soon as
    I minimise they hide themselves back in the tray.

    Cheers,
    Chris.

    Delphi mailing list -Delphi (AT) elists (DOT) org
  • No.2 | | 1647 bytes | |

    Robert Meek wrote:
    When you have an application that runs from the tray, do you prefer
    NT to have it also show up on the windows taskbar, or do you like it to
    appear in both?

    I tried having Winamp keep its icon in the notification area and also
    appear in the taskbar. The good side effect of that is that the window
    appears in the Alt+Tab list, so I can get to the window by the keyboard.
    The bad side effect of that is that the window is *always* the first
    item in the Alt+Tab list, which means I can no longer toggle between two
    windows as quickly as usual.

    Being able to focus other windows quickly eventually trumped being able
    to focus Winamp occasionally, so I now have it configured to display its
    icon only in the notification area.

    I've tried to make this an optional setting however it
    doesn't seem possible as the mainform is created one way or the other before
    option settings can be read

    So read the options before you create the form. read them while
    you're creating it, but before CreateParams gets called. read them
    afterward and change the form's attributes accordingly.

    unless someone knows of a way to handle this
    directly from the dpr?

    A "way"? You mean besides cut and paste?

    And note, the mainform of my application is used
    only for basic setup code, global interface control components, the trayicon
    component, and its custom popup menu codeit never actually becomes
    visible nor is it accessed directly in anyway by the user!

    Um, then what, exactly, would you have appear on the taskbar anyway?
  • No.3 | | 1285 bytes | |

    Robert Meek wrote:
    When you have an application that runs from the tray, do you prefer
    NT to have it also show up on the windows taskbar, or do you like it to
    appear in both? I've tried to make this an optional setting however it
    doesn't seem possible as the mainform is created one way or the other before
    option settings can be readunless someone knows of a way to handle this
    directly from the dpr? And note, the mainform of my application is used
    only for basic setup code, global interface control components, the trayicon
    component, and its custom popup menu codeit never actually becomes
    visible nor is it accessed directly in anyway by the user!

    When I was at TurboPower we struggled with precisely this question in
    desgining the "Tray Icon" component for SysTools (the component was
    later shifted to the ShellShock product).

    Some folks wanted it one way, some the other and it was not a clear win
    for either side, so we elected to make it optional.

    I don't recall precisely how we did it (I'd have to dig out the
    StTrIcon.pas code to review), but it's possible.

    Stephen Posey
    slposey (AT) concentric (DOT) net

    Delphi mailing list -Delphi (AT) elists (DOT) org

Re: Interface use question


max 4000 letters.
Your nickname that display:
In order to stop the spam: 2 + 1 =
QUESTION ON "Delphi"

EMSDN.COM