trichview.com

trichview.support




Re: Store extra info.


Return to index


Author

Message

Jeff

Posted: 09/26/2002 14:35:16


Hi,


Thank you very much for both Rafal and Sergey. Actually the suggested cannot

solve my implementation. Cause our implementation just let the user to custom

the HTML title when the rve export to html. So when loading the rve next

time i don't know how retrieve the previous title name. But thanks anyway.


Thanks again for both of you.


Cheers.



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

>Add*** methods add items to the end of document, so its itemno =

>rve->ItemCount-1 (immediately after call of Add*** methods).

>But actually, tags usually required for some specific items.

>For example, tags of items in the position of caret is returned by

>GetCurrentTag.

>Tag of clicked hypertext item:

>

>void __fastcall TfrmMain::rveJump(TObject *Sender, int id)

>{

>  int ItemNo;

>  TCustomRVFormattedData* RVData;

>

>  rve->GetJumpPointLocation(id, RVData, ItemNo);

>  AnsiString s = (char*)RVData->GetItemTag(ItemNo);

>  Application->MessageBox(s.c_str(), "Link", MB_OK | MB_ICONINFORMATION);

>}

>

>

>

>>

>> Hi Rafal,

>>

>> Thanks again for your reply. Actullay i try the GetItemTag(...) method

>before

>> and also i try to scan throught the demo program from "Tag(PChar)". For

my

>> testing application it return the null value to me. I try to look into

the

>> RVStyle setting. It seem's to same except i overlook some of the setting.

>> I have another quesiton. i found the AddNLTag(Str, StyleNo, ParaNo, TagNo)

>> it dose not mention the itemno but when retrieve the inforamtion it use

>the

>> GetItemTag(ItemNo). Becase from my applicaiton i load the rve i will set

>> this hidding information by default. Use can change this information.

So

>> how can i ensure which itemno will assign to and retrieve. Is there any

>even

>> to retrieve this information is more save or appropriated.

>>

>> Any idea?

>>

>> Jeff

>>

>> "rafaellop" <[email protected]> wrote:

>> >Hi,

>> >

>> >> Thank you for you response. I try to use the

>> >> "rve->AddNLTag("Helloworld", 0, 0, Integer(StrNew("Year_1999")));"

but

>> i

>> >> don't know which method can retrieve the result?

>> >

>> >I use the following code to store:

>> >

>> >aRView.AddNLTag('Yahoo', 4,-1,

>Integer(StrNew(PChar('http://www.yahoo.com'))));

>> >

>> >and retrieve data:

>> >

>> >    yahoourl := PChar(RVData.GetItemTag(ItemNo))

>> >

>> >Regards

>> >Rafal

>> >

>> >

>>

>

>





Powered by ABC Amber Outlook Express Converter