Solved

Propper way to show message from client into TembbeddedWb

Posted on 2014-10-14
4
255 Views
Last Modified: 2014-10-17
i send message like this

SendCommandWithParams(TCPClient, 'TEXTMESSAGE', strMsg + Sep);

Open in new window


how to show the message to other clients in TembbeddedWB ? an exact step with code Please .
0
Comment
Question by:drama22
  • 2
  • 2
4 Comments
 
LVL 27

Accepted Solution

by:
Sinisa Vuk earned 500 total points
ID: 40383748
in a addition to answer: Q_28535415#a40383742 ....
with TEditDesigner connected to Ewb you can grab text:

lst: TStringList;
..
lst:=TStringList.Create;
try
  if EditDesigner1.ConnectDesigner = S_OK then
  begin
    EmbeddedWB1.SaveToStrings(lst);
    html_text := lst.Text;
  end;
finally
  lst.Free;
end;

Open in new window

0
 

Author Comment

by:drama22
ID: 40384404
thats will not showing any html inside the EmbeddedWB  i will give you excellent because of your contentious help ..
0
 
LVL 27

Expert Comment

by:Sinisa Vuk
ID: 40386758
Strange. I make Demo.html file with contents:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Test</TITLE>
<BODY>
Some text here<br>
</BODY></HTML>

Open in new window


... load with:
var
  sFileName: string;
  lst: TStringList;
begin
    lst := TStringList.Create;
    try
      sFileName := ExtractFilePath(Paramstr(0)) + 'Demo.html';
      lst.LoadFromFile(sFileName);
      EmbeddedWB1.LoadFromStrings(lst);
    finally
      lst.Free;
    end;
....

Open in new window


...save again to file/list:
var
  sFileName: string;
  lst: TStringList;
begin
    lst := TStringList.Create;
    try
      sFileName := ExtractFilePath(Paramstr(0)) + 'Demo3.html';
      EmbeddedWB1.SaveToStrings(lst);
      lst.SaveToFile(sFileName);
    finally
      lst.Free;
    end;
....

Open in new window


Before all code designer is turn on:
EditDesigner1.ConnectDesigner

Open in new window

0
 

Author Comment

by:drama22
ID: 40387144
This is the problem I save every word that user type to html and I have to use idhttp to grab the new typed message thats not a logic chat like paltalk doesnt do that .
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question