Solved

TOutline component

Posted on 1998-09-11
8
619 Views
Last Modified: 2008-02-20
I think this should be an easy one; I need a TOutline component where the elements can have different colors and/or fonts.
I've seen one once, but I deleted it, and I can't seem to loctate it again.

It MUST run on windows 3.1 (Delphi 1).

/Pede

0
Comment
Question by:pede
  • 5
  • 3
8 Comments
 
LVL 8

Expert Comment

by:ZifNab
ID: 1339372
Hi pede,

 this one? (has corrected owner draw event)

 http://sunsite.icm.edu.pl/delphi/ftp/d10free/outlinep.zip

regards, Zif.
0
 
LVL 1

Author Comment

by:pede
ID: 1339373
Sort of. You mean I should ownerdraw the text?

/Pede

0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1339374
Yep, why not?
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 1

Author Comment

by:pede
ID: 1339375
OK, I will draw the text myself, but I dont really know how to start on this. Do you have a small example of a 'OnDrawItem'-procedure? I tried this line -  (Control as TOutline).Canvas.TextRect(Rect, 0,0, 'Test'); - and I expected that 'Test' would be drawn for every item in the tree, but I only got it once (in the top-left corner of the tree-canvas). And what about the lines connecting the items, and the bitmaps? They are all gone.

/Pede
 
0
 
LVL 1

Author Comment

by:pede
ID: 1339376
Is the above the old bug of the TOutline? Maybe my project is still using the old one. I have now removed outline.dcu from /lib and I can still compile without errors. Are the lines (the connecting ones) supposed to be drawn by the control?

/Pede

0
 
LVL 1

Author Comment

by:pede
ID: 1339377
OK, its all working now. Zifnab, please propose an answer so you can get your points ;)

/Pede

0
 
LVL 8

Accepted Solution

by:
ZifNab earned 50 total points
ID: 1339378
Pede,

 I'm just on vacation now, just checking all these q'ns. I see I´ve to answer this one... are you sure? Everything Ok? If not, just say what's wrong, and when I'm back... I´ll try to help you further...

Zif.
0
 
LVL 1

Author Comment

by:pede
ID: 1339379
I've got it all working now. Thank you for your help.

/Pede

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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
When I am typing into a TEdit last word repeats 7 147
creating threads in delphi 1 135
Tvertscrollbox like a whatsapp layout 5 36
Twebbrowser add css to the header 3 29
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…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

829 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