Custom Query
Results (4 - 6 of 3883)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#4038 | Fixed | _GUICtrlRichEdit_StreamToFile adds new paragraph at the end on every open to save | Jpm | anonymous |
Description |
see: https://www.autoitscript.com/forum/topic/212753-richedit-streamtofile-adds-newline-every-time/ example code + temp solution: #include <GUIConstants.au3> #include <GuiRichEdit.au3> #include <WindowsConstants.au3> Opt("MustDeclareVars", True) ;~ $__g_pGRC_StreamToFileCallback = DllCallbackRegister("__GCR_StreamToFileCallbackEx", "dword", "long_ptr;ptr;long;ptr") Example() Func Example() Local $hGui = GUICreate("Example (" & StringTrimRight(@ScriptName, StringLen(".exe")) & ")", 320, 350, -1, -1) Local $hRichEdit = _GUICtrlRichEdit_Create($hGui, "This is a test.", 10, 10, 300, 220, _ BitOR($ES_MULTILINE, $WS_VSCROLL, $ES_AUTOVSCROLL)) Local $idBtnIn = GUICtrlCreateButton("In", 270, 310, 40, 30) Local $idBtnOut = GUICtrlCreateButton("Out", 170, 310, 40, 30) GUISetState(@SW_SHOW) _GUICtrlRichEdit_SetText($hRichEdit, "First paragraph") While True Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop Case $idBtnOut _GUICtrlRichEdit_StreamToFile($hRichEdit, @DesktopDir & "\gcre.rtf") Case $idBtnIn _GUICtrlRichEdit_StreamFromFile($hRichEdit, @DesktopDir & "\gcre.rtf") EndSwitch WEnd _GUICtrlRichEdit_Destroy($hRichEdit) EndFunc ;==>Example |
|||
#4037 | No Bug | Documention not updated | TommyDDR | |
Description |
Documentation for extended windows styles say : $WS_EX_LAYERED Creates a layered window. Note that this cannot be used for child windows. But msdn say : Windows 8: The WS_EX_LAYERED style is supported for top-level windows and child windows. Previous Windows versions support WS_EX_LAYERED only for top-level windows. |
|||
#4036 | Rejected | All | Hashim | |
Description |
As per: https://www.autoitscript.com/forum/topic/197337-solved-filewritefromarray-adds-new-line-at-the-end/ _FileWriteFromArray appends Windows CRLF line endings to all lines, with no support for Unix/Linux LF endings. This either requires post-processing with external tools or even more hacky solutions. This seems like a vital enough omission to consider it a bug, as it could silently cause things to fail on many Linux servers, for example. Please consider adding a parameter to configure the line ending, or maybe only append an CRLF if an LF is not detected. |