Solved

graphical component

Posted on 2001-07-09
8
176 Views
Last Modified: 2010-08-05
hi,
i created a component based on the TGraphicControl one, and i overrid its Paint method. now i can use this component during design time, and its behavior seems to be correct (the Paint method is correctly working). but when i try to run an app containing my component, even if the Paint method is called, nothing is displayed. could someone help me?

regards, raph
0
Comment
Question by:ralph78
8 Comments
 
LVL 6

Expert Comment

by:zebada
Comment Utility
Can you post your code?

Are you calling myControl.Invalidate whenever you change the control's data and want the control to be repainted?


0
 

Author Comment

by:ralph78
Comment Utility
my code is quite easy: i just draw some texts and rectangles. and i don't call the Invalidate method: i use Repaint when the control is resized or when one or another text is changed.
0
 
LVL 9

Expert Comment

by:ITugay
Comment Utility
Hi ralph78,

take a look at your HDD, may be there is more then one version of .DCU in search path.

------
Igor.
0
 

Expert Comment

by:Buda
Comment Utility
Try to use TCustomControl instead of TGraphic control. To make it work faster set the DoubleBuffered propety to true.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 9

Expert Comment

by:ITugay
Comment Utility
Be carefull with TCustomControl, it is difficult to make it transparent.
0
 

Author Comment

by:ralph78
Comment Utility
my code is quite easy: i just draw some texts and rectangles. and i don't call the Invalidate method: i use Repaint when the control is resized or when one or another text is changed.
0
 
LVL 2

Accepted Solution

by:
ivobauer earned 50 total points
Comment Utility
Hi Ralph78!

When you run the sample project, your control is created programatically at run-time or it was dropped onto the form at design-time? Neverthless, it would be nice to see the component & sample project source if possible.

Best regards, Ivo.
0
 

Author Comment

by:ralph78
Comment Utility
i don't know what i did, but my component is working now!
thanks anyway, ralph
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

763 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