Also $Control->UseDivOnCarriageReturn(1); does not seem to do anything. If I set this, shouldn't it use <div> tags instead of <p> tags on Carriage Return?

Is there a reference manual on how these work? I really want to dive into this but I cannot find much to read...

Steve


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


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




--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.10.17/85 - Release Date: 8/30/2005




Reply via email to