trichview.support
Re: Constructure URL |
Author |
Message |
Jeff |
Posted: 08/08/2002 19:30:34 Hi Sergey, Thank you for your support. Here is the codes. Right now i can construct the URL within the table because our application not necessary open the url from the rve. But, if i use the method "rve->SetItemTagEd(itemNo, tag)" it will construct the empty link. if i use "rve->SetCurrentTag(tag)" it will produces the same URL address if more than one link made.Is that the memory address refer to the same place? Any ideas? void __fastcall TfrmDesigner::rveURLNeeded(TCustomRichView *Sender, int id, AnsiString &url) { // randomize(); int itemNo; int tNo; AnsiString mURL; TCustomRVFormattedData *RVData; rve->GetJumpPointLocation(id, RVData, itemNo); tNo = rve->GetCurrentTag(); // tNo = rve->GetItemTag(itemNo); mURL = AnsiString ((char*) tNo); if(IsHTTP(mURL)) url = mURL; else url = "http://" + mURL; } /---------------------------------------------------------------- void __fastcall TfrmDesigner::winMakLinkExecute(TObject *Sender) { AnsiString url = InputBox("URL", "URL", "URL"); if(url.AnsiCompareIC("url") == 0) return; if(!IsAddress(url)){ ShowMessage("Invalid URL address."); return; } int itemNo = rve->CurItemNo; TCustomRVItemInfo *RVItem; RVItem = rve->GetCurrentItem(); rve->ApplyTextStyle(4); int tag = (int) StrNew(url.c_str()); rve->SetItemTagEd(itemNo, tag); } //--------------------------------------------------------------- Thanks again... Cheers "Sergey Tkachenko" <[email protected]> wrote: >> By the way, the method i used current is >> rve->GetJumpPointLocation(id, RVData, itemNo); >> > >Please post a complete code which you execute in OnJump. > > |
Powered by ABC Amber Outlook Express Converter