Hi,

        Thank you very much.

        I am able to solve it.
        
        But is it possible to use the standard pagecontrol 
        with a customized tabsheet.

        Thanks,
        Chandana.
        




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Stephen Posey
Sent: Monday, August 07, 2006 7:24 PM
To: Delphi-Talk Discussion List
Subject: Re: Custom Page Control.


Pattanayak, Chandana (GE Infra, Energy) wrote:

>       Hi,
> 
>       
>       I am trying to create a custom PageControl component having custom 
> tabsheets.
> 
>       I need to have two properties BitMap and BitMapLocation associated with 
> my tabsheet.
>       
>       I need to modify the painting of the pagecontrol in such a way that if 
> a tabsheet has a bitmap 
> \     associated with it, this also need to be painted besides the caption.
> 
>       I created both the PageControl and associated TabSheet class.I also 
> modified the ComponentEditor .
> 
>       Now my pagecount is never getting set and also my tabsheets are getting 
> drawn as a plain 
>       panel on the pagecontrol.I donot get any tabs.
>       
>       I checked the setpagecontrol.everything looks fine.Any idea on what 
> might be wrong...

First guess: You override the Paint method in the descendant 
TPageControl but fail to call the inherited Paint method to get the 
default painting done.

HTH

Stephen Posey
[EMAIL PROTECTED]



__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk
__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to