Jump to content

How to make/use a "status" box


 Share

Recommended Posts

I know this has been asked and answered here, but I for the life of me cannot find it.

I have a GUI (really a battery monitoring window) with a "box" that I want to display the status of what the battery information (current and voltage and gas gauge) over time.

Now, I understand that "EditBox" information is finite (4096 characters if I remember correctly).

So, what can I use to display this status information without having an "overflow" issue? The status may be for over 3 hours with reporting done as frequently as every second.

I have tried GUICtrlSetData, but it writes over the topmost line.

I have tried _GUICtrlEdit_AppendText but the limit is reached very early - will not display more so really don't know the status.

Thanks for your help and understanding.

R

Link to comment
Share on other sites

I know this has been asked and answered here, but I for the life of me cannot find it.

I have a GUI (really a battery monitoring window) with a "box" that I want to display the status of what the battery information (current and voltage and gas gauge) over time.

Now, I understand that "EditBox" information is finite (4096 characters if I remember correctly).

So, what can I use to display this status information without having an "overflow" issue? The status may be for over 3 hours with reporting done as frequently as every second.

I have tried GUICtrlSetData, but it writes over the topmost line.

I have tried _GUICtrlEdit_AppendText but the limit is reached very early - will not display more so really don't know the status.

Thanks for your help and understanding.

R

GUICtrlSetData($myControl,GUICtrlRead($myControl) & @CRLF & $myNewData)

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Well according to MSDN the maximum number of characters is 0x7FFE (32766) for Win9X and 0x7FFFFFFE (2147483646) for WinNT/2K/XP.

I think 4096 is the default set by AutoIt when the control is created.

You can increase the maximum number of characters using _GUICtrlEdit_SetLimitText.

Link to comment
Share on other sites

GUICtrlSetData($myControl,GUICtrlRead($myControl) & @CRLF & $myNewData)

Thanks.

Now, however, I need to have the last line displayed. This shows the first line but hides the bottom "stuff".

I am trying to do this but.... well, I am brain damaged I quess

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...