[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

THTMLTreeview Text Left Position

Posted on 2002-03-31
1
Medium Priority
?
422 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 1200 total points
ID: 6910864
That is not recomanded. Use some special object for obtain informations.

Thanks.
0

Featured Post

What’s Wrong with Your Cloud Strategy ?

Even as many CIOs are embracing a cloud-first strategy, the reality is that moving to the cloud is a lengthy process and the end-state is likely to be a blend of multiple clouds—public and private. Learn why multicloud solutions matter in this webinar by Nimble Storage.

Question has a verified solution.

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

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 I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

650 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