Hello, I am writing multi-thread socket chat in C++Builder 2009.
It is almost complete in accordance with what I need to do but I have a little problem.
I need to pass the TMemo* pointer into CreateThread WinAPI function which upcasts it to void*.
I tryed this way:
HANDLE xxx = MemoChat->Handle;
hNetThread = CreateThread(NULL, 0, NetTh...
When you edit a TLabel's caption in the form designer, it resizes the TLabel for you. Is there any way I can get a TMemo to do that, at runtime?
I'd like to be able to take a TMemo, assign something to its .lines.text property, and then tell it to resize itself and not exceed a certain width, though it can get as tall as it wants to. ...
I've been searching the reason why the maximum length of String in a TMemo.Lines is 1024, but not found yet.
I have a text file which contains delimited / csv data which length is around 2000 characters.
I use a memo to preview it before I process the file.
memo.Lines.LoadFromFile(textFile);
I have set the WordWrap to FALSE, and scrol...
How do I get the line number of a memo when I right click on it?
A ListBox has .ItemAtPos but I've not been able to find a similar function
-Brad
...
I have an app that opens a non-modal form from the main form. The non-modal form has a TMemo on it. The main form menu uses "space" as one of its accelerator characters.
When the non-modal form is open and the memo has focus, every time I try to enter a space into the memo on the non-modal form, the main form event for the "space" sho...
I am using a TMemo to hold received characters from a serial port for viewing. As they arrive I am doing:
Memo1.Text := Memo1.Text + sReceivedChars;
This works fine but I presume it is rather inefficient, having to get the existing text before concatenating my few characters and then writing it back. I would really like a 'SendChars()...