Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changin app icon while running
Message
From
04/11/2002 06:10:52
 
 
To
04/11/2002 03:34:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00718388
Message ID:
00718401
Views:
20
Hi!

VFP re-loads (redefines on a Windows level) the main app window when Icon is redefined. This is because this Icon is displayed on Windows level as some sort of resource. You should use Windows API functions if you want make it go smoother. Take a look, for example, to the Win API functions "SetClassLong" and "LoadIcon". I could not help you much here - I just found them in MSDN help, but did not worked with them.

HTH.

>Hi All
>
>I have created a series of 16x16 icons which create an animation effect when displayed in sequence. I was thinking of changing my applications icon in rotation with this series of icons whenever the app was busy. However, I find two things happen whenever the icon is changed (a) my app always moves to the right most position on the taskbar after any other app that is running and (b) there is a noticable flicker on the taskbar. Is this normal or should I be doing something besides _SCREEN.ICON = "icon1.ico", etc?
>
>Using VFP7/SP1
>
>TIA
>
>Jos
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform