trichview.com

trichview.support




Re: Redraw drag&dropped TComponent


Return to index


Author

Message

Pieter E.

Posted: 11/13/2004 11:04:45


Dear Sergey,


I use the following code for inserting a button in RichViewEdit:


TButton *btn = new TButton((TComponent*)NULL);

btn->Caption = "Click Me!";

btn->OnClick = OnControlClick;

rve->InsertControl("", btn, rvvaBaseline);

if(rve->CurItemStyle == rvsComponent)

                        rve->SetCurrentItemExtraIntProperty(rvepResizable,

1, true);


(It is taken form the Editor1 demo)


When drag & drop the button doesn't show correctly. I need to press the button

(which is located on the new place) before is shows correctly.


Do you could give me a hint?


Thanks.


Pieter E.


"Sergey Tkachenko" <[email protected]> wrote:

>Which component do you use?

>





Powered by ABC Amber Outlook Express Converter