trichview.com

trichview.support




Re: SetControlInfoEd with in the table


Return to index


Author

Message

Jeff

Posted: 07/29/2002 20:07:56


Hi Sergey,


Could you pls tell me how to make the Pointer style change to accept the

Drag and Drop style. Cause when i drag and drop the file into the table within

the rve. Even i pick the cell before i move the file into the picked cell

the pointer style no change but if i move to the cell closer to the border

it will accept me to drop.


Any idea?


here is my implementation


TCustomRichViewEdit* rve1;

if(Source == ListView1 || rve1 == rve->GetCurrentItem() || Source == rve)

  Accept = true;

else

  Accept = false;



Thanks a lot.


Cheers


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

>Hi,

>

>Use SetCurrentControlInfo instead of SetControlInfoEd.

>

>Items in cells are not items of the main document, they cannot be addressed

>by an itemindex (CurItemNo).

>When editing cells, richview creates a special editor and move all cell

>contents there.

>

>Alternative (in the latest version):

>

>sender->TopLevelEditor->SetControlInfoEd(sender->TopLevelEditor->CurItemNo,

>....)

>

>

>>

>> Hi,

>>

>> When i implement the DragAndDrop i can drag and drop the source e.g.

>txtfile,

>> images etc; into to the RVE, but if i try to put the source inside the

>table.

>> it will pop up the msg is "Can get or set this kind of information for

>this

>> item."

>>

>> sender->InsertControl(imgName, image,rvvaBaseline);

>>

>> // if table warning msg. //

>> sender->SetControlInfoEd(sender->CurItemNo,imgName,rvvaBaseline,1);

>>

>> ender->ResizeCurrentControl(width, height);

>>

>>

>> can anyone help.

>>

>> Thanks a lot.

>

>





Powered by ABC Amber Outlook Express Converter