mike1950r Posted August 6, 2024 Posted August 6, 2024 Hi, I have a problem with vertical scroll. Run the attached script and click on horizintal slider, vertical slider etc. the text jumps up and down. Is there a way to get rid of this? Thanks for help. Cheers mike. expandcollapse popup#include <GUIConstantsEx.au3> #include <GuiRichEdit.au3> #include <WindowsConstants.au3> Example() Func Example() Local $hGui, $hRichEdit, $iMsg, $sText $sText = "This is a text:" _ & @CRLF & "This is a text:" _ & @CRLF & "This is a text:" _ & @CRLF & "This is a text:" _ & @CRLF & "This is a text:" _ & @CRLF & "This is a text:" _ & @CRLF & "This is a text:" _ & @CRLF & "This is a text:" _ & @CRLF & "This is a text:" _ & @CRLF & "This is a text:" _ & @CRLF & "This is a text:" _ & @CRLF & "This is a text:" _ & @CRLF & "This is a text:" _ & @CRLF & "This is a text:" _ & @CRLF & "This is a text:" _ & @CRLF & "This is a text: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" $hGui = GUICreate("Example (" & StringTrimRight(@ScriptName, StringLen(".exe")) & ")", 320, 350, -1, -1) $hRichEdit = _GUICtrlRichEdit_Create($hGui, $sText, 10, 10, 300, 220, BitOR($ES_MULTILINE, $WS_HSCROLL, $WS_VSCROLL)) GUISetState(@SW_SHOW) While True $iMsg = GUIGetMsg() Select Case $iMsg = $GUI_EVENT_CLOSE _GUICtrlRichEdit_Destroy($hRichEdit) Exit EndSelect WEnd EndFunc ;==>Example
Andreik Posted August 6, 2024 Posted August 6, 2024 I'm not sure what text is jumping. It looks fine to me.
mike1950r Posted August 6, 2024 Author Posted August 6, 2024 Hi Andreik, just scroll to last line and click on horizontal slider and then on vertical slider and so on. the last line goes up and down. cheers mike
Andreik Posted August 6, 2024 Posted August 6, 2024 I can't reproduce the described behavior on Win 11.
mike1950r Posted August 7, 2024 Author Posted August 7, 2024 So it seems to be a windows problem? I'm on windows7. Thanks for testing. Cheers mike
donnyh13 Posted August 7, 2024 Posted August 7, 2024 (edited) I can also reproduce this on windows 7, the last line gets hidden when you click the horizontal slider button, but only after having pushed one of the vertical scroll buttons, it doesn't do it right away for me, if I haven't pushed one of those first. Edited August 7, 2024 by donnyh13 LibreOffice UDF ; Scite4AutoIt Spell-Checker Using LibreOffice Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."
Andreik Posted August 7, 2024 Posted August 7, 2024 (edited) 2 hours ago, mike1950r said: So it seems to be a windows problem? I'm on windows7. Thanks for testing. Cheers mike I don't know, maybe. I simply don't see this behavior on my machine with Win 11. Hope anyone else can confirm. Edited August 7, 2024 by Andreik
ioa747 Posted August 7, 2024 Posted August 7, 2024 Windows 10 Version: 22H2 and here everything looks normal, I don't see anything unexpected I know that I know nothing
mike1950r Posted August 7, 2024 Author Posted August 7, 2024 thanks for your posts. I have recorded a gif-video to be opened with your browser. It's for showing how it is visible on my system. Cheers mike donnyh13 1
donnyh13 Posted August 7, 2024 Posted August 7, 2024 Okay, sorry, I misunderstood. But I can reproduce that too. As for a fix, I unfortunately can't offer any suggestions. LibreOffice UDF ; Scite4AutoIt Spell-Checker Using LibreOffice Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."
mike1950r Posted August 7, 2024 Author Posted August 7, 2024 22 minutes ago, donnyh13 said: Okay, sorry, I misunderstood. But I can reproduce that too. As for a fix, I unfortunately can't offer any suggestions. thanks for confirming. Cheers mike
mike1950r Posted August 10, 2024 Author Posted August 10, 2024 BTW This problem does not occur using _GUICtrlEdit_Create instead of _GUICtrlRichEdit_Create. Cheers mike PS Perhaps a workaround ?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now