DigDeep Posted March 20, 2018 Share Posted March 20, 2018 @Melba23, I was looking at your Marquee UDF to use few of the functions inside mine. Is there a way, we can make the text scroll to be smooth? I see that the text scrolling is moving with breaks. #include <WindowsConstants.au3> #include <StaticConstants.au3> #include <Marquee.au3> Const $GetMsg = "This is a test sample." $hGUI = GUICreate("", 500, 100, -1, -1, -1, $WS_EX_TOPMOST) GUISetBkColor(0xC0C0C0) ; Marquee $aMarquee = _GUICtrlMarquee_Init() _GUICtrlMarquee_SetScroll($aMarquee, "", "Slide", "Left", 2, 1) _GUICtrlMarquee_SetDisplay($aMarquee, 0, 0x000000, 0xC0C0C0, 8.5, "Courier New") _GUICtrlMarquee_Create($aMarquee, $GetMsg, 80, 16, 300, 20) GUISetState() Do Until GUIGetMsg() = -3 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 21, 2018 Moderators Share Posted March 21, 2018 DigDeep, The flow of text looks pretty "smooth" to me. Or do you mean the fact that the message must disappear from one side of the marquee before reappearing from the other? If so, then please address yourself to Microsoft as that is their implementation of the marquee - all I do is make it easier to use. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
DigDeep Posted March 21, 2018 Author Share Posted March 21, 2018 The 2nd part of your statement is fine. By 'smooth' I meant, when the text is scrolling, it is going with breaks. I have attached a small video for reference. Try to get the GUI and Marquee width expanded and put a long text. When text is scrolling, it is like moving 1 step then stopping for some milliseconds and then step 2, ..... Marquee scroll sample.mp4 Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 21, 2018 Moderators Share Posted March 21, 2018 DigDeep, Again, nothing of my doing - just MS's implementation of a marquee. Sorry. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
DigDeep Posted March 21, 2018 Author Share Posted March 21, 2018 Thanks @Melba23. One more thing here... Func _GUICtrlMarquee_SetScroll($iIndex, $iLoop = Default, $sMove = Default, $sDirection = Default, $iScroll = Default, $iDelay = Default) $iScroll: Controls the speed of scrolling $iDelay: Controls the delay. I tried to change these but it does not affect anything. Link to comment Share on other sites More sharing options...
Bilgus Posted March 21, 2018 Share Posted March 21, 2018 Worked fine for me I think it might have something to do with the empty string you are passing ("") as a parameter #include <WindowsConstants.au3> #include <StaticConstants.au3> #include <Marquee.au3> Const $GetMsg = "This is a test sample." $hGUI = GUICreate("", 500, 100, -1, -1, -1, $WS_EX_TOPMOST) GUISetBkColor(0xC0C0C0) ; Marquee $aMarquee = _GUICtrlMarquee_Init() ;;;;;_GUICtrlMarquee_SetScroll($aMarquee, "", "Slide", "Left", 2, 1) ;_GUICtrlMarquee_SetScroll($iIndex, $iLoop = Default, $sMove = Default, $sDirection = Default, $iScroll = Default, $iDelay = Default) _GUICtrlMarquee_SetScroll($aMarquee, 0, Default, "Left", 20, 1) _GUICtrlMarquee_SetDisplay($aMarquee, 0, 0x000000, 0xC0C0C0, 8.5, "Courier New") _GUICtrlMarquee_Create($aMarquee, $GetMsg, 80, 16, 300, 20) GUISetState() Do Until GUIGetMsg() = -3 Link to comment Share on other sites More sharing options...
DigDeep Posted March 22, 2018 Author Share Posted March 22, 2018 Thanks @Bilgus, yes it looks fine now with adding 0. @Melba23, your code helps a lot. Thanks. Link to comment Share on other sites More sharing options...
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