Jump to content
Sign in to follow this  

GUICtrlSetData data count in Kilobites

Recommended Posts


Hello ! is it possible to know how much data typed in GUICtrlSetData in KILOBITS ? if yes then how ?

Share this post

Link to post
Share on other sites

#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)
GUICtrlSetData($myedit, "First line" & @CRLF & "Second line" & @CRLF & "Third line", 1)
GUICtrlCreateLabel("GUICtrlSetData data count = " & Round(StringLen(GUICtrlRead($myedit))/1024, 3) & " Kbytes", 10, 175)

Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.