GUIRichEdit Liste

  • Hallo zusammen,

    gibt es eine Liste mit allen Funktion inkl. Beschreibung von der GUIRichEdit-UDF?
    Habe schon über all gesucht, aber nicht nichts gefunden.

    5 Mal editiert, zuletzt von MehmeX (3. Mai 2009 um 19:49)

  • Kommt auf die UDF an.
    Ich hab die Liste von meiner UDF hier:

    Spoiler anzeigen
    [autoit]

    ;===============================================================================
    ;
    ; Description: _GUICtrlRichEdit_Create
    ; Parameter(s): $h_Gui - Handle to parent window
    ; $x - The left side of the control
    ; $y - The top of the control
    ; $width - The width of the control
    ; $height - The height of the control
    ; $v_styles - styles to apply to the control (Optional) for multiple styles bitor them.
    ; $v_exstyles - extended styles to apply to the control (Optional) for multiple styles bitor them.
    ; Requirement:
    ; Return Value(s): Returns hWhnd if successful, or 0 with error set to 1 otherwise.
    ; User CallTip: _GUICtrlRichEdit_Create($h_Gui, $x, $y, $width, $height, [, $v_styles = -1[, $v_exstyles = -1]]) Creates RichEdit Control.
    ; Author(s): Gary Frost (gafrost ([email='custompcs@charter.net'][/email]))
    ; Note(s):
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Description: _GUICtrlRichEdit_CreateInput
    ; Parameter(s): $h_Gui - Handle to parent window
    ; $x - The left side of the control
    ; $y - The top of the control
    ; $width - The width of the control
    ; $height - The height of the control
    ; $v_styles - styles to apply to the control (Optional) for multiple styles bitor them.
    ; $v_exstyles - extended styles to apply to the control (Optional) for multiple styles bitor them.
    ; Requirement:
    ; Return Value(s): Returns hWhnd if successful, or 0 with error set to 1 otherwise.
    ; User CallTip: _GUICtrlRichEdit_CreateInput($h_Gui, $x, $y, $width, $height, [, $v_styles = -1[, $v_exstyles = -1]]) Creates RichEdit Control.
    ; Author(s): Gary Frost (gafrost ([email='custompcs@charter.net'][/email]))
    ; Note(s):
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_SetText()
    ; Description: Sets the text of the RichEdit
    ; Parameter(s): $h_RichEdit - Handle to the control
    ; $s_Text - Text to put into the control
    ; Requirement:
    ; Return Value(s): If the operation is setting all of the text and succeeds, the return value is 1.
    ; If the operation is setting the selection and succeeds, the return value is the number of bytes or characters copied.
    ; If the operation fails, the return value is zero.
    ; User CallTip: _GUICtrlRichEdit_SetText($h_Gui, $s_Text) Put text into the RichEdit Control.
    ; Author(s): Gary Frost (gafrost ([email='custompcs@charter.net'][/email]))
    ; -modified by Prog@ndy
    ; Note(s):
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_AppendText()
    ; Description: Replaces text of the current selection of the RichEdit
    ; Parameter(s): $h_RichEdit - Handle to the control
    ; $s_Text - Text to put into the control
    ; Requirement(s):
    ; Return Value(s): If the operation is setting all of the text and succeeds, the return value is 1.
    ; If the operation is setting the selection and succeeds, the return value is the number of bytes or characters copied.
    ; If the operation fails, the return value is zero.
    ; Author(s): Gary Frost (gafrost ([email='custompcs@charter.net'][/email]))
    ; -modified by Prog@ndy
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_AppendText()
    ; Description: Appends text at the end of the RichEdit
    ; Parameter(s): $h_RichEdit - Handle to the control
    ; $s_Text - Text to put into the control
    ; Requirement(s):
    ; Return Value(s): If the operation is setting all of the text and succeeds, the return value is 1.
    ; If the operation is setting the selection and succeeds, the return value is the number of bytes or characters copied.
    ; If the operation fails, the return value is zero.
    ; Author(s): Gary Frost (gafrost ([email='custompcs@charter.net'][/email]))
    ; -modified by Prog@ndy
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_GetTextRange()
    ; Description: Gets a textrange
    ; Parameter(s): $h_RichEdit - Handle to the control
    ; $start - Beginning Index of the text to get
    ; $end - Ending Index of the text to get
    ; Requirement(s):
    ; Return Value(s): The message returns the number of characters copied, not including the terminating null character.
    ; Author(s): Prog@ndy
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;================================================================================================================================
    ; Name...........: _GUICtrlRichEdit_CharFromPos
    ; Description ...: Retrieve information about the character closest to a specified point in the client area
    ; Syntax.........: _GUICtrlRichEdit_CharFromPos($hWnd, $iX, $iY)
    ; Parameters ....: $hWnd - Handle to the control
    ; Return values .: Success - zero-based character index of the character nearest the specified point
    ; (last character in the edit control if the specified point is beyond the last character in the control.)
    ; Author ........: Gary Frost (gafrost)
    ; Modified.......: Prog@ndy
    ; Remarks .......:
    ; Related .......:
    ; Link ..........;
    ; Example .......; Yes
    ;===============================================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_GetText()
    ; Description: Same as _GUICtrlRichEdit_GetTextEx()
    ; Author(s): Prog@ndy
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_GetTextEx()
    ; Description: Gets the full text of a RichEdit
    ; Parameter(s): $h_RichEdit - Handle to the control
    ; Requirement(s):
    ; Return Value(s): Returns Text, @extended = are any default Characters used (non-ACP Unicode characters were replaced)
    ; Author(s): Prog@ndy
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_GetTextLength()
    ; Description: Gets the length of the text full in a RichEdit
    ; Parameter(s): $h_RichEdit - Handle to the control
    ; $Exact - Should it be the exact number of characters?
    ; Requirement(s):
    ; Return Value(s): The message returns the number of characters in the edit control
    ; If $Exact is not set, it returns only the approximate length
    ; Author(s): Prog@ndy
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_GetSelText()
    ; Description: Gets the selected text of a RichEdit
    ; Parameter(s): $h_RichEdit - Handle to the control
    ; Requirement(s):
    ; Return Value(s): Returns selected Text
    ; Author(s): Prog@ndy
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_GetSel()
    ; Description: Retrieves the starting and ending character positions of the current selection in an edit control.
    ; Parameter(s): $h_RichEdit - controlID
    ; Requirement: None
    ; Return Value(s): Array containing the starting and ending selected positions
    ; If an error occurs, the return value is $EC_ERR.
    ; Author(s): Prog@ndy
    ; Note(s): Return value: $array[1] contains the starting position
    ; $array[2] contains the ending position
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_SetSel()
    ; Description: Selects a range of characters in an edit control.
    ; Parameter(s): $h_RichEdit - controlID
    ; $i_start - Specifies the starting character position of the selection.
    ; $i_end - Specifies the ending character position of the selection.
    ; Requirement: None
    ; Return Value(s): None
    ; Author(s): Gary Frost (custompcs at charter dot net)
    ; Note(s): The start value can be greater than the end value.
    ; The lower of the two values specifies the character position of the first character in the selection.
    ; The higher value specifies the position of the first character beyond the selection.
    ;
    ; The start value is the anchor point of the selection, and the end value is the active end.
    ; 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.
    ;
    ; If the $i_start is 0 and the $i_end is –1, all the text in the edit control is selected.
    ; If the $i_start is –1, any current selection is deselected.
    ;
    ; The control displays a flashing caret at the $i_end position regardless of the relative values of $i_start and $i_end.
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_HideSelection
    ; Description: Sets wheter the selection mark is visible.
    ; Parameter(s): $hWnd
    ; Requirement(s):
    ; Return Value(s): If the functions succeeds returns >0
    ; Author(s): Prog@ndy
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_GetLineCount
    ; Description: Retrieves the number of lines in a multiline edit control.
    ; Parameter(s): $h_RichEdit - controlID
    ; Requirement: None
    ; Return Value(s): The return value is an integer specifying the total number of text lines in the multiline edit control.
    ; Author(s): Gary Frost (custompcs at charter dot net)
    ; Note(s): If the control has no text, the return value is 1.
    ; The return value will never be less than 1.
    ;
    ; The _GUICtrlEditGetLineCount retrieves the total number of text lines,
    ; not just the number of lines that are currently visible.
    ;
    ; If the Wordwrap feature is enabled, the number of lines can change when the dimensions of the editing window change.
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_LineIndex
    ; Description: Retrieves the character index of the first character of a specified line in a multiline edit control.
    ; Parameter(s): $h_RichEdit - controlID
    ; $i_line - Optional: Specifies the zero-based line number.
    ; A value of –1 specifies the current line number (the line that contains the caret).
    ; Requirement: None
    ; Return Value(s): The return value is the character index of the line specified in the wParam parameter,
    ; or it is $EC_ERR if the specified line number is greater than the number of lines in the edit control.
    ; Author(s): Gary Frost (custompcs at charter dot net)
    ; Note(s):
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; FUnction Name: _GUICtrlRichEdit_LineLength
    ; Description: Retrieves the length, in characters, of a line in an edit control.
    ; Parameter(s): $h_RichEdit - controlID
    ; $i_index - Optional: Specifies the character index of a character in the line whose length is to be retrieved.
    ; Requirement: None
    ; Return Value(s): For multiline edit controls, the return value is the length, in TCHARs, of the line specified by the $i_index parameter.
    ; For single-line edit controls, the return value is the length, in TCHARs, of the text in the edit control.
    ; Author(s): Gary Frost (custompcs at charter dot net)
    ; Note(s): $i_index
    ; For ANSI text, this is the number of bytes
    ; For Unicode text, this is the number of characters.
    ; It does not include the carriage-return character at the end of the line.
    ; If $i_index is greater than the number of characters in the control, the return value is zero.
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_GetFirstVisibleLine
    ; Description: Gets the first line which is visible in the Control
    ; Parameter(s): $h_RichEdit - The handle of the RichEdit
    ; Requirement(s):
    ; Return Value(s): The line number of the first visible line.
    ; Author(s): Gary Frost
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_SetZoom
    ; Description: Sets the zoomlevel of the RichEdit.
    ; Parameter(s): $h_RichEdit - The handle of the RichEdit
    ; $nominator - Numerator of the zoom ratio.
    ; $denominator - Denominator of the zoom ratio.
    ; Requirement(s):
    ; Return Value(s): If the new zoom setting is accepted, the return value is TRUE.
    ; If the new zoom setting is not accepted, the return value is FALSE.
    ; Author(s): Gary Frost
    ; Notes: $nominator and $denominator: Both 0
    ; -> Turns off zooming by using the EM_SETZOOM message
    ; 1/64 < ($nominator / $denominator) < 64
    ; -> Zooms display by the zoom ratio numerator/denominator
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_GetZoom
    ; Description: Sets the zoomlevel of the RichEdit.
    ; Parameter(s): $h_RichEdit - The handle of the RichEdit
    ; $nominator - Numerator of the zoom ratio.
    ; $denominator - Denominator of the zoom ratio.
    ; Requirement(s):
    ; Return Value(s): On success return Array:
    ; [0] -> nominator
    ; [1] -> denominator
    ; On error returns 0 and @error set to 1
    ; Author(s): Gary Frost
    ; Notes: $nominator and $denominator: Both 0
    ; -> Turns off zooming by using the EM_SETZOOM message
    ; 1/64 < ($nominator / $denominator) < 64
    ; -> Zooms display by the zoom ratio numerator/denominator
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_SetEffect
    ; Description: adds, removes effects and set to undefined
    ; Parameter(s): $dwMask: the Mask for _GUICtrlRichEdit_SetFormat
    ; $dwEffects: the Effects for _GUICtrlRichEdit_SetFormat
    ; $effect: the effect to change
    ; $Flag: 1 : add the style -> the Style will be set in RichEdit
    ; 0 : delete the style -> the Style will be removed in RichEdit
    ; -1 : set it to undefined -> the Style won't be changed in RichEdit
    ; Requirement(s): RichEditUDF
    ; Return Value(s): Success: 1, Error 0
    ; Author(s): Prog@ndy
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_SetFormat
    ; Description: Sets the format of the specified Format Range
    ; Parameter(s): $h_RichEdit - The handle of the RichEdit
    ; $iFormatRange - Character formatting that applies to the control.
    ; If this parameter is zero, the default character format
    ; is set. Otherwise, it can be one of the following values:
    ; $SCF_ALL, $SCF_ASSOCIATEFONT, $SCF_DEFAULT, $SCF_NOKBUPDATE, $SCF_SELECTION, $SCF_USEUIRULES, $SCF_WORD
    ; $dwMask, $dwEffects: setting of Character effects
    ; To set effects, simply use _GUICtrlRichEdit_SetEffect on those variables ( before calling this function )
    ; The other parameters can be found at http://msdn.microsoft.com/en-us/library/bb787883(VS.85).aspx
    ; Requirement(s): This function needs RichEdit 2.0 to work, because it uses CHARFORMAT2 for Win95, you have to write it on your own.
    ; Return Value(s): If the operation succeeds, the return value is a nonzero value.
    ; If the operation fails, the return value is zero.
    ; Author(s): Gary Frost (gafrost ([email='custompcs@charter.net'][/email]))
    ; -modified by Prog@ndy
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name : _GUICtrlRichEdit_BkColor
    ; Description: Sets a background color of a richedit control
    ; Parameters : $hWnd - Handle to the control
    ; $iColor - Color to set
    ; Return values : none
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name : _GUICtrlRichEdit_GetFontName
    ; Description: Retrieves the font Name of the selected Text
    ; Parameters : $hWnd - Handle to the control
    ; Return values : Font name
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name : _GUICtrlRichEdit_GetFontSize
    ; Description: Retrieves the font size of the selected text. ( in printer points )
    ; Parameters : $hWnd - Handle to the control
    ; Return values : Font size
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name : _GUICtrlRichEdit_GetBold
    ; Description: Retrieves if the selected text is bold.
    ; Parameters : $hWnd - Handle to the control
    ; Return values : Returns True or False
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name : _GUICtrlRichEdit_GetItalic
    ; Description: Retrieves if the selected text is italic.
    ; Parameters : $hWnd - Handle to the control
    ; Return values : Returns True or False
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name : _GUICtrlRichEdit_GetUnderline
    ; Description: Retrieves if the selected text is underlined.
    ; Parameters : $hWnd - Handle to the control
    ; Return values : Returns True or False
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name : _GUICtrlRichEdit_GetStrikeOut
    ; Description: Retrieves if the selected textis striked out.
    ; Parameters : $hWnd - Handle to the control
    ; Return values : Returns True or False
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name : _GUICtrlRichEdit_GetFontColor
    ; Description: Retrieves the Color of the selected text.
    ; Parameters : $hWnd - Handle to the control
    ; Return values : Font color (Hex)
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name : _GUICtrlRichEdit_GetBkColor
    ; Description: Retrieves the Background color of the selected text.
    ; Parameters : $hWnd - Handle to the control
    ; Return values : Background color (Hex)
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name : _GUICtrlRichEdit_GetFormat
    ; Description: Retrieves the Format of the selected text.
    ; Parameters : $hWnd - Handle to the control
    ; Return values : Returns an Array with font format
    ; index 0: bold-italic-underline-strikeout
    ; 1: fontcolor
    ; 2: backgroundcolor
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_GetSelection()
    ; Description: Retrieves the starting and ending character positions of the current selection in an edit control.
    ; Parameters : $hWnd - Handle to the control
    ; Return values : Returns the beginning and the ending position of the selection
    ; Author :
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_GetScrollPos
    ; Description: Gets the Scrolling position of a GCR
    ; Parameter(s): $hRichText - handle to RichEdit
    ; Return Value(s): Array: [0]
    ; Author(s): KIP, or otherwere from the forum ?
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_SetScrollPos
    ; Description: Sets the Scrolling position of a GCR
    ; Parameter(s): $hRichText - handle to RichEdit
    ; Return Value(s): Array: [0]
    ; Author(s): Prog@ndy
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_IncreaseFontSize
    ; Description: Increase or decrease the font size
    ; Parameters : $hWnd - Handle to the control
    ; $hDelta - Value of incrementation, Negative ==> decrementation
    ; Return values : Returns True if successful, or False otherwise
    ; Author :
    ; Notes : Apllied to the the end of text
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_LimitText
    ; Description: Limit the control to N chararacters
    ; Parameters : $hWnd - Handle to the control
    ; $hLimitTo - Number of characters
    ; Return values : True on success, otherwise False
    ; Author : Yoan Roblet (Arcker)
    ; Notes : Set 0 to disable the limit ( set to default, which is 64000 )
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetAlignment
    ; Description: Sets Paragraph alignment.
    ; Parameters : $hWnd - Handle to the control
    ; $iAlignment Values:
    ; 1 or $PFA_LEFT Paragraphs are aligned with the left margin.
    ; 2 or $PFA_RIGHT Paragraphs are aligned with the right margin.
    ; 3 or $PFA_CENTER Paragraphs are centered.
    ; 4 or $PFA_JUSTIFY Paragraphs are justified. This value is
    ; +included for compatibility with TOM interfaces;
    ; +rich edit controls earlier than Rich Edit 3.0
    ; +display the text aligned with the left margin.
    ; Return values : None
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetFontName
    ; Description: Select the Font Name
    ; Parameters : $hWnd - Handle to the control
    ; $hFontName - Name of the Font
    ; $iSelec - Modify entire text or selection (default)
    ; Return values : True on success, otherwise False
    ; Author : Yoan Roblet (Arcker)
    ; Modified : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; FUnction Name: _GUICtrlRichEdit_SetFontSize
    ; Description: Set Font size
    ; Parameters : $hWnd - Handle to the control
    ; $iSize - Size of the Font
    ; $iSelec - Modify entire text or selection (default)
    ; Return values : True on success, otherwise False
    ; Author : Yoan Roblet (Arcker)
    ; Modified : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetBold
    ; Description: Toggle the Bold effect
    ; Parameters : $hWnd - Handle to the control
    ; $iStyle - True = Set; False = Unset
    ; $iSelec - Modify entire text or selection (default)
    ; Return values : True on success, otherwise False
    ; Author : Yoan Roblet (Arcker)
    ; Modified : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetItalic
    ; Description: Toggle the Italic effect
    ; Parameters : $hWnd - Handle to the control
    ; $iStyle - True = Set; False = Unset
    ; $iSelec - Modify entire text or selection (default)
    ; Return values : True on success, otherwise False
    ; Author : Yoan Roblet (Arcker)
    ; Modified : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetLineSpacing
    ; Description: Type of line spacing.
    ; Parameters : $hWnd - Handle to the control
    ; $iNum Values:
    ; 0 Single spacing.
    ; 1 One-and-a-half spacing.
    ; 2 Double spacing.
    ; Return values : None
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetLink
    ; Description: Toggle the Underline effect
    ; Parameters : $hWnd - Handle to the control
    ; $iStyle - True = Set; False = Unset
    ; $iSelec - Modify entire text or selection (default)
    ; Return values : True on success, otherwise False
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetOffSet
    ; Description: Indentation of the second and subsequent lines,
    ; +relative to the indentation of the first line, in twips.
    ; Parameters : $hWnd - Handle to the control
    ; $iOffset - (here: twips/100)
    ; Return values : None
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetProtected
    ; Description: Characters are protected;
    ; +an attempt to modify them will cause an EN_PROTECTED notification message.
    ; Parameters : $hWnd - Handle to the control
    ; $iStyle - True = Set; False = Unset
    ; $iSelec - Modify entire text or selection (default)
    ; Return values : None
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetRevised
    ; Description: Characters are marked as revised.
    ; Parameters : $hWnd - Handle to the control
    ; $iStyle - True = Set; False = Unset
    ; $iSelec - Modify entire text or selection (default)
    ; Return values : True on success, otherwise False
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetUnderline
    ; Description: Toggle the Underline effect
    ; Parameters : $hWnd - Handle to the control
    ; $iStyle - True = Set; False = Unset
    ; $iSelec - Modify entire text or selection (default)
    ; Return values : True on success, otherwise False
    ; Author : Yoan Roblet (Arcker)
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetStrikeOut
    ; Description: Toggle the Strike Out effect
    ; Parameters : $hWnd - Handle to the control
    ; $iStyle - True = Set; False = Unset
    ; $iSelec - Modify entire text or selection (default)
    ; Return values : True on success, otherwise False
    ; Author : Yoan Roblet (Arcker)
    ; Rewritten : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetFontColor
    ; Description: Select the text color
    ; Parameters : $hWnd - Handle to the control
    ; $hColor - Color value
    ; $iSelect - Color entire text or selection (default)
    ; Return values : True on success, otherwise False
    ; Author : Yoan Roblet (Arcker)
    ; Rewritten : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetBkColor
    ; Description: Select the Background text color
    ; Parameters : $hWnd - Handle to the control
    ; $hColor - Color value
    ; $iSelec - Color entire text or selection (default)
    ; Return values : True on success, otherwise False
    ; Author : Yoan Roblet (Arcker)
    ; Rewritten : grham (works)
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetEventMaks
    ; Description: The EM_SETEVENTMASK message sets the event mask for a rich edit control.
    ; The event mask specifies which notification messages the control sends to its parent window
    ; Parameters : $hWnd - Handle to the control
    ; $hMin - Character Number start
    ; $hMax - Character Number stop
    ; Return values : True on success, otherwise False
    ; Author : Yoan Roblet (Arcker)
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetNumbering
    ; Description: Sets paragraph numbering and numbering type
    ; Parameters : $hWnd - Handle to the control
    ; $iChar - Characters used for numbering:
    ; 0 No numbering
    ; 1 or $PFN_BULLET Inserts a bullet
    ; 2 Arabic numbres (1,2,3 .)
    ; 3 Lowercase tetters
    ; 4 Uppercase letters
    ; 5 Lowercase roman numerals (i,ii,iii...)
    ; 6 Uppercase roman numerals (I, II, .)
    ; 7 Uses a sequence of characters beginning with
    ; +the Unicode character specified by
    ; +the wNumberingStart member
    ; $iFormat - Numbering style used with numbered paragraphs
    ; 0 Follows the number with a right parenthesis.
    ; 0x100 Encloses the number in parentheses.
    ; 0x200 Follows the number with a period.
    ; 0x300 Displays only the number.
    ; 0x400 Continues a numbered list without
    ; +applying the next number or bullet.
    ; 0x8000 Starts a new number with wNumberingStart.
    ; $iStart - Starting number or Unicode value used for numbered paragraphs.
    ; $iTab - Minimum space between a paragraph number and the paragraph text, in twips.
    ; If a parameter (except $hWnd) is set to the keyword Default, it won't be changed
    ; Return values : None
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetReadOnly
    ; Description: Set the control in ReadOnly Mode
    ; Parameters : $hWnd - Handle to the control
    ; $hBool - True = Enabled, False = Disabled
    ; Return values : True on success, otherwise False
    ; Author : Yoan Roblet (Arcker)
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetSpaceAfter
    ; Description: Size of the spacing below the paragraph, in twips.
    ; Parameters : $hWnd - Handle to the control
    ; $iNum - The value must be greater than or equal to zero. (here: twips/100)
    ; Return values : None
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetSpaceBefore
    ; Description: Size of the spacing above the paragraph, in twips.
    ; Parameters : $hWnd - Handle to the control
    ; $iNum - The value must be greater than or equal to zero. (here: twips/100)
    ; Return values : None
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetStartIndent
    ; Description: Indentation of the paragraph's first line, in twips.
    ; Parameters : $hWnd - Handle to the control
    ; $iStartIndent - (here: twips/100)
    ; Return values : None
    ; Author : grham
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_SetUndoLimit
    ; Description: Set Undolimit
    ; Parameters : $hWnd - Handle to the control
    ; $Limit - New Limit
    ; Return values : The new maximum limit
    ; Author : Yoan Roblet (Arcker)
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_Undo
    ; Description: Undo
    ; Parameters : $hWnd - Handle to the control
    ; Return values : True on success, otherwise False
    ; Author : Yoan Roblet (Arcker)
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_Redo
    ; Description: Redo
    ; Parameters : $hWnd - Handle to the control
    ; Return values : True on success, otherwise False
    ; Author : Prog@ndy
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_CanRedo
    ; Description: Check, if REDO is possible
    ; Parameters : $hWnd - Handle to the control
    ; Return values : True on success, otherwise False
    ; Author : Prog@ndy
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_CanUndo
    ; Description: Check, if UNDO is possible
    ; Parameters : $hWnd - Handle to the control
    ; Return values : True on success, otherwise False
    ; Author : Prog@ndy
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_UndoID2Text
    ; Description: Trabslates an UndoID to Text
    ; Parameters : $UID - UndoID
    ; Return values : UndoID
    ; Author : Prog@ndy
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_GetRedoName
    ; Description: Get TypeId of next possible redo action
    ; Parameters : $hWnd - Handle to the control
    ; Return values : UndoID
    ; Author : Prog@ndy
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_GetUndoName
    ; Description: Get TypeId of next possible undo action
    ; Parameters : $hWnd - Handle to the control
    ; Return values : UndoID
    ; Author : Prog@ndy
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_Cut
    ; Description: Cut Text
    ; Parameters : $hWnd - Handle to the control
    ; Return values : UndoID
    ; Author : Prog@ndy
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_Copy
    ; Description: Copy Text
    ; Parameters : $hWnd - Handle to the control
    ; Return values : UndoID
    ; Author : Prog@ndy
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_Paste
    ; Description: Paste Text
    ; Parameters : $hWnd - Handle to the control
    ; Return values : UndoID
    ; Author : Prog@ndy
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;====================================================================================================
    ; Function Name: _GUICtrlRichEdit_CanPaste
    ; Description: Check, if PASTE is possible
    ; Parameters : $hWnd - Handle to the control
    ; Return values : True on success, otherwise False
    ; Author : Prog@ndy
    ; Notes :
    ;====================================================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_PauseRedraw
    ; Description:: Stops redrawing of the control
    ; Parameter(s): $hWnd - Handle to the control
    ; Requirement(s):
    ; Return Value(s): True on success, otherwise False
    ; Author(s): KIP, or otherwere from the forum ?
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_PauseRedraw
    ; Description:: Changes redrawing of the control
    ; Parameter(s): $hWnd - Handle to the control
    ; $Staet - Should the control redraw be locked or unlocked
    ; Requirement(s):
    ; Return Value(s): True on success, otherwise False
    ; Author(s): Prog@ndy
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_PauseRedraw
    ; Description:: Resumes redrawing of the control
    ; Parameter(s): $hWnd - Handle to the control
    ; Requirement(s):
    ; Return Value(s): True on success, otherwise False
    ; Author(s): KIP, or otherwere from the forum ?
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_PauseRedraw
    ; Description:: Set the distance between Tabstops
    ; Parameter(s): $hWnd - Handle to the control
    ; $aTabStops - The distance
    ; 1 integer: same distance for every tabstop
    ; 1D-Array: Each Tabstop in a line with a different distance
    ; Requirement(s):
    ; Return Value(s): True on success, otherwise False
    ; Author(s): KIP, or otherwere from the forum ?
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_SetOLECallback()
    ; Description: Sets an OLE Callback-Function, so any OLE-Object can be added ( e.g images )
    ; Parameter(s): $h_RichEdit : The RichEditControl
    ; Requirement(s): MemoryDLL.au3
    ; Return Value(s): Success: greater than 0, Error: 0
    ; Author(s): Prog@ndy
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_StreamOut
    ; Description:: Gets the text from a RTF control ( also RTF )
    ; Parameter(s): $h_RichEdit - Handle to the control
    ; $Flags - The format of the returned text
    ; $StreamStruct - Structure with information for Streaming
    ; Requirement(s):
    ; Return Value(s): True on success, otherwise False
    ; Author(s): Prog@ndy
    ;
    ;===============================================================================
    ;

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _GUICtrlRichEdit_StreamIn
    ; Description:: Sets the text from a RTF control ( also RTF )
    ; Parameter(s): $h_RichEdit - Handle to the control
    ; $Flags - The format of the text to set
    ; $StreamStruct - Structure with information for Streaming
    ; Requirement(s):
    ; Return Value(s): True on success, otherwise False
    ; Author(s): Prog@ndy
    ;
    ;===============================================================================
    ;

    [/autoit]

    Von den anderen UDFs weiß ichs nicht. Du musst dann eben die Beschreibeungen aus dem Quellcode holen.

    Einmal editiert, zuletzt von bernd670 (4. Januar 2010 um 21:06)

  • @progandy

    Wieso es gibt doch nur die RichText-UDF oder nicht?

    @Der Doc

    Ich weiß, aber wäre halt Komfortabler wenn es in einer Liste stehen würde, wie z.B. in der AutoIt-Hilfe.

  • Keine Ahnung. Entweder meine oder die von [url='http://www.autoitscript.com/forum/index.php?showtopic=89358&hl=' c.haslam[/url]
    Das musst du ausprobieren ;)

  • OK, danke für eure Antworten. :)

    Edit: ich habe jetzt diese UDF, aber wo müssen die Datein hinkopiert werden werden?

    3 Mal editiert, zuletzt von MehmeX (26. April 2009 um 15:33)

  • OK, danke.

    Edit: Ich bekomme andauernt Fehlermeldungen von der UDF. ?(

    Spoiler anzeigen
    [autoit]

    C:\Program Files\AutoIt3\Include\Constants.au3(396,57) : ERROR: $IDI_APPLICATION previously declared as a 'Const'
    Global Const $IDI_APPLICATION = 32512 ; Application icon
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    C:\Program Files\AutoIt3\Include\Constants.au3(397,51) : ERROR: $IDI_ASTERISK previously declared as a 'Const'
    Global Const $IDI_ASTERISK = 32516 ; Asterisk icon
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
    ...
    ...
    ...

    [/autoit]

    Bitte um Hilfe.

    3 Mal editiert, zuletzt von MehmeX (26. April 2009 um 16:44)

  • Hallo Mehmex,

    ich hab mir grad aus Interesse die GuiRichEdit heruntergeladen, das Zip in einem Testordner entpackt, die Beispiele getestet. Also bei mir laufen die bisher getesteten wunderbar. Example.au3 lädt z.B. Notes.rtf. Schreib doch mal, welche bei dir nicht laufen, oder bist du schon am umsetzen für eigene Skripte :?:

    mfg (Auto)Bert

  • Ich habe gerade festgestellt das es nur bei einem Script ist. Denn ich habe gerade ein Test-Script geschrieben und dort geht es. Hmm, ... schon komisch?! ?(

    Hier ist der Test-Script (Funktioniert):

    Spoiler anzeigen
    [autoit]

    #include <GUIConstants.au3>
    #include <GUIRichEdit.au3>
    #include <WindowsConstants.au3>
    #NoTrayIcon

    [/autoit] [autoit][/autoit] [autoit]

    ; Hauptfenster
    $gui = GUICreate("Speichern", 500, 400)

    [/autoit] [autoit][/autoit] [autoit]

    ; Menüleiste
    $menu = GUICtrlCreateMenu("Datei")
    $item_oeffnen = GUICtrlCreateMenuItem("Öffnen...", $menu)
    $item_save_as = GUICtrlCreateMenuItem("Speichern unter...", $menu)
    GUICtrlCreateMenuItem("", $menu, -1) ; Hier wird ein Linie durchgezogen
    $item_beenden = GUICtrlCreateMenuItem("Beenden", $menu)

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    ; Schrift
    $font = "Comic Sans MS"
    $label = GUICtrlCreateLabel("Quelle", 10, 10, 50, 25)
    GUICtrlSetFont($label, 12, 100, 1, $font)
    GUICtrlSetColor($label, 0xfb00500)

    [/autoit] [autoit][/autoit] [autoit]

    ; Edit
    $edit = _GUICtrlRichEdit_Create($gui, "", 10, 40, 480, 330, $WS_VSCROLL)

    [/autoit] [autoit][/autoit] [autoit]

    ; Damit das Hauptfenster angezeigt wird
    GUISetState()

    [/autoit] [autoit][/autoit] [autoit]

    While 1
    $Msg = GUIGetMsg()

    Switch $Msg
    Case $GUI_EVENT_CLOSE, $item_beenden
    Exit
    Case $item_oeffnen
    $open = FileOpenDialog("Öffnen...", @DesktopDir, "Textdokument (*.txt)")
    $read = FileRead($open)
    GUICtrlSetData($edit, $read)
    Case $item_save_as
    $save = FileSaveDialog ( "Speichern unter...", @DesktopDir, "Textdokument (*.txt)")
    If $save Then $save = $save & ".txt" ; Hier wird garantiert, das die Datei mit dieser Endung abgespeichert wird.
    FileWrite($save, (GUICtrlRead($edit)))
    EndSwitch

    [/autoit] [autoit][/autoit] [autoit]

    WEnd

    [/autoit]

    Den Quelltext meines Programmes möchte ich nicht hochladen, da der Code unter Schutz steht.

    2 Mal editiert, zuletzt von MehmeX (29. April 2009 um 22:06)

  • in der UDF werden teilweise die gleichen Kosntanten wie in COnstants.au3 deklariert. Lösche die einfach aus der UDF und mach stattdessen
    #include<Constants.au3> rein.

  • @progandy,

    in der UDF wird bereits die Constants.au3 included,

    , daher vermute ich eher dass MehmeX diese in seinem eigenen Script noch einmal included hat, aber wenn's jetzt funktioniert :?: ist wohl alles in Ordnung

    mfg (Auto)Bert

  • Wenn ich aber die "F4"-Taste drücke zeigt er mir die "Fehler" in Consants.au3 und in GUIRichEdit.au3 an. Soll ich die Angezeigten (Gelb Markiert) "Fehler" in Constants.au3 und in GUIRichEdit.au3 entfernen?

    Edit:  autoBert - Nein es Funktioniert noch nicht.
    @progandy - Ich habe die Angezeigten Fehler von der GUIRichEdit.au3 entfernt, der Fehler kommt aber immer noch. ?(:(

  • Constants.au3 sollst du NIE verändern.
    Die RichEdit-UDF dann möglichst auch nicht.
    Setze das GUIRichEdit-include mal als erste Zeile in dein Skript. Dann siehst du, wo die Konstante nochmal deklariert ist. Wahrscheinlich ist das eine andere UDF, die alles selbst deklariert anstatt Constants.au3 einzubinden.
    Dann poste mal die Dateinamen, in denen jetzt die Fehler sind.