Page 1 of 1

Appicon Update

Posted: Sat Aug 31, 2013 12:18 am
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        

Re: Appicon Update

Posted: Fri Sep 06, 2013 11:20 pm
by airsoftsoftwair
Right, I'll see if this can be implemented in a nicer way.