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 -> Delphi-Talk@elists.org http://www.elists.org/mailman/listinfo/delphi-talk