none
Create Custom Tab on Task Information RRS feed

  • Question

  • Hi,

    Generally, on MS Project, when we double click the cell in a Row, it opens a "Task Information" window with lot of tabs it. Can I create one more tab with it? or if it is not possible.

    Can I Open a Custom window on double click of one particular Column's cell?


    Srini

    Wednesday, September 7, 2016 12:24 PM

Answers

  • >>May I know which event will fire to open "TaskInformation"?

    The event I test in VBA which might fire to open TaskInformation is WindowSelectionChange

    I test with Using events with Application and Project objects

    In ThisProject

    Option Explicit
    Private tClass As New TestClass
    Sub TestNewProjectEvent()
        Set tClass.oApp = Application   
        'tClass.oApp.Projects.Add
    End Sub

     

    In Class Modules

    Option Explicit
    Public WithEvents oApp As Application
    Private Sub oApp_WindowSelectionChange(ByVal Window As Window, ByVal sel As Selection, ByVal selType As Variant)
    Debug.Print "oApp_WindowSelectionChange "
    End Sub
    Private Sub Class_Initialize()
        ' Add class initialization statements here, if needed.
    End Sub




    Friday, September 9, 2016 12:19 PM
    Moderator

All replies

  • Hello Srini,

    Some events from the Project object model provide the Cancel argument to their event handlers. You can set the Cancel parameter to true and cancel the default action. Then you are free to display your own form instead.

    For example, you may find the ProjectBeforeTaskNew event of the Application class which is fired before one or more tasks are created. The Cancel parameter is set to False when the event is fired. The event procedure sets this argument to True, the new task or tasks are not created.


    [custom.development]

    Wednesday, September 7, 2016 2:31 PM
  • Hi,

    I have checked all the MS Project object model. The Task Information window is opened by

    Application.InformationDialog Method (Project)

    If a task is selected, Tab can be one of the following PjInformationTab constants: pjTaskGeneralTab, pjTaskPredecessorsTab, pjTaskResourcesTab, pjTaskAdvancedTab, or pjTaskNotesTab.

     

    And I think we are unable to customize the tabs in the informationdialog.

    Furthermore, I think there is no proper event to open a custom widow on double click of one particular Column's cell.

    To work around, I would suggest you custom UI and add a button to open the custom window.

    For more information, you could refer to the following documents.

    Ribbon Designer

    How to: Customize a Built-in Tab

    Walkthrough: Creating a Custom Tab by Using Ribbon XML

    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)

    Thursday, September 8, 2016 8:21 AM
    Moderator
  • Thank you Celeste, I'll try to find the event to stop opening that "TaskInformation" to show custom window. 

    May I know which event will fire to open "TaskInformation"?


    Srini

    Thursday, September 8, 2016 10:45 AM
  • >>May I know which event will fire to open "TaskInformation"?

    The event I test in VBA which might fire to open TaskInformation is WindowSelectionChange

    I test with Using events with Application and Project objects

    In ThisProject

    Option Explicit
    Private tClass As New TestClass
    Sub TestNewProjectEvent()
        Set tClass.oApp = Application   
        'tClass.oApp.Projects.Add
    End Sub

     

    In Class Modules

    Option Explicit
    Public WithEvents oApp As Application
    Private Sub oApp_WindowSelectionChange(ByVal Window As Window, ByVal sel As Selection, ByVal selType As Variant)
    Debug.Print "oApp_WindowSelectionChange "
    End Sub
    Private Sub Class_Initialize()
        ' Add class initialization statements here, if needed.
    End Sub




    Friday, September 9, 2016 12:19 PM
    Moderator