Appicon Update

Report any Hollywood bugs here
Post Reply
User avatar
fingus
Posts: 269
Joined: Fri Sep 16, 2011 9:53 am

Appicon Update

Post by fingus »

The Appicon don't change with following code. You have to close-open-close-open..etc the window all the time to see the update of the appicon.

Code: Select all

@BRUSH 0, "mail.png", {loadalpha = True}
@BRUSH 1, "lupe.png", {loadalpha = True}
SaveBrush(0, "ram:T/mail.info", 0, #IMGFMT_PNG)
SaveBrush(1, "ram:T/lupe.info", 0, #IMGFMT_PNG)

@DISPLAY
	{
	Title = "test",
	Borderless = false,
	Layers = True,
	sizeable = False,
	width = 234,
	height = 164,
	hidden = false,
	active = True,
    dragregion = {{ type = #BOX, x = 0, y = 0, width = 234, height = 100}}
	}

repeat
SetWBIcon("ram:T/mail.info")
Wait(2, #SECONDS) 
SetWBIcon("ram:T/lupe.info")
Wait(2, #SECONDS)
forever        
User avatar
airsoftsoftwair
Posts: 5635
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Appicon Update

Post by airsoftsoftwair »

Right, I'll see if this can be implemented in a nicer way.
Post Reply