I have a custom toolstrip on my form. I am trying to find a way to check weather a button on the toolstrip is enabled or not.
The only thing I can do at the moment is click on those buttons using the primitive member function Click (x,y,z)
Today I was trying to see what Spy++ would give me when I point to the toolStripButton on the generic .NET toolStrip and it didn't recognize at as a separate entity from the toolStrip, other than that I had a ToolStripComboBox on the same toolStrip, and this object had a handle indeed.
So where I am gettin here, I am not sure why Silk didn't recognize the buttons as CustomWins as it should when it can't map it to any existing classes that it knows of.
If your goal here is to be able to click on these buttons without passing in hard coded coordinates via the .Click() method, check out "modifying: declarations for icons in an evenly sized and spaced tool bar" in the help.
no, I don't want to just click on the buttons, i also want to see if a particular button is enabled or not...
Note: notice that the buttons on the toolstrip are not recognized by silk even as customwins... so the only thing i can do at the moment is use the anywin click method by passing coordinated...that is ridiculous.
Unless you use the extension kit, you aren't going to be able to use any "canned" methods to determine if it's enabled or not. Like Dan suggested, you'll have to click on them to see if anything happens. As I suggested, you'll have to refer to the evenly spaced objects in help to declare each button so that you can click on them without specifying coordinates. (if they are evenly spaced)