Solved

Propper way to show message from client into TembbeddedWb

Posted on 2014-10-14
4
257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: 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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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 new code templates in NetBeans IDE 8.0 for Windows.

739 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