Solved

THTMLTreeview Text Left Position

Posted on 2002-03-31
1
418 Views
Last Modified: 2010-04-04
//THTMLTreeview Text Left Position

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ComCtrls, htmltv;

type
  TForm1 = class(TForm)
    HTMLTreeview1: THTMLTreeview;
    Button1: TButton;
    procedure Button1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
HTMLTreeview1.Items.Clear;
HTMLTreeview1.Items.Add(nil,'<FONT face="Arial" size="7" color="clblack"><B>SomeText1</B> SomeText2</FONT>');
HTMLTreeview1.Items.AddChild(HTMLTreeview1.Items[0],'<FONT face="Arial" size="7" color="clblack"><B>SomeText3</B> SomeText4</FONT>');
HTMLTreeview1.Items.AddChild(HTMLTreeview1.Items[1],'<FONT face="Arial" size="7" color="clblack"><B>SomeText5</B> SomeText6</FONT>');
HTMLTreeview1.ItemHeight:=18;
HTMLTreeview1.FullExpand;
// I need to know on wich position (Left) is SomeText2 (Its first word S) and
// I need to know on wich position (Left) is SomeText6 (Its first word S)
// 1st - in screen
// 2nd - in control
// Thanks.
end;

end.
0
Comment
Question by:ghjlk
[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
1 Comment
 
LVL 2

Accepted Solution

by:
vbmn earned 300 total points
ID: 6910864
That is not recomanded. Use some special object for obtain informations.

Thanks.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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
Intraweb download file link ? 1 183
how to send memory stream from ics Client To ics server ? 11 204
CheckListBox usage 3 96
Problem working with dynamic array - help 2 47
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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

737 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