trichview.support
Re: Three questions |
Author |
Message |
Sergey Tkachenko |
Posted: 11/02/2002 13:02:27 > However, you did not answer to > >> hyperlink and how can I make it be > > > centered, left or right-aligned? > (about images) Images have alignment of paragraphs where they were inserted. > > and second, is there any example of setting an image to be a hyperlink? > Because I can convert the picture to a hot picture, but how do I set the URL > it points to... ? You can store hypertext targets in item tags. Include rvoTagsArePChars in RichViewEditOptions. Then, if you want to assign a target to the given "hotpicture", write: rve.InsertHotpicture(...) if rve.CurItemStyle = rvsHotPicture then rve.SetCurrentTag(Integer(StrNew('http://www.trichview.com')); In OnJump, write // uses ShellApi, CRVFData; procedure TForm1.rveJump(Sender: TObject; id: Integer); var ItemNo: Integer; RVData: TCustomRVFormattedData; URL: String; begin rve.GetJumpPointLocation(id, RVData, ItemNo); URL := PChar(RVData.GetItemTag(ItemNo)); ShellExecute(0, 'open', PChar(URL), nil, nil, SW_SHOW); end; > > --Slavi > > > > "Sergey Tkachenko" <[email protected]> wrote in message > news:[email protected]... > > > First, how can I set an image to be a hyperlink and how can I make it be > > > centered, left or right-aligned? > > > > Use "hot picture" item type (AddHotPicture, InsertHotPicture). > > Since version 1.6.32, there are methods converting pictures to "hot > > pictures" and vice versa (ConvertToHotPicture, ConvertToPicture). > > > > > > > > Second, can I somehow set the margins of the document ? Left, right, and > > so > > > on? > > > > RichView.LeftMargin, etc. > > RVPrint.LeftMarginMM, etc. > > See the explanation (with picture) in the help file, topic on TRVPrint > > > > > > > > Finally, can I determine the type of the picture which is being pasted > > from > > > clipboard ( .jpg, .bmp and so on) ? > > > > If the Clipboard has a bitmap, this bitmap is pasted. > > Otherwise, if it has a metafile, this metafile is pasted. > > If you want to paste images in format other than RVF, RTF, text, unicode > > text, bitmap, metafile, use OnPaste event. > > > > > > > > --Slavi > > > > > > > > > > > > |
Powered by ABC Amber Outlook Express Converter