Login | Register   
RSS Feed
Download our iPhone app
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.

Tip of the Day
Language: Optimization
Expertise: Beginner
Mar 28, 1997



Application Security Testing: An Integral Part of DevOps

Dynamic Buffer

I'm using Delphi to do a client-server application in which all the lines I get from a socket I send to a TMemo in my form. I want that Tmemo to have a 200 lines buffer so that if it has more than 200 lines I delete the first line. How can I prevent the Tmemo from jumping up and down, focusing the first and then the last line in the buffer? How can I "freeze" the Tmemo visualization? How can I prevent the scroll bar from moving?

To "freeze" the update of the screen while you're updating so that the user can't really see what's going on, just enclose the code that you want "hidden" from the user between the following:

  ...code that you want to hide
LockWindowUpdate is a WinAPI call that "freezes" the screen. All you do is provide the handle of the window you want frozen, then all updates to the window aren't made. LockWindowUpdate(0) resumes screen updating.
DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date