Firstly, I'd quite like to see the command GadgetConstant(gadgetid) introduced. Basically something that did the exact opposite of GadgetID(), i.e. gave me the PB constant number of a system handle to a gadget. I just sometimes find that I've been using api commands and I'm left with the api handle to a gadget and want to use PB commands. The only way round this I've found is to manually store the handle to each gadget and compare them all to find out the PB number of the gadget. It works, but I think an inbuilt command would be more useful. Maybe returning -1 if the handle given wasn't a PB created gadget?
Also, I have no idea how extensive this is, but I've noticed that some api commands have been messed around with (maybe just a couple, if so its not so bad). But I noticed it tonight when I tried to use
Code: Select all
ChildWindowFromPoint_(hWnd,@p.POINT)
and was told I had the incorrect number of parameters. Then I vaguely remembered reading something about actually having to use
Code: Select all
ChildWindowFromPoint_(hWnd,x,y)
Anyway two pretty minor requests, nothing too major
