Start Toolbox app after reboot
Chris Mahoney (1684) 2165 posts |
Hi, I’m a newbie and I’ve been slowly pottering around with the DDE and Toolbox. I now have a little “hello world” app up and running. I’ve created a resource file in ResEd that puts an icon on the icon bar and lets me open a window, etc. I then have a C app that loads the resource file and responds to Wimp_MQuit. All is well! However… the app only works if I run !SetPaths first. If I try to start my app immediately after rebooting the system then it appears in the task manager (and responds to Quit) but it doesn’t appear on the icon bar. I’ve had a look at the !Run files for various Toolbox samples and have copied a mass of RMEnsure/RMLoad commands into my own !Run file with no success. I suspect that I’m missing something painfully obvious but I don’t know what it is. Help! :) |
Dave Higton (1515) 3526 posts |
Have another look and see if it is on the icon bar, but blank and invisible. Click where you think it should be and see if you get a menu. You may find that you’re referencing a sprite that hasn’t been introduced into the Wimp sprite pool by means of the IconSprites command, which is normally in the application’s !Boot and/or !Run file(s). |
Chris Mahoney (1684) 2165 posts |
Aha! It wasn’t there at all (not just invisible) but you put me on the right track. The problem was that I hadn’t made a custom sprite for it at all; I was just using the default one. I’ve added one and now it’s working perfectly. I see now that the default sprite is called !resed and is presumably part of ResEd rather than part of the Toolbox, and therefore I’m assuming that nothing happened because the system didn’t know where to find the !resed sprite. All sorted now, and pretty obvious now that it’s working. Thanks for your help! :) |