Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

TOutline component

Posted on 1998-09-11
8
Medium Priority
?
643 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
Technology Partners: 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!

 
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 100 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

916 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