Quantcast
Channel: SCN: Message List - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 7329

Re: Changing dynamically the Picture in a PictureButton control

$
0
0

Hi Augusto,

 

Many projects deploy their resources with the installation to a subdirectory.

 

The picture name property then becomes 'res\welcome.png'

 

For example:

 

p_welcome.picturename = 'res\welcome.png'

 

deployed files

 

c:\program files (x86)\starcomp\star.exe

c:\program files (x86)\starcomp\res\OK.png

c:\program files (x86)\starcomp\res\NOTOK.png

 

Or closer to your need:

 

if lb_DatabaseOK then

     pb_ok.picturename = 'res\OK.png'

else

     pb_ok.picturename = 'res\NOTOK.png'

end if

 

Hope this helps

 

Lars


Viewing all articles
Browse latest Browse all 7329

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>