VeeDub
June 19th, 2006, 01:02
Hi,
I would like to disable a button on a toolbar.
I have done some reading and discovered Yoda's Window Manager (YWM) ("http://y0da.cjb.net/"), which sounds like a great tool for newbies, but alas it seems to good to be true as I don't seem to be able to make it do anything. Does anyone have any experience with this tool, because there doesn't seem to be much doco with it, if I could use the Window Manager to configure the app that would be ideal
Assuming though that I cannot use YWM, I would appreciate some general direction on how I might go about achieving this.
When you hit the button (that I want to disable - which is on a toolbar) you get a window (which looks like a messagebox - but isn't). When I trace the app I can break on that window, and trace back to where the call comes from. The "problem" is that the loop where the call to the window comes from appears to handle all the buttons, so I can't just NOP out logic in the loop because it affects more than just the offending button.
I have considered looking at how the toolbar is created, and then modifying the setup of the toolbar so that the button doesn't appear at all. At the moment that approach looks reasonably involved, and while I may yet examine that path in greater detail I wonder if there is an easier approach.
I have also tried capturing the button push, so far without success, but I haven't spent a lot of time on this.
I guess there are a few options, and perhaps some that I haven't considered at all, and I'd like to have a clearer plan before I go any further.
Thanks
VW
I would like to disable a button on a toolbar.
I have done some reading and discovered Yoda's Window Manager (YWM) ("http://y0da.cjb.net/"), which sounds like a great tool for newbies, but alas it seems to good to be true as I don't seem to be able to make it do anything. Does anyone have any experience with this tool, because there doesn't seem to be much doco with it, if I could use the Window Manager to configure the app that would be ideal

Assuming though that I cannot use YWM, I would appreciate some general direction on how I might go about achieving this.
When you hit the button (that I want to disable - which is on a toolbar) you get a window (which looks like a messagebox - but isn't). When I trace the app I can break on that window, and trace back to where the call comes from. The "problem" is that the loop where the call to the window comes from appears to handle all the buttons, so I can't just NOP out logic in the loop because it affects more than just the offending button.
I have considered looking at how the toolbar is created, and then modifying the setup of the toolbar so that the button doesn't appear at all. At the moment that approach looks reasonably involved, and while I may yet examine that path in greater detail I wonder if there is an easier approach.
I have also tried capturing the button push, so far without success, but I haven't spent a lot of time on this.
I guess there are a few options, and perhaps some that I haven't considered at all, and I'd like to have a clearer plan before I go any further.
Thanks
VW