Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to programmatically press toolstripbutton down?
    primarykey
    data
    text
    <p>I want to push toolstripbutton down in my code and I can't seem to be able to do that. I know on Delphi RAD Studio or XE, you can do the following and cause the button to be pressed.</p> <pre><code>ToolStripButton1.Down := true; </code></pre> <p>The only ToolStripButton property I see that comes close to "down" is <strong>checked</strong> true or false. If I do set it to true, it only highlights the toolstripbutton not press it down.</p> <p><strong>Here is how the button looks when I put my mouse on it and click:</strong></p> <p><img src="https://i.stack.imgur.com/GehET.png" alt="enter image description here"></p> <p>You can clearly see that the Zoom In button is down.</p> <p><strong>Here is how the button looks when I try to do the samething through my code by setting CheckOnClick true and Checked true.</strong></p> <p><img src="https://i.stack.imgur.com/zMJ7b.png" alt="enter image description here"></p> <p>In this image, the only thing you can see is the blue box around it. I suppose if I had used just the text on the button, you will see that the whole button filled with blue color to show that it was pressed.</p> <p><img src="https://i.stack.imgur.com/zJLng.png" alt="enter image description here"></p> <p>I also have toolstrip button in my other program which acts the same way but I had to use imagelist control to switch between pressed or down or checked verses not pressed or down or checked.</p> <p>So, is there a way to press the ToolStripButton programmatically in Delphi Prism or C#?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload