[Lazarus] TTabControl (d)evolution

Hans-Peter Diettrich DrDiettrich1 at aol.com
Thu Aug 4 19:27:57 CEST 2011


Felipe Monteiro de Carvalho schrieb:
> On Thu, Aug 4, 2011 at 6:12 PM, Hans-Peter Diettrich
> <DrDiettrich1 at aol.com> wrote:
>> In the long term I still suggest to remove *all* code from the widgetsets,
>> that deals with the TCustomPage parameters as *visual* components, and
>> switch the pages of a TPageControl outside the widgetsets, by simply
>> switching their Visibility accordingly.
> 
> That's impossible as you have already seen in Gtk2. Visible page
> sheets are simply mandatory outside Win32.

I still doubt that ;-)

> In my oppinion the easy way out is the following:
> 
> 1> Override the Handle creation in TTabControl and make it create a
> TCustomControl handle

I don't understand what you mean :-(

> 2> Put a TPageControl in the client area, like TTabControl currently does

Then every widgetset must allow, somehow, to use the same control for 
each tab. This should be possible, since there exists no fixed 
relationship between the widget in the client area of a tabbed widget, 
and an LCL control.

DoDi





More information about the Lazarus mailing list