technofantasy

博客园 首页 新随笔 联系 订阅 管理

2006年9月6日 #

摘要: 'InsertsthepictureatthecurrentinsertionpointPublicFunctionInsertPicture()FunctionInsertPicture(RTBAsRichTextBox,picAsStdPicture)DimstrRTFallAsStringDimlStartAsLongWithRTB.SelText=Chr(&H9D)&.Se... 阅读全文
posted @ 2006-09-06 17:20 陈锐 阅读(2204) 评论(0) 推荐(0) 编辑

摘要: Properties - all sizes are in twipsxLeft - Position of the left edge of the tableisCentered - Set to True to center the tableRows - Sets or returns the number of rows in the tableColumns - Sets or ret... 阅读全文
posted @ 2006-09-06 17:17 陈锐 阅读(2432) 评论(1) 推荐(0) 编辑

摘要: Public Sub SetSubScript()Sub SetSubScript(RTB As RichTextBox)Dim iPos As LongDim strRTF As String With RTB If .SelCharOffset >= 0 Then 'subscript the current selection ... 阅读全文
posted @ 2006-09-06 17:10 陈锐 阅读(1110) 评论(0) 推荐(0) 编辑

摘要: Public Sub HighLight()Sub HighLight(RTB As RichTextBox, lColor As Long)'add new color to color table'add tags \highlight# and \highlight0'where # is new color numberDim iPos As LongDim strRTF As Strin... 阅读全文
posted @ 2006-09-06 17:08 陈锐 阅读(1168) 评论(2) 推荐(0) 编辑

摘要: visual basic code: Dim iPos As LongDim strInsert As StringDim strRTF As StringDim lStart As Long'assumes that strInsert contains the RTF code that you want to insert'and that the current cursor posit... 阅读全文
posted @ 2006-09-06 17:06 陈锐 阅读(956) 评论(0) 推荐(0) 编辑