[lazarus] Problem adding a tab when TNotebook is visible
Shane Miller
smiller at lakefield.net
Sat Feb 26 00:09:15 EST 2000
Thanks for looking at this. What did you use to figure this out? I use DDD
but haven't really figured out how to use it that well yet so I couldn't
tell what event was being fired...
---------------------------------------
Shane Miller
Take a look at other product/projects of mine below!
Get paid to surf the net!
http://alladvantage.com/go.asp?refid=DEX-870
Get paid to surf the net by clicking here too!!!
http://epipo.com/sine.asp?dex870
Home page : http://www.lakefield.net/~smiller
Auto-IP Publisher : http://www.lakefield.net/~smiller/autoip
Advanced Clipboard : http://www.lakefield.net/~smiller/advclipboard
Lazarus : http://www.miraclec.com/lazarus
----- Original Message -----
From: "Marc Weustink" <weus at quicknet.nl>
To: <lazarus at miraclec.com>
Sent: Friday, February 25, 2000 6:51 PM
Subject: Re: [lazarus] Problem adding a tab when TNotebook is visible
> At 01:01 26-02-2000 +0100, I wrote:
>
> >Ok I tracked down the problem. It has to do with the way pages are added.
> >After a page has been added (in delphi) it receives focus. We do the
same,
> >only the page isn't added yet ;-).
> >As a temp solution I removed (and committed) this, and I'm looking for a
> >way to handle the focus.
>
> This looked like the problem, but the real problem is larger, some parts
of
> the notebook need to be recoded.
> In GTK to get a user caption on a page, you need a label. This label is
> created by way of a TLabel. The GTK part of this label is later on used as
> the page label.
> This aproach has two nasty side effects:
> 1) It is platform dependent. In a non GTK environment you'll end up with
an
> extra label
> 2) Since it was a LCL control it has still all events and such attached to
> it. This resulted in our crash when the control is visible (events are
> attached when a control is visible, since on a invisible notebook control
> the label was used before it went visible, the events were never attached)
>
> Point 2 you might overcome by first detaching the signals, point 1 still
> remains. When I find some time tomorrow I'll fix it.
>
> Marc
>
>
> _________________________________________________________________
> To unsubscribe: mail lazarus-request at miraclec.com with
> "unsubscribe" as the Subject
> archives at http://www.miraclec.com/list_archives/lazarus
>
More information about the Lazarus
mailing list