From: Johan L. <johanl@DarSerMan.com> - 2005-12-29 22:00:05
|
At 21:34 2005-12-29, Plum, Jason wrote: >My $ico = new Win32::GUI::Icon( +@_); >then in the button, -icon => $ico Make sure the $ico variable is in scope for the lifetime of the dialog. The easiest way to do that is to put it in a global (replace "my" with "our" in this case, or put all image resources in a global array or hash). IMHO, this should be handled automatically by controls that has other media objects assigned to them like this. /J |