Advertisement
Guest User

Untitled

a guest
Nov 3rd, 2008
1,190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 47.68 KB | None | 0 0
  1. ;===============================================================================
  2. ;
  3. ; Description:          _GUICtrlRichEdit_Create
  4. ; Parameter(s):     $h_Gui          - Handle to parent window
  5. ;                           $x                  - The left side of the control
  6. ;                           $y                  - The top of the control
  7. ;                           $width          - The width of the control
  8. ;                           $height         - The height of the control
  9. ;                           $v_styles       - styles to apply to the control (Optional) for multiple styles bitor them.
  10. ;                           $v_exstyles     - extended styles to apply to the control (Optional) for multiple styles bitor them.
  11. ; Requirement:
  12. ; Return Value(s):   Returns hWhnd if successful, or 0 with error set to 1 otherwise.
  13. ; User CallTip:      _GUICtrlRichEdit_Create($h_Gui, $x, $y, $width, $height, [, $v_styles = -1[, $v_exstyles = -1]]) Creates RichEdit Control.
  14. ; Author(s):         Gary Frost (gafrost (custompcs@charter.net))
  15. ; Note(s):
  16. ;===============================================================================
  17. ;
  18.  
  19. ;===============================================================================
  20. ;
  21. ; Description:          _GUICtrlRichEdit_CreateInput
  22. ; Parameter(s):     $h_Gui          - Handle to parent window
  23. ;                           $x                  - The left side of the control
  24. ;                           $y                  - The top of the control
  25. ;                           $width          - The width of the control
  26. ;                           $height         - The height of the control
  27. ;                           $v_styles       - styles to apply to the control (Optional) for multiple styles bitor them.
  28. ;                           $v_exstyles     - extended styles to apply to the control (Optional) for multiple styles bitor them.
  29. ; Requirement:
  30. ; Return Value(s):   Returns hWhnd if successful, or 0 with error set to 1 otherwise.
  31. ; User CallTip:      _GUICtrlRichEdit_CreateInput($h_Gui, $x, $y, $width, $height, [, $v_styles = -1[, $v_exstyles = -1]]) Creates RichEdit Control.
  32. ; Author(s):         Gary Frost (gafrost (custompcs@charter.net))
  33. ; Note(s):
  34. ;===============================================================================
  35. ;
  36.  
  37. ;===============================================================================
  38. ;
  39. ; Function Name:   _GUICtrlRichEdit_SetText()
  40. ; Description:     Sets the text of the RichEdit
  41. ; Parameter(s):     $h_RichEdit     - Handle to the control
  42. ;                   $s_Text         - Text to put into the control
  43. ; Requirement:
  44. ; Return Value(s):  If the operation is setting all of the text and succeeds, the return value is 1.
  45. ;                   If the operation is setting the selection and succeeds, the return value is the number of bytes or characters copied.
  46. ;                   If the operation fails, the return value is zero.
  47. ; User CallTip:     _GUICtrlRichEdit_SetText($h_Gui, $s_Text) Put text into the RichEdit Control.
  48. ; Author(s):        Gary Frost (gafrost (custompcs@charter.net))
  49. ;                   -modified by Prog@ndy
  50. ; Note(s):
  51. ;===============================================================================
  52. ;
  53.  
  54. ;===============================================================================
  55. ;
  56. ; Function Name:   _GUICtrlRichEdit_AppendText()
  57. ; Description:     Replaces text of the current selection of the RichEdit
  58. ; Parameter(s):    $h_RichEdit      - Handle to the control
  59. ;                  $s_Text         - Text to put into the control
  60. ; Requirement(s):
  61. ; Return Value(s): If the operation is setting all of the text and succeeds, the return value is 1.
  62. ;                   If the operation is setting the selection and succeeds, the return value is the number of bytes or characters copied.
  63. ;                   If the operation fails, the return value is zero.
  64. ; Author(s):       Gary Frost (gafrost (custompcs@charter.net))
  65. ;              -modified by Prog@ndy
  66. ;
  67. ;===============================================================================
  68. ;
  69.  
  70. ;===============================================================================
  71. ;
  72. ; Function Name:   _GUICtrlRichEdit_AppendText()
  73. ; Description:     Appends text at the end of the RichEdit
  74. ; Parameter(s):    $h_RichEdit      - Handle to the control
  75. ;                  $s_Text         - Text to put into the control
  76. ; Requirement(s):
  77. ; Return Value(s): If the operation is setting all of the text and succeeds, the return value is 1.
  78. ;                   If the operation is setting the selection and succeeds, the return value is the number of bytes or characters copied.
  79. ;                   If the operation fails, the return value is zero.
  80. ; Author(s):       Gary Frost (gafrost (custompcs@charter.net))
  81. ;              -modified by Prog@ndy
  82. ;
  83. ;===============================================================================
  84. ;
  85.  
  86. ;===============================================================================
  87. ;
  88. ; Function Name:   _GUICtrlRichEdit_GetTextRange()
  89. ; Description:     Gets a textrange
  90. ; Parameter(s):    $h_RichEdit      - Handle to the control
  91. ;                  $start           - Beginning Index of the text to get
  92. ;                  $end             - Ending Index of the text to get
  93. ; Requirement(s):
  94. ; Return Value(s): The message returns the number of characters copied, not including the terminating null character.
  95. ; Author(s):       Prog@ndy
  96. ;
  97. ;===============================================================================
  98. ;
  99.  
  100. ;================================================================================================================================
  101. ; Name...........:  _GUICtrlRichEdit_CharFromPos
  102. ; Description ...: Retrieve information about the character closest to a specified point in the client area
  103. ; Syntax.........: _GUICtrlRichEdit_CharFromPos($hWnd, $iX, $iY)
  104. ; Parameters ....: $hWnd        - Handle to the control
  105. ; Return values .: Success      - zero-based character index of the character nearest the specified point
  106. ;                                 (last character in the edit control if the specified point is beyond the last character in the control.)
  107. ; Author ........: Gary Frost (gafrost)
  108. ; Modified.......: Prog@ndy
  109. ; Remarks .......:
  110. ; Related .......:
  111. ; Link ..........;
  112. ; Example .......; Yes
  113. ;===============================================================================================================================
  114. ;
  115.  
  116. ;===============================================================================
  117. ;
  118. ; Function Name:   _GUICtrlRichEdit_GetText()
  119. ; Description:     Same as _GUICtrlRichEdit_GetTextEx()
  120. ; Author(s):       Prog@ndy
  121. ;
  122. ;===============================================================================
  123. ;
  124.  
  125. ;===============================================================================
  126. ;
  127. ; Function Name:   _GUICtrlRichEdit_GetTextEx()
  128. ; Description:     Gets the full text of a RichEdit
  129. ; Parameter(s):    $h_RichEdit      - Handle to the control
  130. ; Requirement(s):
  131. ; Return Value(s): Returns Text, @extended = are any default Characters used (non-ACP Unicode characters were replaced)
  132. ; Author(s):       Prog@ndy
  133. ;
  134. ;===============================================================================
  135. ;
  136.  
  137. ;===============================================================================
  138. ;
  139. ; Function Name:   _GUICtrlRichEdit_GetTextLength()
  140. ; Description:     Gets the length of the text full in a RichEdit
  141. ; Parameter(s):    $h_RichEdit      - Handle to the control
  142. ;                  $Exact           - Should it be the exact number of characters?
  143. ; Requirement(s):
  144. ; Return Value(s): The message returns the number of characters in the edit control
  145. ;                  If $Exact is not set, it returns only the approximate length
  146. ; Author(s):       Prog@ndy
  147. ;
  148. ;===============================================================================
  149. ;
  150.  
  151. ;===============================================================================
  152. ;
  153. ; Function Name:   _GUICtrlRichEdit_GetSelText()
  154. ; Description:     Gets the selected text of a RichEdit
  155. ; Parameter(s):    $h_RichEdit      - Handle to the control
  156. ; Requirement(s):
  157. ; Return Value(s): Returns selected Text
  158. ; Author(s):       Prog@ndy
  159. ;
  160. ;===============================================================================
  161. ;
  162.  
  163. ;===============================================================================
  164. ;
  165. ; Function Name:   _GUICtrlRichEdit_GetSel()
  166. ; Description:      Retrieves the starting and ending character positions of the current selection in an edit control.
  167. ; Parameter(s):     $h_RichEdit - controlID
  168. ; Requirement:      None
  169. ; Return Value(s):  Array containing the starting and ending selected positions
  170. ;                           If an error occurs, the return value is $EC_ERR.
  171. ; Author(s):            Prog@ndy
  172. ; Note(s):              Return value: $array[1] contains the starting position
  173. ;                                     $array[2] contains the ending position
  174. ;
  175. ;===============================================================================
  176. ;
  177.  
  178. ;===============================================================================
  179. ;
  180. ; Function Name:   _GUICtrlRichEdit_SetSel()
  181. ; Description:     Selects a range of characters in an edit control.
  182. ; Parameter(s):     $h_RichEdit - controlID
  183. ;                           $i_start - Specifies the starting character position of the selection.
  184. ;                           $i_end - Specifies the ending character position of the selection.
  185. ; Requirement:          None
  186. ; Return Value(s):  None
  187. ; Author(s):            Gary Frost (custompcs at charter dot net)
  188. ; Note(s):              The start value can be greater than the end value.
  189. ;                           The lower of the two values specifies the character position of the first character in the selection.
  190. ;                           The higher value specifies the position of the first character beyond the selection.
  191. ;
  192. ;                           The start value is the anchor point of the selection, and the end value is the active end.
  193. ;                           If the user uses the SHIFT key to adjust the size of the selection, the active end can move but the anchor point remains the same.
  194. ;
  195. ;                           If the $i_start is 0 and the $i_end is –1, all the text in the edit control is selected.
  196. ;                           If the $i_start is –1, any current selection is deselected.
  197. ;
  198. ;                           The control displays a flashing caret at the $i_end position regardless of the relative values of $i_start and $i_end.
  199. ;
  200. ;===============================================================================
  201. ;
  202.  
  203. ;===============================================================================
  204. ;
  205. ; Function Name:   _GUICtrlRichEdit_HideSelection
  206. ; Description:     Sets wheter the selection mark is visible.
  207. ; Parameter(s):    $hWnd
  208. ; Requirement(s):
  209. ; Return Value(s): If the functions succeeds returns >0
  210. ; Author(s):       Prog@ndy
  211. ;
  212. ;===============================================================================
  213. ;
  214.  
  215. ;===============================================================================
  216. ;
  217. ; Function Name:    _GUICtrlRichEdit_GetLineCount
  218. ; Description:      Retrieves the number of lines in a multiline edit control.
  219. ; Parameter(s):     $h_RichEdit - controlID
  220. ; Requirement:          None
  221. ; Return Value(s):  The return value is an integer specifying the total number of text lines in the multiline edit control.
  222. ; Author(s):            Gary Frost (custompcs at charter dot net)
  223. ; Note(s):              If the control has no text, the return value is 1.
  224. ;                           The return value will never be less than 1.
  225. ;
  226. ;                           The _GUICtrlEditGetLineCount retrieves the total number of text lines,
  227. ;                           not just the number of lines that are currently visible.
  228. ;
  229. ;                           If the Wordwrap feature is enabled, the number of lines can change when the dimensions of the editing window change.
  230. ;
  231. ;===============================================================================
  232. ;
  233.  
  234. ;===============================================================================
  235. ;
  236. ; Function Name:    _GUICtrlRichEdit_LineIndex
  237. ; Description:      Retrieves the character index of the first character of a specified line in a multiline edit control.
  238. ; Parameter(s):     $h_RichEdit - controlID
  239. ;                           $i_line - Optional: Specifies the zero-based line number.
  240. ;                                       A value of –1 specifies the current line number (the line that contains the caret).
  241. ; Requirement:          None
  242. ; Return Value(s):  The return value is the character index of the line specified in the wParam parameter,
  243. ;                           or it is $EC_ERR if the specified line number is greater than the number of lines in the edit control.
  244. ; Author(s):            Gary Frost (custompcs at charter dot net)
  245. ; Note(s):
  246. ;
  247. ;===============================================================================
  248. ;
  249.  
  250. ;===============================================================================
  251. ;
  252. ; FUnction Name:    _GUICtrlRichEdit_LineLength
  253. ; Description:      Retrieves the length, in characters, of a line in an edit control.
  254. ; Parameter(s):     $h_RichEdit - controlID
  255. ;                           $i_index - Optional: Specifies the character index of a character in the line whose length is to be retrieved.
  256. ; Requirement:          None
  257. ; Return Value(s):  For multiline edit controls, the return value is the length, in TCHARs, of the line specified by the $i_index parameter.
  258. ;                           For single-line edit controls, the return value is the length, in TCHARs, of the text in the edit control.
  259. ; Author(s):            Gary Frost (custompcs at charter dot net)
  260. ; Note(s):              $i_index
  261. ;                               For ANSI text, this is the number of bytes
  262. ;                               For Unicode text, this is the number of characters.
  263. ;                               It does not include the carriage-return character at the end of the line.
  264. ;                               If $i_index is greater than the number of characters in the control, the return value is zero.
  265. ;
  266. ;===============================================================================
  267. ;
  268.  
  269. ;===============================================================================
  270. ;
  271. ; Function Name:   _GUICtrlRichEdit_GetFirstVisibleLine
  272. ; Description:     Gets the first line which is visible in the Control
  273. ; Parameter(s):    $h_RichEdit - The handle of the RichEdit
  274. ; Requirement(s):
  275. ; Return Value(s): The line number of the first visible line.
  276. ; Author(s):       Gary Frost
  277. ;
  278. ;===============================================================================
  279. ;
  280.  
  281. ;===============================================================================
  282. ;
  283. ; Function Name:   _GUICtrlRichEdit_SetZoom
  284. ; Description:     Sets the zoomlevel of the RichEdit.
  285. ; Parameter(s):    $h_RichEdit - The handle of the RichEdit
  286. ;                  $nominator  - Numerator of the zoom ratio.
  287. ;                  $denominator  - Denominator of the zoom ratio.
  288. ; Requirement(s):
  289. ; Return Value(s):     If the new zoom setting is accepted, the return value is TRUE.
  290. ;                      If the new zoom setting is not accepted, the return value is FALSE.
  291. ; Author(s):       Gary Frost
  292. ; Notes:           $nominator and $denominator: Both 0
  293. ;                       -> Turns off zooming by using the EM_SETZOOM message
  294. ;                  1/64 < ($nominator / $denominator) < 64
  295. ;                       -> Zooms display by the zoom ratio numerator/denominator
  296. ;
  297. ;===============================================================================
  298. ;
  299.  
  300. ;===============================================================================
  301. ;
  302. ; Function Name:   _GUICtrlRichEdit_GetZoom
  303. ; Description:     Sets the zoomlevel of the RichEdit.
  304. ; Parameter(s):    $h_RichEdit - The handle of the RichEdit
  305. ;                  $nominator  - Numerator of the zoom ratio.
  306. ;                  $denominator  - Denominator of the zoom ratio.
  307. ; Requirement(s):
  308. ; Return Value(s):     On success return Array:
  309. ;                         [0] -> nominator
  310. ;                         [1] -> denominator
  311. ;                      On error returns 0 and @error set to 1
  312. ; Author(s):       Gary Frost
  313. ; Notes:           $nominator and $denominator: Both 0
  314. ;                       -> Turns off zooming by using the EM_SETZOOM message
  315. ;                  1/64 < ($nominator / $denominator) < 64
  316. ;                       -> Zooms display by the zoom ratio numerator/denominator
  317. ;
  318. ;===============================================================================
  319. ;
  320.  
  321. ;===============================================================================
  322. ;
  323. ; Function Name:   _GUICtrlRichEdit_SetEffect
  324. ; Description:     adds, removes effects and set to undefined
  325. ; Parameter(s):    $dwMask: the Mask for _GUICtrlRichEdit_SetFormat
  326. ;                  $dwEffects: the Effects for _GUICtrlRichEdit_SetFormat
  327. ;                  $effect: the effect to change
  328. ;                  $Flag: 1 : add the style       -> the Style will be set in RichEdit
  329. ;                         0 : delete the style    -> the Style will be removed in RichEdit
  330. ;                        -1 : set it to undefined -> the Style won't be changed in RichEdit
  331. ; Requirement(s):  RichEditUDF
  332. ; Return Value(s): Success: 1, Error 0
  333. ; Author(s):       Prog@ndy
  334. ;
  335. ;===============================================================================
  336. ;
  337.  
  338. ;===============================================================================
  339. ;
  340. ; Function Name:   _GUICtrlRichEdit_SetFormat
  341. ; Description:     Sets the format of the specified Format Range
  342. ; Parameter(s):    $h_RichEdit - The handle of the RichEdit
  343. ;                  $iFormatRange - Character formatting that applies to the control.
  344. ;                           If this parameter is zero, the default character format
  345. ;                           is set. Otherwise, it can be one of the following values:
  346. ;                           $SCF_ALL, $SCF_ASSOCIATEFONT, $SCF_DEFAULT, $SCF_NOKBUPDATE, $SCF_SELECTION, $SCF_USEUIRULES, $SCF_WORD
  347. ;                  $dwMask, $dwEffects: setting of Character effects
  348. ;                      To set effects, simply use _GUICtrlRichEdit_SetEffect on those variables ( before calling this function )
  349. ;                  The other parameters can be found at http://msdn.microsoft.com/en-us/library/bb787883(VS.85).aspx
  350. ; Requirement(s):  This function needs RichEdit 2.0 to work, because it uses CHARFORMAT2 for Win95, you have to write it on your own.
  351. ; Return Value(s): If the operation succeeds, the return value is a nonzero value.
  352. ;                  If the operation fails, the return value is zero.
  353. ; Author(s):       Gary Frost (gafrost (custompcs@charter.net))
  354. ;              -modified by Prog@ndy
  355. ;
  356. ;===============================================================================
  357. ;
  358.  
  359. ;====================================================================================================
  360. ; Function Name : _GUICtrlRichEdit_BkColor
  361. ; Description:    Sets a background color of a richedit control
  362. ; Parameters    : $hWnd         - Handle to the control
  363. ;                 $iColor       - Color to set
  364. ; Return values : none
  365. ; Author        : grham
  366. ; Notes         :
  367. ;====================================================================================================
  368. ;
  369.  
  370. ;====================================================================================================
  371. ; Function Name : _GUICtrlRichEdit_GetFontName
  372. ; Description:    Retrieves the font Name of the selected Text
  373. ; Parameters    : $hWnd         - Handle to the control
  374. ; Return values : Font name
  375. ; Author        : grham
  376. ; Notes         :
  377. ;====================================================================================================
  378. ;
  379.  
  380. ;====================================================================================================
  381. ; Function Name : _GUICtrlRichEdit_GetFontSize
  382. ; Description:    Retrieves the font size of the selected text. ( in printer points )
  383. ; Parameters    : $hWnd         - Handle to the control
  384. ; Return values : Font size
  385. ; Author        : grham
  386. ; Notes         :
  387. ;====================================================================================================
  388. ;
  389.  
  390. ;====================================================================================================
  391. ; Function Name : _GUICtrlRichEdit_GetBold
  392. ; Description:    Retrieves if the selected text is bold.
  393. ; Parameters    : $hWnd         - Handle to the control
  394. ; Return values : Returns True or False
  395. ; Author        : grham
  396. ; Notes         :
  397. ;====================================================================================================
  398. ;
  399.  
  400. ;====================================================================================================
  401. ; Function Name : _GUICtrlRichEdit_GetItalic
  402. ; Description:    Retrieves if the selected text is italic.
  403. ; Parameters    : $hWnd         - Handle to the control
  404. ; Return values : Returns True or False
  405. ; Author        : grham
  406. ; Notes         :
  407. ;====================================================================================================
  408. ;
  409.  
  410. ;====================================================================================================
  411. ; Function Name : _GUICtrlRichEdit_GetUnderline
  412. ; Description:    Retrieves if the selected text is underlined.
  413. ; Parameters    : $hWnd         - Handle to the control
  414. ; Return values : Returns True or False
  415. ; Author        : grham
  416. ; Notes         :
  417. ;====================================================================================================
  418. ;
  419.  
  420. ;====================================================================================================
  421. ; Function Name : _GUICtrlRichEdit_GetStrikeOut
  422. ; Description:    Retrieves if the selected textis striked out.
  423. ; Parameters    : $hWnd         - Handle to the control
  424. ; Return values : Returns True or False
  425. ; Author        : grham
  426. ; Notes         :
  427. ;====================================================================================================
  428. ;
  429.  
  430. ;====================================================================================================
  431. ; Function Name : _GUICtrlRichEdit_GetFontColor
  432. ; Description:    Retrieves the Color of the selected text.
  433. ; Parameters    : $hWnd         - Handle to the control
  434. ; Return values : Font color (Hex)
  435. ; Author        : grham
  436. ; Notes         :
  437. ;====================================================================================================
  438. ;
  439.  
  440. ;====================================================================================================
  441. ; Function Name : _GUICtrlRichEdit_GetBkColor
  442. ; Description:    Retrieves the Background color of the selected text.
  443. ; Parameters    : $hWnd         - Handle to the control
  444. ; Return values : Background color (Hex)
  445. ; Author        : grham
  446. ; Notes         :
  447. ;====================================================================================================
  448. ;
  449.  
  450. ;====================================================================================================
  451. ; Function Name : _GUICtrlRichEdit_GetFormat
  452. ; Description:    Retrieves the Format of the selected text.
  453. ; Parameters    : $hWnd         - Handle to the control
  454. ; Return values : Returns an Array with font format
  455. ;                           index 0: bold-italic-underline-strikeout
  456. ;                                 1: fontcolor
  457. ;                                 2: backgroundcolor
  458. ; Author        : grham
  459. ; Notes         :
  460. ;====================================================================================================
  461. ;
  462.  
  463. ;====================================================================================================
  464. ; Function Name:   _GUICtrlRichEdit_GetSelection()
  465. ; Description:      Retrieves the starting and ending character positions of the current selection in an edit control.
  466. ; Parameters    : $hWnd         - Handle to the control
  467. ; Return values : Returns the beginning and the ending position of the selection
  468. ; Author        :
  469. ; Notes         :
  470. ;====================================================================================================
  471. ;
  472.  
  473. ;===============================================================================
  474. ;
  475. ; Function Name:   _GUICtrlRichEdit_GetScrollPos
  476. ; Description:     Gets the Scrolling position of a GCR
  477. ; Parameter(s):    $hRichText - handle to RichEdit
  478. ; Return Value(s): Array: [0]
  479. ; Author(s):       KIP, or otherwere from the forum ?
  480. ;
  481. ;===============================================================================
  482. ;
  483.  
  484. ;===============================================================================
  485. ;
  486. ; Function Name:   _GUICtrlRichEdit_SetScrollPos
  487. ; Description:     Sets the Scrolling position of a GCR
  488. ; Parameter(s):    $hRichText - handle to RichEdit
  489. ; Return Value(s): Array: [0]
  490. ; Author(s):       Prog@ndy
  491. ;
  492. ;===============================================================================
  493. ;
  494.  
  495. ;====================================================================================================
  496. ; Function Name:  _GUICtrlRichEdit_IncreaseFontSize
  497. ; Description:    Increase or decrease the font size
  498. ; Parameters    : $hWnd         - Handle to the control
  499. ;                 $hDelta       - Value of incrementation, Negative ==> decrementation
  500. ; Return values : Returns True if successful, or False otherwise
  501. ; Author        :
  502. ; Notes         : Apllied to the the end of text
  503. ;====================================================================================================
  504. ;
  505.  
  506. ;====================================================================================================
  507. ; Function Name: _GUICtrlRichEdit_LimitText
  508. ; Description:    Limit the control to N chararacters
  509. ; Parameters    : $hWnd         - Handle to the control
  510. ;                 $hLimitTo     - Number of characters
  511. ; Return values : True on success, otherwise False
  512. ; Author        : Yoan Roblet (Arcker)
  513. ; Notes         : Set 0 to disable the limit ( set to default, which is 64000 )
  514. ;====================================================================================================
  515. ;
  516.  
  517. ;====================================================================================================
  518. ; Function Name:  _GUICtrlRichEdit_SetAlignment
  519. ; Description:    Sets Paragraph alignment.
  520. ; Parameters    : $hWnd         - Handle to the control
  521. ;                 $iAlignment   Values:
  522. ;                               1 or $PFA_LEFT      Paragraphs are aligned with the left margin.
  523. ;                               2 or $PFA_RIGHT     Paragraphs are aligned with the right margin.
  524. ;                               3 or $PFA_CENTER    Paragraphs are centered.
  525. ;                               4 or $PFA_JUSTIFY   Paragraphs are justified. This value is
  526. ;                                                   +included for compatibility with TOM interfaces;
  527. ;                                                   +rich edit controls earlier than Rich Edit 3.0
  528. ;                                                   +display the text aligned with the left margin.
  529. ; Return values : None
  530. ; Author        : grham
  531. ; Notes         :
  532. ;====================================================================================================
  533. ;
  534.  
  535. ;====================================================================================================
  536. ; Function Name:  _GUICtrlRichEdit_SetFontName
  537. ; Description:    Select the Font Name
  538. ; Parameters    : $hWnd         - Handle to the control
  539. ;                 $hFontName    - Name of the Font
  540. ;                 $iSelec       - Modify entire text or selection (default)
  541. ; Return values : True on success, otherwise False
  542. ; Author        : Yoan Roblet (Arcker)
  543. ; Modified      : grham
  544. ; Notes         :
  545. ;====================================================================================================
  546. ;
  547.  
  548. ;====================================================================================================
  549. ; FUnction Name:  _GUICtrlRichEdit_SetFontSize
  550. ; Description:    Set Font size
  551. ; Parameters    : $hWnd        - Handle to the control
  552. ;                 $iSize       - Size of the Font
  553. ;                 $iSelec       - Modify entire text or selection (default)
  554. ; Return values : True on success, otherwise False
  555. ; Author        : Yoan Roblet (Arcker)
  556. ; Modified      : grham
  557. ; Notes         :
  558. ;====================================================================================================
  559. ;
  560.  
  561. ;====================================================================================================
  562. ; Function Name: _GUICtrlRichEdit_SetBold
  563. ; Description:    Toggle the Bold effect
  564. ; Parameters    : $hWnd         - Handle to the control
  565. ;                 $iStyle       - True = Set; False = Unset
  566. ;                 $iSelec       - Modify entire text or selection (default)
  567. ; Return values : True on success, otherwise False
  568. ; Author        : Yoan Roblet (Arcker)
  569. ; Modified     :  grham
  570. ; Notes         :
  571. ;====================================================================================================
  572. ;
  573.  
  574. ;====================================================================================================
  575. ; Function Name: _GUICtrlRichEdit_SetItalic
  576. ; Description:    Toggle the Italic effect
  577. ; Parameters    : $hWnd         - Handle to the control
  578. ;                 $iStyle       - True = Set; False = Unset
  579. ;                 $iSelec       - Modify entire text or selection (default)
  580. ; Return values : True on success, otherwise False
  581. ; Author        : Yoan Roblet (Arcker)
  582. ; Modified     :  grham
  583. ; Notes         :
  584. ;====================================================================================================
  585. ;
  586.  
  587. ;====================================================================================================
  588. ; Function Name: _GUICtrlRichEdit_SetLineSpacing
  589. ; Description:    Type of line spacing.
  590. ; Parameters    : $hWnd         - Handle to the control
  591. ;                 $iNum         Values:
  592. ;                               0                   Single spacing.
  593. ;                               1                   One-and-a-half spacing.
  594. ;                               2                   Double spacing.
  595. ; Return values : None
  596. ; Author        : grham
  597. ; Notes         :
  598. ;====================================================================================================
  599. ;
  600.  
  601. ;====================================================================================================
  602. ; Function Name: _GUICtrlRichEdit_SetLink
  603. ; Description:    Toggle the Underline effect
  604. ; Parameters    : $hWnd         - Handle to the control
  605. ;                 $iStyle       - True = Set; False = Unset
  606. ;                 $iSelec       - Modify entire text or selection (default)
  607. ; Return values : True on success, otherwise False
  608. ; Author        : grham
  609. ; Notes         :
  610. ;====================================================================================================
  611. ;
  612.  
  613. ;====================================================================================================
  614. ; Function Name: _GUICtrlRichEdit_SetOffSet
  615. ; Description:    Indentation of the second and subsequent lines,
  616. ;                 +relative to the indentation of the first line, in twips.
  617. ; Parameters    : $hWnd         - Handle to the control
  618. ;                 $iOffset - (here: twips/100)
  619. ; Return values : None
  620. ; Author        : grham
  621. ; Notes         :
  622. ;====================================================================================================
  623. ;
  624.  
  625. ;====================================================================================================
  626. ; Function Name: _GUICtrlRichEdit_SetProtected
  627. ; Description:    Characters are protected;
  628. ;                 +an attempt to modify them will cause an EN_PROTECTED notification message.
  629. ; Parameters    : $hWnd         - Handle to the control
  630. ;                 $iStyle       - True = Set; False = Unset
  631. ;                 $iSelec       - Modify entire text or selection (default)
  632. ; Return values : None
  633. ; Author        : grham
  634. ; Notes         :
  635. ;====================================================================================================
  636. ;
  637.  
  638. ;====================================================================================================
  639. ; Function Name: _GUICtrlRichEdit_SetRevised
  640. ; Description:    Characters are marked as revised.
  641. ; Parameters    : $hWnd         - Handle to the control
  642. ;                 $iStyle       - True = Set; False = Unset
  643. ;                 $iSelec       - Modify entire text or selection (default)
  644. ; Return values : True on success, otherwise False
  645. ; Author        : grham
  646. ; Notes         :
  647. ;====================================================================================================
  648. ;
  649.  
  650. ;====================================================================================================
  651. ; Function Name: _GUICtrlRichEdit_SetUnderline
  652. ; Description:    Toggle the Underline effect
  653. ; Parameters    : $hWnd         - Handle to the control
  654. ;                 $iStyle       - True = Set; False = Unset
  655. ;                 $iSelec       - Modify entire text or selection (default)
  656. ; Return values : True on success, otherwise False
  657. ; Author        : Yoan Roblet (Arcker)
  658. ; Notes         :
  659. ;====================================================================================================
  660. ;
  661.  
  662. ;====================================================================================================
  663. ; Function Name: _GUICtrlRichEdit_SetStrikeOut
  664. ; Description:    Toggle the Strike Out effect
  665. ; Parameters    : $hWnd         - Handle to the control
  666. ;                 $iStyle       - True = Set; False = Unset
  667. ;                 $iSelec       - Modify entire text or selection (default)
  668. ; Return values : True on success, otherwise False
  669. ; Author        : Yoan Roblet (Arcker)
  670. ; Rewritten     : grham
  671. ; Notes         :
  672. ;====================================================================================================
  673. ;
  674.  
  675. ;====================================================================================================
  676. ; Function Name: _GUICtrlRichEdit_SetFontColor
  677. ; Description:    Select the text color
  678. ; Parameters    : $hWnd         - Handle to the control
  679. ;                 $hColor       - Color value
  680. ;                 $iSelect      - Color entire text or selection (default)
  681. ; Return values : True on success, otherwise False
  682. ; Author        : Yoan Roblet (Arcker)
  683. ; Rewritten     : grham
  684. ; Notes         :
  685. ;====================================================================================================
  686. ;
  687.  
  688. ;====================================================================================================
  689. ; Function Name: _GUICtrlRichEdit_SetBkColor
  690. ; Description:    Select the Background text color
  691. ; Parameters    : $hWnd         - Handle to the control
  692. ;                 $hColor       - Color value
  693. ;                 $iSelec       - Color entire text or selection (default)
  694. ; Return values : True on success, otherwise False
  695. ; Author        : Yoan Roblet (Arcker)
  696. ; Rewritten     : grham (works)
  697. ; Notes         :
  698. ;====================================================================================================
  699. ;
  700.  
  701. ;====================================================================================================
  702. ; Function Name: _GUICtrlRichEdit_SetEventMaks
  703. ; Description:    The EM_SETEVENTMASK message sets the event mask for a rich edit control.
  704. ;           The event mask specifies which notification messages the control sends to its parent window
  705. ; Parameters    : $hWnd         - Handle to the control
  706. ;                 $hMin         - Character Number start
  707. ;                 $hMax         - Character Number stop
  708. ; Return values : True on success, otherwise False
  709. ; Author        : Yoan Roblet (Arcker)
  710. ; Notes         :
  711. ;====================================================================================================
  712. ;
  713.  
  714. ;====================================================================================================
  715. ; Function Name: _GUICtrlRichEdit_SetNumbering
  716. ; Description:    Sets paragraph numbering and numbering type
  717. ; Parameters    : $hWnd         - Handle to the control
  718. ;                 $iChar        - Characters used for numbering:
  719. ;                               0                   No numbering
  720. ;                               1 or $PFN_BULLET    Inserts a bullet
  721. ;                               2                   Arabic numbres (1,2,3   .)
  722. ;                               3                   Lowercase tetters
  723. ;                               4                   Uppercase letters
  724. ;                               5                   Lowercase roman numerals (i,ii,iii...)
  725. ;                               6                   Uppercase roman numerals (I, II,   .)
  726. ;                               7                   Uses a sequence of characters beginning with
  727. ;                                                   +the Unicode character specified by
  728. ;                                                   +the wNumberingStart member
  729. ;                 $iFormat      - Numbering style used with numbered paragraphs
  730. ;                               0                   Follows the number with a right parenthesis.
  731. ;                               0x100               Encloses the number in parentheses.
  732. ;                               0x200               Follows the number with a period.
  733. ;                               0x300               Displays only the number.
  734. ;                               0x400               Continues a numbered list without
  735. ;                                                   +applying the next number or bullet.
  736. ;                               0x8000              Starts a new number with wNumberingStart.
  737. ;                 $iStart       - Starting number or Unicode value used for numbered paragraphs.
  738. ;                 $iTab         - Minimum space between a paragraph number and the paragraph text, in twips.
  739. ;        If a parameter (except $hWnd) is set to the keyword Default, it won't be changed
  740. ; Return values : None
  741. ; Author        : grham
  742. ; Notes         :
  743. ;====================================================================================================
  744. ;
  745.  
  746. ;====================================================================================================
  747. ; Function Name: _GUICtrlRichEdit_SetReadOnly
  748. ; Description:    Set the control in ReadOnly Mode
  749. ; Parameters    : $hWnd         - Handle to the control
  750. ;                 $hBool        - True = Enabled, False = Disabled
  751. ; Return values : True on success, otherwise False
  752. ; Author        : Yoan Roblet (Arcker)
  753. ; Notes         :
  754. ;====================================================================================================
  755. ;
  756.  
  757. ;====================================================================================================
  758. ; Function Name: _GUICtrlRichEdit_SetSpaceAfter
  759. ; Description:    Size of the spacing below the paragraph, in twips.
  760. ; Parameters    : $hWnd         - Handle to the control
  761. ;                 $iNum         - The value must be greater than or equal to zero. (here: twips/100)
  762. ; Return values : None
  763. ; Author        : grham
  764. ; Notes         :
  765. ;====================================================================================================
  766. ;
  767.  
  768. ;====================================================================================================
  769. ; Function Name: _GUICtrlRichEdit_SetSpaceBefore
  770. ; Description:    Size of the spacing above the paragraph, in twips.
  771. ; Parameters    : $hWnd         - Handle to the control
  772. ;                 $iNum         - The value must be greater than or equal to zero. (here: twips/100)
  773. ; Return values : None
  774. ; Author        : grham
  775. ; Notes         :
  776. ;====================================================================================================
  777. ;
  778.  
  779. ;====================================================================================================
  780. ; Function Name: _GUICtrlRichEdit_SetStartIndent
  781. ; Description:    Indentation of the paragraph's first line, in twips.
  782. ; Parameters    : $hWnd         - Handle to the control
  783. ;                 $iStartIndent - (here: twips/100)
  784. ; Return values : None
  785. ; Author        : grham
  786. ; Notes         :
  787. ;====================================================================================================
  788. ;
  789.  
  790. ;====================================================================================================
  791. ; Function Name: _GUICtrlRichEdit_SetUndoLimit
  792. ; Description:    Set Undolimit
  793. ; Parameters    : $hWnd         - Handle to the control
  794. ;                 $Limit        - New Limit
  795. ; Return values : The new maximum limit
  796. ; Author        : Yoan Roblet (Arcker)
  797. ; Notes         :
  798. ;====================================================================================================
  799. ;
  800.  
  801. ;====================================================================================================
  802. ; Function Name: _GUICtrlRichEdit_Undo
  803. ; Description:    Undo
  804. ; Parameters    : $hWnd         - Handle to the control
  805. ; Return values : True on success, otherwise False
  806. ; Author        : Yoan Roblet (Arcker)
  807. ; Notes         :
  808. ;====================================================================================================
  809. ;
  810.  
  811. ;====================================================================================================
  812. ; Function Name: _GUICtrlRichEdit_Redo
  813. ; Description:    Redo
  814. ; Parameters    : $hWnd         - Handle to the control
  815. ; Return values : True on success, otherwise False
  816. ; Author        : Prog@ndy
  817. ; Notes         :
  818. ;====================================================================================================
  819. ;
  820.  
  821. ;====================================================================================================
  822. ; Function Name: _GUICtrlRichEdit_CanRedo
  823. ; Description:    Check, if REDO is possible
  824. ; Parameters    : $hWnd         - Handle to the control
  825. ; Return values : True on success, otherwise False
  826. ; Author        : Prog@ndy
  827. ; Notes         :
  828. ;====================================================================================================
  829. ;
  830.  
  831. ;====================================================================================================
  832. ; Function Name: _GUICtrlRichEdit_CanUndo
  833. ; Description:    Check, if UNDO is possible
  834. ; Parameters    : $hWnd         - Handle to the control
  835. ; Return values : True on success, otherwise False
  836. ; Author        : Prog@ndy
  837. ; Notes         :
  838. ;====================================================================================================
  839. ;
  840.  
  841. ;====================================================================================================
  842. ; Function Name: _GUICtrlRichEdit_UndoID2Text
  843. ; Description:    Trabslates an UndoID to Text
  844. ; Parameters    : $UID         - UndoID
  845. ; Return values : UndoID
  846. ; Author        : Prog@ndy
  847. ; Notes         :
  848. ;====================================================================================================
  849. ;
  850.  
  851. ;====================================================================================================
  852. ; Function Name: _GUICtrlRichEdit_GetRedoName
  853. ; Description:    Get TypeId of next possible redo action
  854. ; Parameters    : $hWnd         - Handle to the control
  855. ; Return values : UndoID
  856. ; Author        : Prog@ndy
  857. ; Notes         :
  858. ;====================================================================================================
  859. ;
  860.  
  861. ;====================================================================================================
  862. ; Function Name: _GUICtrlRichEdit_GetUndoName
  863. ; Description:    Get TypeId of next possible undo action
  864. ; Parameters    : $hWnd         - Handle to the control
  865. ; Return values : UndoID
  866. ; Author        : Prog@ndy
  867. ; Notes         :
  868. ;====================================================================================================
  869. ;
  870.  
  871. ;====================================================================================================
  872. ; Function Name: _GUICtrlRichEdit_Cut
  873. ; Description:    Cut Text
  874. ; Parameters    : $hWnd         - Handle to the control
  875. ; Return values : UndoID
  876. ; Author        : Prog@ndy
  877. ; Notes         :
  878. ;====================================================================================================
  879. ;
  880.  
  881. ;====================================================================================================
  882. ; Function Name: _GUICtrlRichEdit_Copy
  883. ; Description:    Copy Text
  884. ; Parameters    : $hWnd         - Handle to the control
  885. ; Return values : UndoID
  886. ; Author        : Prog@ndy
  887. ; Notes         :
  888. ;====================================================================================================
  889. ;
  890.  
  891. ;====================================================================================================
  892. ; Function Name: _GUICtrlRichEdit_Paste
  893. ; Description:    Paste Text
  894. ; Parameters    : $hWnd         - Handle to the control
  895. ; Return values : UndoID
  896. ; Author        : Prog@ndy
  897. ; Notes         :
  898. ;====================================================================================================
  899. ;
  900.  
  901. ;====================================================================================================
  902. ; Function Name: _GUICtrlRichEdit_CanPaste
  903. ; Description:    Check, if PASTE is possible
  904. ; Parameters    : $hWnd         - Handle to the control
  905. ; Return values : True on success, otherwise False
  906. ; Author        : Prog@ndy
  907. ; Notes         :
  908. ;====================================================================================================
  909. ;
  910.  
  911. ;===============================================================================
  912. ;
  913. ; Function Name:   _GUICtrlRichEdit_PauseRedraw
  914. ; Description::    Stops redrawing of the control
  915. ; Parameter(s):    $hWnd         - Handle to the control
  916. ; Requirement(s):
  917. ; Return Value(s): True on success, otherwise False
  918. ; Author(s):       KIP, or otherwere from the forum ?
  919. ;
  920. ;===============================================================================
  921. ;
  922.  
  923. ;===============================================================================
  924. ;
  925. ; Function Name:   _GUICtrlRichEdit_PauseRedraw
  926. ; Description::    Changes redrawing of the control
  927. ; Parameter(s):    $hWnd         - Handle to the control
  928. ;                  $Staet        - Should the control redraw be locked or unlocked
  929. ; Requirement(s):
  930. ; Return Value(s): True on success, otherwise False
  931. ; Author(s):       Prog@ndy
  932. ;
  933. ;===============================================================================
  934. ;
  935.  
  936. ;===============================================================================
  937. ;
  938. ; Function Name:   _GUICtrlRichEdit_PauseRedraw
  939. ; Description::    Resumes redrawing of the control
  940. ; Parameter(s):    $hWnd         - Handle to the control
  941. ; Requirement(s):
  942. ; Return Value(s): True on success, otherwise False
  943. ; Author(s):       KIP, or otherwere from the forum ?
  944. ;
  945. ;===============================================================================
  946. ;
  947.  
  948. ;===============================================================================
  949. ;
  950. ; Function Name:   _GUICtrlRichEdit_PauseRedraw
  951. ; Description::    Set the distance between Tabstops
  952. ; Parameter(s):    $hWnd         - Handle to the control
  953. ;                  $aTabStops    - The distance
  954. ;                     1 integer: same distance for every tabstop
  955. ;                     1D-Array: Each Tabstop in a line with a different distance
  956. ; Requirement(s):
  957. ; Return Value(s): True on success, otherwise False
  958. ; Author(s):       KIP, or otherwere from the forum ?
  959. ;
  960. ;===============================================================================
  961. ;
  962.  
  963. ;===============================================================================
  964. ;
  965. ; Function Name:   _GUICtrlRichEdit_SetOLECallback()
  966. ; Description:     Sets an OLE Callback-Function, so any OLE-Object can be added ( e.g images )
  967. ; Parameter(s):    $h_RichEdit : The RichEditControl
  968. ; Requirement(s):  MemoryDLL.au3
  969. ; Return Value(s): Success: greater than 0, Error: 0
  970. ; Author(s):       Prog@ndy
  971. ;
  972. ;===============================================================================
  973. ;
  974.  
  975. ;===============================================================================
  976. ;
  977. ; Function Name:   _GUICtrlRichEdit_StreamOut
  978. ; Description::    Gets the text from a RTF control ( also RTF )
  979. ; Parameter(s):    $h_RichEdit   - Handle to the control
  980. ;                  $Flags        - The format of the returned text
  981. ;                  $StreamStruct - Structure with information for Streaming
  982. ; Requirement(s):
  983. ; Return Value(s): True on success, otherwise False
  984. ; Author(s):       Prog@ndy
  985. ;
  986. ;===============================================================================
  987. ;
  988.  
  989. ;===============================================================================
  990. ;
  991. ; Function Name:   _GUICtrlRichEdit_StreamIn
  992. ; Description::    Sets the text from a RTF control ( also RTF )
  993. ; Parameter(s):    $h_RichEdit   - Handle to the control
  994. ;                  $Flags        - The format of the text to set
  995. ;                  $StreamStruct - Structure with information for Streaming
  996. ; Requirement(s):
  997. ; Return Value(s): True on success, otherwise False
  998. ; Author(s):       Prog@ndy
  999. ;
  1000. ;===============================================================================
  1001. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement