Hello,
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:
AOS4.1/SAM460ex/PPC460EX-1155MHZ/2048MB/RadeonHD6570/SSD120GB/DVDRW :-P
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.