Find default icon for file

"philippkiefer-S0/[email protected] [power-pro]" <[email protected]> 08 Oct 2019 20:57:08 +0000
Newsgroups gmane.comp.windows.power-pro
Message-ID <[email protected]>
--9nlWnTS9ocNmxdhsK3FKVLWiM6a5jwOaA8HvrLV
Content-Type:  text/plain;  charset=utf-8 
Content-Transfer-Encoding: base64

SGkgQnJ1Y2UsDQogDQoNCiBXZWxsLCBJJ20gdGhyaWxsZWQgdG8gc2VlIHlvdSdyZSBzdGls
bCB0YWtpbmcgdGhlIHRyb3VibGUgdG8gcmVwbHkgdG8gcXVlc3Rpb25zLCBpdCdzIGJlZW4g
YSBsb25nIHRpbWUgc2luY2UgbXkgbGFzdCENCiANCg0KIEknbSBjdXJyZW50bHkgd29ya2lu
ZyBvbiBhIHBpbmJvYXJkIHR5cGUgYmFyIHdoZXJlIEkgY2FuIGRyb3AgZmlsZXMgYW5kIG90
aGVyIG9iamVjdHMgb24gdGhlIGJ1dHRvbnMgYW5kIHRoZSBpbmZvcm1hdGlvbiBmcm9tIHRo
ZSBkcmFnIChlLmcuIHRoZSBmaWxlIHBhdGgpICdzdGlja3MnIGFzIHRoZSBidXR0b24gbGFi
ZWwuIEJ5IGNsaWNraW5nIHRoZSBidXR0b25zIHdoaWxlIG5vdCBkcmFnZ2luZyBhbiBvYmpl
Y3QsIEkgY2FuIHRoZW4gcGVyZm9ybSBkaWZmZXJlbnQgYWN0aW9ucyBvbiB0aGUgaW5mbyAv
IGZpbGVzIHN0b3JlZCBpbiB0aGUgbGFiZWwuDQogDQoNCiBJIGFsc28gYWRkIGljb25zIGZv
ciB0aGUgZmlsZXMgdG8gdGhlIGJ1dHRvbnMgd2hlbiBkcm9wcGluZyBmaWxlcy4gVGhlIG9u
bHkgcHJvYmxlbSBpcyB0aGF0IHdoZW4gSSBkcm9wIGltYWdlIGZpbGVzLCBQUHJvIHVzZXMg
dGhlIGltYWdlIGFzIGJhY2tncm91bmQgZm9yIHRoZSBidXR0b24gcmF0aGVyIHRoYW4ganVz
dCBzZXQgYSBnZW5lcmljIGljb24gZmlsZSAoZS5nLiB0aGUgSXJmYW52aWV3IGljb24pIGxp
a2UgaXQgZG9lcyBmb3Igbm9uLWltYWdlIGZpbGUgdHlwZXMgKGUuZy4gdGhlIGRlZmF1bHQg
d29yZCBkb2N1bWVudCBpdGVtIGZvciAuZG9jIGZpbGVzKS4gQXQgYmVzdCwgdGhpcyBsb29r
cyBvZmYgbmV4dCB0byBvdGhlciBmaWxlIHR5cGVzLCBhdCB3b3JzdCBpdCBtYWtlcyB0aGUg
YnV0dG9uIHRleHQgaGFyZCBvciBpbXBvc3NpYmxlIHRvIHJlYWQuDQoNCiANCg0KIENhbiBJ
IHNvbWVob3cgcGVyc3VhZGUgUG93ZXJwcm8gdG8gdXNlIHRoZSBkZWZhdWx0IGljb24gZm9y
IGltYWdlIGZpbGVzIHJhdGhlciB0aGFuIHBlZXAgaW5zaWRlIHRoZSBpbWFnZSBpdHNlbGY/
IEkgZ3Vlc3MgSSBjb3VsZCB1c2UgcmVnZXggdG8gY2hlY2sgZm9yIGltYWdlIGZpbGVzIGFu
ZCB0aGVuIG1hbnVhbGx5IHNldCB0aGUgSXJmYW5WaWV3IGljb24sIGJ1dCBtYXliZSB0aGVy
ZSBpcyBhIG1vcmUgZWxlZ2FudCAvIGRpcmVjdCB3YXkgdG8gZG8gdGhpcz8NCg0KIA0KDQog
TWFueSB0aGFua3MhDQoNCg==

--9nlWnTS9ocNmxdhsK3FKVLWiM6a5jwOaA8HvrLV
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit





<head>

<style type="text/css">
<!--

/* start of attachment style */
       .ygrp-photo-title{
         clear: both;
         font-size: smaller;
         height: 15px;
         overflow: hidden;
         text-align: center;
         width: 75px;
       }
       div.ygrp-photo{
         background-position: center;
         background-repeat: no-repeat;
         background-color: white;
         border: 1px solid black;
         height: 62px;
         width: 62px;
       }

       div.photo-title 
         a,
         div.photo-title a:active,
         div.photo-title a:hover,
         div.photo-title a:visited {
           text-decoration: none; 
       }

       div.attach-table div.attach-row {
         clear: both;
       }

       div.attach-table div.attach-row div {
         float: left;
         /* margin: 2px;*/
       }

       p {
         clear: both;
         padding: 15px 0 3px 0;
	 overflow: hidden;
       }

       div.ygrp-file {
         width: 30px;
         valign: middle;
       }
       div.attach-table div.attach-row div div a {
         text-decoration: none;
       }

       div.attach-table div.attach-row div div span {
         font-weight: normal;
       }

       div.ygrp-file-title {
         font-weight: bold;
       }
 /* end of attachment style */
        -->
        </style>
        </head>
