Scrolling text
Homepage: A static control with scrolling text
nRC := DllCall("AHKCtrlSupport\CreateScrollStatic", int, x, int, y, int, width, int, height, int, nID, "Cdecl Int")
Creates a scroll static control
| x, y |
top left coordinates on the dialog |
| Width, Height |
Width and Height of the control |
| ID |
Id of the new control |
nRC := DllCall("AHKCtrlSupport\SetScrollStatic", int, nID, str, ScrollingText, "Cdecl Int")
Adds one line to the scroll static
| nID |
ID of the control |
| ScrollingText |
Text to display. Call this function again to add more text |
Example:
x = 275
y = 80
width = 140
height = 70
nID = 9
nRC := DllCall("AHKCtrlSupport\CreateScrollStatic", int, x, int, y, int, width, int, height, int, nID, "Cdecl Int")
if (errorlevel <> 0) || (nRC = 0)
{
MsgBox error while calling CreateScrollStatic Errorlevel: %errorlevel% - RC: %nRC%
return
}
ScrollingText=Hallo, dies ist eine sehr bedeutende Testnachricht
nRC := DllCall("AHKCtrlSupport\SetScrollStatic", int, nID, str, ScrollingText, "Cdecl Int")
if (errorlevel <> 0) || (nRC = 0)
{
MsgBox error while calling SetScrollStatic1 Errorlevel: %errorlevel% - RC: %nRC%
return
}
ScrollingText=Hello, this is an important testmessage
nRC := DllCall("AHKCtrlSupport\SetScrollStatic", int, nID, str, ScrollingText, "Cdecl Int")
if (errorlevel <> 0) || (nRC = 0)
{
MsgBox error while calling SetScrollStatic2 Errorlevel: %errorlevel% - RC: %nRC%
return
}