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();
------------------------------------------------