Solved

Propper way to show message from client into TembbeddedWb

Posted on 2014-10-14
4
232 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 25

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 25

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org (http://seleniumhq.org) Go to that link and select download selenium in the right hand columnThat will then direct you to their downlo…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now