Jump to content

How to programmatically fight with WPS:Desktop background: Difference between revisions

From EDM2
Created page with "''Is there a way to find where the desktop's background is stored and change it? I've heard it's possible with the WinSetObjectData() function but I don't know how to do this?'' ..."
 
No edit summary
Line 1: Line 1:
<center><noinclude><< [[How to programmatically fight with WPS:Start a VIO window with a changed font size|Start a VIO window with a changed font size]] -- [[How to programmatically fight with WPS|Index]] -- [[How to programmatically fight with WPS:Properties of the root directory|Properties of the root directory]] >></noinclude></center>
''Is there a way to find where the desktop's background is stored and change it? I've heard it's possible with the WinSetObjectData() function but I don't know how to do this?''
''Is there a way to find where the desktop's background is stored and change it? I've heard it's possible with the WinSetObjectData() function but I don't know how to do this?''


Line 5: Line 8:
   WinSetObjectData(WinQueryObject("<WP_DESKTOP>"),
   WinSetObjectData(WinQueryObject("<WP_DESKTOP>"),
     "BACKGROUND=c:\somewhere\something.bmp,T,1,I;");
     "BACKGROUND=c:\somewhere\something.bmp,T,1,I;");
<center><noinclude><< [[How to programmatically fight with WPS:Start a VIO window with a changed font size|Start a VIO window with a changed font size]] -- [[How to programmatically fight with WPS|Index]] -- [[How to programmatically fight with WPS:Properties of the root directory|Properties of the root directory]] >></noinclude></center>


[[Category:SOM Articles]]
[[Category:SOM Articles]]

Revision as of 17:19, 11 October 2012

<< Start a VIO window with a changed font size -- Index -- Properties of the root directory >>


Is there a way to find where the desktop's background is stored and change it? I've heard it's possible with the WinSetObjectData() function but I don't know how to do this?

Yes, you do use WinSetObjectData(). You can find the relevant setup string in the WPS Programming Reference. e.g.

 WinSetObjectData(WinQueryObject("<WP_DESKTOP>"),
   "BACKGROUND=c:\somewhere\something.bmp,T,1,I;");


<< Start a VIO window with a changed font size -- Index -- Properties of the root directory >>