<html>
<head>
<style type="text/css">
<!--
#ygrp-mkp {
  border: 1px solid #d8d8d8;
  font-family: Arial;
  margin: 10px 0;
  padding: 0 10px;
}

#ygrp-mkp hr {
  border: 1px solid #d8d8d8;
}

#ygrp-mkp #hd {
  color: #628c2a;
  font-size: 85%;
  font-weight: 700;
  line-height: 122%;
  margin: 10px 0;
}

#ygrp-mkp #ads {
  margin-bottom: 10px;
}

#ygrp-mkp .ad {
  padding: 0 0;
}

#ygrp-mkp .ad p {
  margin: 0;
}

#ygrp-mkp .ad a {
  color: #0000ff;
  text-decoration: none;
}
-->
</style>
</head>
<body>



<!-- |**|begin egp html banner|**| -->

<br><br>

<!-- |**|end egp html banner|**| -->


<div>Hi Bruce,</div><div><br></div><div>Well, I&#39;m thrilled to see you&#39;re still taking the trouble to reply to questions, it&#39;s been a long time since my last!</div><div><br></div><div>I&#39;m currently working on a pinboard type bar where I can drop files and other objects on the buttons and the information from the drag (e.g. the file path) &#39;sticks&#39; as the button label. By clicking the buttons while not dragging an object, I can then perform different actions on the info / files stored in the label.</div><div><br></div><div>I also add icons for the files to the buttons when dropping files. The only problem is that when I drop image files, PPro uses the image as background for the button rather than just set a generic icon file (e.g. the Irfanview icon) like it does for 
 non-image file types (e.g. the default word document item for .doc files). At best, this looks off next to other file types, at worst it makes the button text hard or impossible to read.<br></div><div><br></div><div>Can I somehow persuade Powerpro to use the default icon for image files rather than peep inside the image itself? I guess I could use regex to check for image files and then manually set the IrfanView icon, but maybe there is a more elegant / direct way to do this?<br></div><div><br></div><div>Many thanks!<br></div>



<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width="1" style="color: white; clear: both;"/>__._,_.___</div>

      
  

    
    <div id="fromDMARC" style="clear:both; margin-top: 10px;">
         <hr style="height:2px ; border-width:0; color:#E3E3E3; background-color:#E3E3E3;">
         Posted by: philippkiefer-S0/[email protected]         <hr style="height:2px ; border-width:0; color:#E3E3E3; background-color:#E3E3E3;">
    </div>
<!-- Start Recommendations -->
<!-- End Recommendations -->


<!-- |**|begin egp html banner|**| -->

<br><br>
<tt>
PowerPro's download site: <a href="http://powerpro.cresadu.com/">http://powerpro.cresadu.com/</a></tt>
<br><br>

<!-- |**|end egp html banner|**| -->



<!-- |**|begin egp html banner|**| -->

  <img src="http://geo.yahoo.com/serv?s=97476590/grpId=2487777/grpspId=1706030409/msgId=44354/stime=1570568234" width="1" height="1"> <br>

<!-- |**|end egp html banner|**| -->

  
<!-- |**|begin egp html banner|**| -->

<br>



   
     
 
        <!-- |**|begin egp html banner|**| -->
        <div id="ygrp-vital" style="background-color: #f2f2f2; font-family: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

        <span id="vithd" style="font-weight: bold; color: #333; text-transform: uppercase; "><a href="https://groups.yahoo.com/neo/groups/power-pro/info;_ylc=X3oDMTJlMzBzaTR1BF9TAzk3MzU5NzE0BGdycElkAzI0ODc3NzcEZ3Jwc3BJZAMxNzA2MDMwNDA5BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTU3MDU2ODIzNA--" style="text-decoration: none;">Visit Your Group</a></span>

     <ul style="list-style-type: none; margin: 0; padding: 0; display: inline;">
                                                    </ul>
  </div>


<div id="ft" style="font-family: Arial; font-size: 11px; margin-top: 5px; padding: 0 2px 0 0; clear: both;">
  <a href="https://groups.yahoo.com/neo;_ylc=X3oDMTJkM2NjcjZ0BF9TAzk3NDc2NTkwBGdycElkAzI0ODc3NzcEZ3Jwc3BJZAMxNzA2MDMwNDA5BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxNTcwNTY4MjM0" style="float: left;"><img src="https://s.yimg.com/ru/0.9.12/min/css/yahoo_en-US_f_pw_101x21.png" height="21" width="101" alt="Yahoo! Groups" style="border: 0;"/></a>
  <div style="color: #747575; float: right;"> &bull; <a href="https://info.yahoo.com/privacy/us/yahoo/groups/details.html" style="text-decoration: none;">Privacy</a> &bull; <a href="mailto:[email protected]?subject=Unsubscribe" style="text-decoration: none;">Unsubscribe</a> &bull; <a href="https://info.yahoo.com/legal/us/yahoo/utos/terms/" style="text-decoration: none;">Terms of Use</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

  </div> <!-- ygrp-msg -->

   


  <br>

<!-- |**|end egp html banner|**| -->


<div style="color: white; clear: both;"/>__,_._,___</div>
</body>

</html>

--9nlWnTS9ocNmxdhsK3FKVLWiM6a5jwOaA8HvrLV--