Q? Project Manager Closed


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Q? Project Manager Closed

  1. #1
    John Gunvaldson Guest

    Q? Project Manager Closed

    Short of a timer and a scheduled check of the environment.

    Is there any way to tell that a user has Opened the Project Manager, then
    used the "x" to close the Project Manager? I am most interested in any type
    of hooks that I could add custom code to - to do something when either case
    has occurred?

    Probably, if just one of the conditions could be met - I would prefer to be
    able to tell that the user "Closed" the Project Manager with the "x"
    button...

    tia


    John C. Gunvaldson
    Database Developer
    www.dataquick.com




  2. #2
    Anders Altberg Guest

    Re: Q? Project Manager Closed

    If you have a ProjectHook class attached to a project you can do things when
    the project is opened and when it's closed; whether it's closed because the
    user clicked the X or closed VFP or is shutting down Windows, the same
    routine will run.
    -Anders

    "John Gunvaldson" <foxnet_west@hotmail.com> wrote in message
    news:3af4e566@news.devx.com...
    > Short of a timer and a scheduled check of the environment.
    >
    > Is there any way to tell that a user has Opened the Project Manager, then
    > used the "x" to close the Project Manager? I am most interested in any

    type
    > of hooks that I could add custom code to - to do something when either

    case
    > has occurred?
    >
    > Probably, if just one of the conditions could be met - I would prefer to

    be
    > able to tell that the user "Closed" the Project Manager with the "x"
    > button...
    >
    > tia
    >
    >
    > John C. Gunvaldson
    > Database Developer
    > www.dataquick.com
    >
    >
    >



  3. #3
    Arnie Guest

    Re: Q? Project Manager Closed



    Project Manager is a system define window so if you want to test if it
    is open Try This:


    if Wvisible("PROJECT MANAGER")
    * Project Manager is open
    * Put a statement here
    endif


    the "John Gunvaldson" <foxnet_west@hotmail.com> wrote:
    >Short of a timer and a scheduled check of the environment.
    >
    >Is there any way to tell that a user has Opened the Project Manager, then
    >used the "x" to close the Project Manager? I am most interested in any type
    >of hooks that I could add custom code to - to do something when either case
    >has occurred?
    >
    >Probably, if just one of the conditions could be met - I would prefer to

    be
    >able to tell that the user "Closed" the Project Manager with the "x"
    >button...
    >
    >tia
    >
    >
    >John C. Gunvaldson
    >Database Developer
    >www.dataquick.com
    >
    >
    >



  4. #4
    John Gunvaldson Guest

    Re: Q? Project Manager Closed

    Thanks Arnie,

    The issue for me was being able to immediatly do some actions after the user
    closed the Project Manager. Short of a timer, or a Project Hook like Anders
    suggested - there wouldn't be a way / an event to trap - that indicated the
    Project Manager was just opened or closed...

    I'll look into a Project Hook - as it can be used for other processes as
    well, and may be the only process that can trap this system defined window
    when opened and closed...

    Thanks Anders, Arnie


    John C. Gunvaldson, MCP, CNE
    Database Developer
    www.dataquick.com



    "Arnie" <Arniethebomb@hotmail.com> wrote in message
    news:3af5fb94$1@news.devx.com...
    >
    >
    > Project Manager is a system define window so if you want to test if it
    > is open Try This:
    >
    >
    > if Wvisible("PROJECT MANAGER")
    > * Project Manager is open
    > * Put a statement here
    > endif
    >
    >
    > the "John Gunvaldson" <foxnet_west@hotmail.com> wrote:
    > >Short of a timer and a scheduled check of the environment.
    > >
    > >Is there any way to tell that a user has Opened the Project Manager, then
    > >used the "x" to close the Project Manager? I am most interested in any

    type
    > >of hooks that I could add custom code to - to do something when either

    case
    > >has occurred?
    > >
    > >Probably, if just one of the conditions could be met - I would prefer to

    > be
    > >able to tell that the user "Closed" the Project Manager with the "x"
    > >button...
    > >
    > >tia
    > >
    > >
    > >John C. Gunvaldson
    > >Database Developer
    > >www.dataquick.com
    > >
    > >
    > >

    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center