trichview.com

trichview.support




Re: How does ResizeControl work?


Return to index


Author

Message

Sergey Tkachenko

Posted: 12/05/2002 22:29:11


How do you call it?

For example, the editor demo (Demos\Delphi\Editors\Editor 1\) uses

ResizeCurrentControl function (which calls ResizeControl inside), and it

works (move the caret to the control, right click and choose "item

properties" in the menu).


> Hallo,

>

> I'm using a TRichViewEdit component to implement a HTML-editor. The user

> can drag TImages on the RichViewEdit, which are then inserted as Controls.

> Afterwards the user should be able to modify the imges size.

> I've implemented the "Modify Image" dialog. After closing it I compute the

> new size, search the item numer of the TImage control with

FindControlItemNo

> and try to set the new size with ResizeControl, which doesn't seem to

work.

> The procedure doesn't raise an error, but the image size stays original.

> What could I have done wrong?

>

> Regards,

>

> Christian Kirchhoff

>

>





Powered by ABC Amber Outlook Express Converter