|
-
Sep 5th, 2002, 06:40 PM
#1
Thread Starter
New Member
Auto-painting to Form from Component
Hi All,
I have created a BorderClass which prints a document border to a panel or form. The only way I can get it to print is to call a method within the class from the OnPaint method of the panel or form, and this only works when you run the program. What I would like is the border to automatically print as soon as it is added to the panel or form. Also I would like it to appear at design time. I know this is possible, because the MainMenu class is a component and it draws itself automatically to a form, without the need to enter any code in the forms OnPaint method. I would also want the border to automatically set the Form or Panel's client area to be within the bounds of the border (Again the MainMenu class does this as well).
Any Clues?
Thanks in advance
Alan Liddle
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|