Solved

THTMLTreeview Text Left Position

Posted on 2002-03-31
1
419 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

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

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…
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

729 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