trichview.support
current cell |
Author |
Message |
Miro |
Posted: 07/18/2002 16:50:47 i need to get current cell (to assign cell properties) i'm using following code: if dbrichview.GetCurrentItemEx(TRVTableItemInfo, rve, item) then begin table := TRVTableItemInfo(item); if table.GetEditedCell(rowe,colE) <> nil then cell := table.cells[rowe,cole]; end; in most cases this works fine, but if i set my cursor for example on positions with '*' inside table1 (see attachment) i don't get any cell back because GetCurrentItemEx returns table2 ---> and there is no edited cell in table2 (only in table1) i think reason for this is that GetCurrentItemEx recursively looks for tables in tables if inplaceeditor is not nil: function TCustomRichViewEdit.GetCurrentItemEx(RequiredClass: TCustomRVItemInfoClass; var ItemRichViewEdit: TCustomRichViewEdit; var Item: TCustomRVItemInfo): Boolean; var Item2: TCustomRVItemInfo; ItemRichViewEdit2: TCustomRichViewEdit; begin if GetItem(CurItemNo) is RequiredClass then begin Item := GetItem(CurItemNo); ItemRichViewEdit := Self; end else begin Item := nil; ItemRichViewEdit := nil; end; if (InplaceEditor<>nil) and (InplaceEditor is TCustomRichViewEdit) and TCustomRichViewEdit(InplaceEditor).GetCurrentItemEx(RequiredClass, ItemRichViewEdit2, Item2) then begin Item := Item2; ItemRichViewEdit := ItemRichViewEdit2; end; Result := Item<>nil; end; did anyone have any fixes or solution for this problem? thanks miro begin 666 2tables.jpg M_]C_X `02D9)1@`!`@``9 !D``#_[ `11'5C:WD``0`$````(0``_^X`(4%D M;V)E`&3 `````0,`$ ,"`P8```48```)" ``%=#_VP"$``\*"@H+"@\+"P\5 M#@P.%1D3#P\3&1T7%Q<7%QT<%AD8&!D6'!PA(R0C(1PL+"\O+"Q /S\_0$! M0$! 0$! 0$ !$ X.$!(0%!$1%!0/$@\4&!,4%!,8(Q@8&A@8(RT@'!P<'" M M*"LD)"0K*#$Q+2TQ,3X^.SX^0$! 0$! 0$! 0/_"`!$(`5P!W0,!(@`"$0$# M$0'_Q "D``$!`0$!`0$``````````````@$#! 4&`0$!`0`````````````` M`````0,0``(!! $#!0`#`0$```````$"! `P$0,20% %(2(3(Q00('" !A$` M`0($`@4("@,!``(#`````1$"`"$2(C$#,(&1H<%!87&Q0A-C%$!1,E)B<J(C M!"10T9(T$"!P4P42``(#``````````````````!!$&"0_]H`# ,!``(1`Q$` M``#ZC@VS[N ]&\.4>S/FV?0?(]1[-^59]+/./2\P]&^8>G/./2\P]&^8>G/. M/2\P]&^8>G/./2\P]&^8>G/./2\P]&^8>G/./2\P]&^8>G/./2\P]&^8>C.4 MG=P5W< `!N5)X_/]1'P_;[Q\KV^@!0```````````````````&Y4@ ``%3N M```````````````````````%3N ```%34@````"XZ0SY'E7]$_)_4CZ_'XGH M/K7\SZ%G1S%[S'3('1S%[S'3('1S%[SZ',4````!4U(```!N5( ````N.AS M``````````Z<[B!0````&Y4@```%3N ````#KRN(% `````````.G/I',4 ` M``!4[@```!4U( ````Z<^L<A0 ````````"XZ1S%`````5-2````;E2 ```` M+CH<P `````````.G.X@4 ```!N5( ``!4[@`````Z\KB!0`````````#ISZ M1S1=`````5.X````5-2 ````.G/K'(4``````````.D?-]Q0````%34@```& MY4@````"XZ',``````````#ISN(%`````;E2````5.X`````.O*X@4 ````` M````Z<^D<Q0````%3N ```%34@````#ISZQR% `````````+CI',4 ```!4U M( ``!N5(`````N.AS ``````````Z<[B!0````&Y4@```%3N`````#KRTUFQ MFL-S09IFL-S09IFL-S09IFL-J<,%`````5.X````5-2 `````````#3'JB.# MT^:@``````````*FI ```-RI```````````/7/F1Z/.4``````````!N5( ` M`!4[@ ``````````````````````!4[@```!4U(````````````````````` M``!4U( ``!N5( ``````````````````````!N5(```!68*2-V168*2-V168 M*2-V168*2-V168*2-V168*2-V168*2-V168*2-V168*D```````````````` M````````````````/__:``@!`@`!!0#%8_CTKTKTK%8K%8K%8K%8K%8K%8K% M8K%8K%8K%8K'\8K'],5@5COY_H*Q_&*Q_&*QW$W#T1N'N!N'HC</<#</1&X> MX^M>M>M>M>M>M>M>M>M>M>O4YZ['^3?_V@`(`0,``04`[#FLUG_LO/\`DW__ M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