Ask a questionAsk a question
 

AnswerDynamicVisibilty Flag and MenuController

  • Thursday, October 29, 2009 2:21 PMCharithJ Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code

    Hi,

     

    I am having below button in my vsct file and this is going to be use in two groups (Context Menu and MenuController). This Button should be supported “DynamicVisibility”.

     

    <Button guid="guidCmdSet" id="cmdidRemoveBreakpointMenuItem" priority="0x0100" type="Button">

            <Parent guid="guidCmdSet" id="grpidContextMain"/>

            <Icon guid="guidBreakpointStatus" id="bmpDeleteBP" />

            <CommandFlag>DefaultDisabled</CommandFlag>

            <CommandFlag>DynamicVisibility</CommandFlag>

            <CommandFlag>IconAndText</CommandFlag>

            <Strings>

              <ButtonText>Remove Breakpoint(s)</ButtonText>

              <ToolTipText>Remove breakpoints in all the selected connections.</ToolTipText>

            </Strings>

          </Button>

     

    Once I add “DynamicVisibility” command flag it does not showing up in the MenuController. Is there any flag to set it ‘Default Visible’ in the MenuController?

     

    Thanks!


    CJ
    • Changed TypeCharithJ Thursday, November 05, 2009 10:43 AMThis is a question.
    • Changed TypeChao KuoMSFT, ModeratorThursday, November 05, 2009 2:28 AMNot following up
    •  

Answers

  • Thursday, November 05, 2009 10:45 AMCharithJ Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Sorry, there was my fault with queryStatus method.
    It works fine.

    Sorry Again!
    CJ
    • Marked As Answer byCharithJ Thursday, November 05, 2009 10:52 AM
    •  

All Replies

  • Monday, November 02, 2009 4:09 AMChao KuoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Has Code
    Hello, CJ
    Your name is the same to protagonist in GTA3.:)
    For the all the value of <CommandFlag>, you could reference this link Command Flag Element. Seems there is not a value like default visible.
    If you want your Button appear in both place. You should write two copy of the same button ID, and make there parents different.
          <Button guid="guidVSPackageForVSCTCmdSet" id="cmdidVSCTCommand" priority="0x0100" type="Button">
            <Parent guid="guidVSPackageForVSCTCmdSet" id="MyMenuGroup" />
            <Icon guid="guidImages" id="bmpPic1" />
            <CommandFlag>DynamicVisibility</CommandFlag>
            <Strings>
              <CommandName>cmdidVSCTCommand</CommandName>
              <ButtonText>My VSCT  name</ButtonText>
            </Strings>
          </Button>
          
          <Button guid="guidVSPackageForVSCTCmdSet" id="cmdidVSCTCommand" priority="0x0100" type="Button">
            <Parent guid="guidVSPackageForVSCTCmdSet" id="CTXMenuGroup" />
            <Icon guid="guidImages" id="bmpPic1" />
            <CommandFlag>DynamicVisibility</CommandFlag>
            <Strings>
              <CommandName>cmdidVSCTCommand</CommandName>
              <ButtonText>My VSCT  name</ButtonText>
            </Strings>
          </Button>
    
    I don't quite clear on MenuControler, could you clarify on what is menu Controler?
    Thanks
    Chao

  • Wednesday, November 04, 2009 6:49 AMChao KuoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello,Sir
    Could you follow up?
    And clarify what is MenuController?
    Thanks
    chao
  • Thursday, November 05, 2009 2:28 AMChao KuoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    We are changing the issue type to “General Discussion” because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question” by opening the Options list at the top of the post window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

    Thank you!
    Chao
  • Thursday, November 05, 2009 10:42 AMCharithJ Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi Chao,

    Here is more details for MenuController.
    http://msdn.microsoft.com/en-us/library/bb165748.aspx

    Thanks,
    Charith
    CJ
  • Thursday, November 05, 2009 10:45 AMCharithJ Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Sorry, there was my fault with queryStatus method.
    It works fine.

    Sorry Again!
    CJ
    • Marked As Answer byCharithJ Thursday, November 05, 2009 10:52 AM
    •