set generic icon rather than image file on drag and drop to button

"philippkiefer-S0/[email protected] [power-pro]" <[email protected]> 08 Oct 2019 21:55:52 +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
dGhlIGltYWdlIGFzIGJhY2tncm91bmQgZm9yIHRoZSBidXR0b24gcmF0aGVyIH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WFnZSBpdHNlbGY/IEkgZ3Vlc3MgSSBjb3VsZCB1c2Ug
cmVnZXggdG8gY2hlY2sgZm9yIGltYWdlIGZpbGVzIGFuZCB0aGVuIG1hbnVhbGx5IHNldCB0
aGUgSXJmYW5WaWV3IGljb24sIGJ1dCBtYXliZSB0aGVyZSBpcyBhIG1vcmUgZWxlZ2FudCAv
IGRpcmVjdCB3YXkgdG8gZG8gdGhpcz8gV2hhdCBJIHdhbnQgaXMgc29tZXRoaW5nIGxpa2Ug
dGhlIHJpZ2h0LWRyYWcgcXVpY2stYWRkIG9wdGlvbiAoaWNvbiArIHRleHQpIGJ1dCB3aXRo
b3V0IG92ZXJ3cml0aW5nIHRoZSBMZWZ0IGNvbW1hbmQgb24gdGhlIGJ1dHRvbiAoYXMgSSB1
c2UgdGhhdCB0byBjYWxsIGEgc2NyaXB0KS4NCg0KIA0KDQpNYW55IHRoYW5rcyEgDQoNCg==

--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.</div><div><br></div><div>There is an old thread where the same question was asked, but I don&#39;t quite understand the answers and am not sure if they are still current. Also, right button-dragging and going through the menu each time isn&#39;t really an option for me as it&#39;s too clumsy and I&#39;ve swapped the right and middle buttons on the mouse through Autohotkey, which is preventing me from doing a right-drag from Total Commander.<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? What I want is something like the right-drag quick-add option (icon + text) but without overwriting the Left command on the button (as I use that to call a script).<br></div><div><br></div>Many thanks!<p><span><br class="yui-cursor"></span></p>



<!-- |**|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=44355/stime=1570571756" 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=X3oDMTJlZmIydWQ4BF9TAzk3MzU5NzE0BGdycElkAzI0ODc3NzcEZ3Jwc3BJZAMxNzA2MDMwNDA5BHNlYwN2dGwEc2xrA3ZnaHAEc3RpbWUDMTU3MDU3MTc1Ng--" 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=X3oDMTJkbXVmZnF1BF9TAzk3NDc2NTkwBGdycElkAzI0ODc3NzcEZ3Jwc3BJZAMxNzA2MDMwNDA5BHNlYwNmdHIEc2xrA2dmcARzdGltZQMxNTcwNTcxNzU2" 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--