Hmm,
It seems to work if invoked from a menu... I want to be able to drag and drop images on the edit control.. calling $Control->Image($file) after a DropFiles event does not seem to work...
Any ideas?


----- Original Message ----- From: "Steven Lloyd" <[EMAIL PROTECTED]>
To: <perl-win32-gui-users@lists.sourceforge.net>
Sent: Tuesday, August 30, 2005 9:45 PM
Subject: Win32::GUI::DHtmlEdit control


Using a DHtmlEdit control, I want to be able to pass in the url to the Image function. For some reason it does not work.. If I look at the DHtmlEdit.pm, it seems it should.

Any ideas why the following code does not insert the image?

Steve Lloyd
http://www.basgetti.com
------------------------------------------------
use Win32::GUI;
use Win32::GUI::DHtmlEdit;

my $HtmlFile  = "";
# main Window
$Window = new Win32::GUI::Window (
   -name     => "Window",
   -title    => "Win32::GUI::AxWindow test",
   -pos      => [100, 100],
   -size     => [400, 400],
   -menu     => $Menu,
) or die "new Window";

# Create AxWindow
$Control = new Win32::GUI::DHtmlEdit  (
              -parent  => $Window,
              -name    => "Control",
              -pos     => [0, 0],
              -size    => [400, 400],
) or die "new Control";

# Method call
$Control->DocumentHTML('<HTML><BODY><B>Hello World !!!</B></BODY></HTML>');

#Why does this not work?
my $file="i:\\bear.jpg";
$Control->Image($file);
# Event loop
$Window->Show();
Win32::GUI::Dialog();
------------------------------------------------


Reply via email to