Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-12

TTabSheet extending - where is the editor in TPageControl or a hook

3 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Andreas Frieß

Hi,

i want to extend the TTabSheet to TMyTabSheet, but i didnt find the editor for TPageControl to say not to use TTabSheet. The editor is normaly comming up if you make a rightclick in TPageControl and say, add, insert or move left/right a TTabSheet. I want to change this from TTabSheet to use my TMyTabSheet.

Is there a hook or can i register my own editor ?

Thanks

Andreas

Reply by email

Ondrej Pokorny
to Andreas Frieß
Andreas Frieß wrote 7 lines
i want to extend the TTabSheet to TMyTabSheet, but i didnt find the editor for TPageControl to say not to use TTabSheet. The editor is normaly comming up if you make a rightclick in TPageControl and say, add, insert or move left/right a TTabSheet. I want to change this from TTabSheet to use my TMyTabSheet. Is there a hook or can i register my own editor ?

You'll have to write, register and use your own TMyPageControl.

Ondrej

Reply by email

Howard Page-Clark
to Andreas Frieß: i want to extend the TTabSheet to TMyTabSheet, but i didnt find the editor for…
Andreas Frieß wrote
Hi, i want to extend the TTabSheet to TMyTabSheet, but i didnt find the editor for TPageControl to say not to use TTabSheet.

If you don't need to use the Object Inspector for RAD editing of TMyTabSheets, you can of course descend TMyTabSheet from TTabSheet and handle all MyTabSheet's interactions with its PageControl through code, rather than using published properties of a newly registered control.

Reply by email