barrett@jhunix.HCF.JHU.EDU (Dan Barrett) (02/22/91)
In 4 years of owning my Amiga, I have rarely used Workbench (I use CLI/shell). Now, I am writing a program that must support Workbench, and I have a question about icons and tooltypes. Suppose I have an icon RAM:Paint.info that has as its application DH0:Applications/Paint. There is ALSO an icon DH0:Applications/Paint.info. Both icons have some ToolTypes set, but they are different ToolTypes. My question is this: When I double-click on RAM:Paint.info, what is this icon's relationship to DH0:Applications/Paint.info, if any? When I double-click on RAM:Paint.info, does my application see the ToolTypes from it, or from DH0:Applications/Paint.info?? From my programming experience last night, using the examples in the 1.3 RKM's, the answer is the latter (DH0:Applications/Paint.info)! I think this is very counterintuitive. In fact, if I remove the icon DH0:Applications/Paint.info, and double-click on RAM:Paint.info, my application sees NO ToolTypes at all. Yes, I was very careful to choose SAVE from within the Info window each time. I even ran "type opt h" on the icons to see the ToolType strings inside. In fact, I created 4 different icons in RAM:, each with different names and different lists of ToolTypes, and they ALL used the ToolTypes of DH0:Applications/Paint when they were double-clicked. Not to rule this out: could this behavior be due to a bug in the Manx 5.0d WB startup code? Dan //////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ | Dan Barrett, Department of Computer Science Johns Hopkins University | | INTERNET: barrett@cs.jhu.edu | | | COMPUSERVE: >internet:barrett@cs.jhu.edu | UUCP: barrett@jhunix.UUCP | \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////////////