Jump to content
Sign in to follow this  
autoitxp

GUICtrlSetData data count in Kilobites

Recommended Posts

autoitxp

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
Yashied
picaxe

#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

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  

×