Jump to content

GUICtrlSetData data count in Kilobites


Recommended Posts

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <EditConstants.au3>
GUICreate("My GUI edit", 300, 200)
$myedit = GUICtrlCreateEdit("" & @CRLF, 10, 10, 280, 160, $ES_AUTOVSCROLL + $WS_VSCROLL)
GUISetState()
GUICtrlSetData($myedit, "First line" & @CRLF & "Second line" & @CRLF & "Third line", 1)
GUICtrlCreateLabel("GUICtrlSetData data count = " & Round(StringLen(GUICtrlRead($myedit))/1024, 3) & " Kbytes", 10, 175)
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...