Solved

Propper way to show message from client into TembbeddedWb

Posted on 2014-10-14
4
251 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 26

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 26

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Free AVI to DICOM converter 8 327
How to renew a Delphi rad-studio licence? 5 69
How to convert memory stream to PDF file 6 108
Installshield for Embarcadero EX 10.1 Berlin 4 60
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

839 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