Don't worry, I solved the problem, by looking at some of the
components on the component pallette.  TLabeledEdit to be precise...

FLV.ControlStyle := FLV.ControlStyle + [csNoDesignSelectable];

solved the problem.  :-)


Graeme.


On 6/6/07, Graeme Geldenhuys <[EMAIL PROTECTED]> wrote:
Hi,

I know this was answered before, but for the life of me, I can't seem
to find any such reference.

I created a component that contains other components. For example a
TPanel with a TLabel and TEdit embedded inside it.  If I drop the
composite component on a form, I can delete the embedded TLabel or
TEdit and Lazarus crashes.

How do I prevent the user from selecting the embedded components?  I
want a single selection of the composite components as a whole (all
acting as one).

--
Graeme Geldenhuys
General error, hit any user to continue.


_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to