I've made a ReAction GUI for my application. When the application has been shrunk to an app icon, I'd like to allow the user to take a Workbench snapshot to save the icon's location on the Workbench screen. Is it possible?
Thu, 2020-05-21 19:34#1
How to snapshot an app icon?
Iuse this piece of code to "force" the iconification to the 1st empty place, so maybe just knowing X/Y coords where you want to show icon and changing NO_ICON_POSITION with such positions will do it:
You can enable the Snapshot menu item with the WBAPPICONA_SupportsSnapshot tag on AddAppIcon. Then you will receive an AppMessage when the user selected that menu item. But then you have to implement the snapshotting yourself, i.e. you have to save the current icon position somewhere and before the next call to AddAppIcon you have to retrieve the saved icon position and poke it into the do_CurrentX/Y fields.
Thanks! Got it working with the AddAppIcon method.