Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

BeforeQueryStatus and ToolbarButton

$
0
0

Hi,

I'm developing VS Package and adding button to existing DEBUG Toolbar using vsct file:

<Button guid="myGuid" id="myButtonId" priority="0x0001" type="Button">
  <Parent id="IDG_DEBUG_TOOLBAR_EXECUTION" guid="guidVSDebugGroup" />
  <CommandFlag>DynamicVisibility</CommandFlag>
  <CommandFlag>DefaultInvisible</CommandFlag>
  <Strings>
    <CommandName>MyCommand</CommandName>
    <ButtonText>MyCommand</ButtonText>
  </Strings>
</Button>

I would like to dynamically change the state of the button, and only enable it when debugger is in run mode - something that existing buttons in DEBUG Toolbar can do out of the box.

From what I read I should be able to do this from BeforeQueryStatus callback, but the problem is that it is never called!

Is there any way to have BeforeQueryStatus called when debug mode changes?


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>