Solved

TOutline component

Posted on 1998-09-11
8
613 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
Comment Utility
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
Comment Utility
Sort of. You mean I should ownerdraw the text?

/Pede

0
 
LVL 8

Expert Comment

by:ZifNab
Comment Utility
Yep, why not?
0
 
LVL 1

Author Comment

by:pede
Comment Utility
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
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 1

Author Comment

by:pede
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
I've got it all working now. Thank you for your help.

/Pede

0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now