I’m making a tool that will only have an icon onto which the user will drop a file. Then some magic should happen.
While the tool is processing the file, I’d like the program icon to show something is happening.
Does anyone know a good way to do this?
Here is for instance a quick test I did in a button with two pictures front and back of a card :
[code]Sub Action()
static cardface as boolean
cardface = not cardface
if cardface then
app.DockItem.Graphics.DrawPicture(cardback,0,0,1024,1024,0,0,cardback.width, cardback.height)
app.DockItem.UpdateNow
else
app.DockItem.Graphics.DrawPicture(king,0,0,1024,1024, 0, 0, king.width, king.height)
app.DockItem.UpdateNow
end if
End Sub
[/code]
In Windows that may be possible with declares on the taskbar icons, but yet, handling the dropping of things on top of taskbar icons is not built in Windows either. I would try a plain box borderless window the size of a Windows icon instead.