SetOLEPicture bug?
From: Eric (seric[remove_this)
Date: 04/25/04
- Previous message: Nicholas Sherlock: "Re: Create random number in Pascal Script Dialog Newsreader"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 25 Apr 2004 09:25:44 +0930
Hi,
I'm working on ActiveForm (containing TImage) which is going to be
used as a Visual Basic control. One of the properties of my form is
'Picture' - it is supposed to connect TImage on my form with
PictureBox control on VB form. The property is implemented as:
function Tacett.Get_Picture: IPictureDisp;
begin
GetOLEPicture(Image1.Picture, Result);
end;
procedure Tacett.Set_Picture(const Value: IPictureDisp);
begin
SetOLEPicture(Image1.Picture, Value);
end;
The 'get' part works fine and the picture box on VB form is updated
with contents of TImage and both are identical. However, the 'set'
part is doing something strange: TImage is updated with contents of
picture box, but the image is smaller than its VB counterpart. Any
ideas what is going on and how to fix it? Using D5 Ent and VB 6 Ent on
Win2000.
Thanks
Eric
- Previous message: Nicholas Sherlock: "Re: Create random number in Pascal Script Dialog Newsreader"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|