--- AleÅ¡ Katona <[EMAIL PROTECTED]> escribió:

> Hi,
> 
> I'm trying to make a property editor (well more like fix) for
> GLScene
> special collection-like (not inherited from TCollection) property.
> The
> basics are there (form already done with most methods ok) but I got
> one
> problem.
> 
> There's a list which on change tries to "select" a given item in
> the OI.
> In delphi it's done via IDesigner or IFormDesigned (looks like it
> changed between versions). I didn't find any class or interface
> which
> had the required methods in LCL/Lazarus. I found some designer
> classes
> (TIDesigner for example and TDesigner in lazarus sources only (not
> LCL))
> but they didn't have the wanted methods.
> 
> Can you please tell me what to use to "set" the OI to "select" a
> given
> component? Any examples somewhere (remember, it's a PropertyEditor,
> not
> a ComponentEditor)
> 
> Thanks
> 
> Ales
> 
> P.S: please also write to my email directly if you can, it seems I
> got
> some "fallouts" with lazarus list mails (I sometimes get a mail
> which is
> a 2nd RE to my question with the 1st RE nowhere to be found)
> 
> -- 
> Aleš Katona <[EMAIL PROTECTED]>
> 

At design time, form's designer property is the one you are looking.

For example to select a component so you can edit it's properties in
object inspector do:

  Designer.SelectOnlyThisComponent(TheComponentInstace);

To clear selection:

  Desginer.SelectOnlyThisComponent(nil);

If you make changes call Designer.Modified;

Jesus Reyes A.

  
If for example you are editing a form at design time, you could use
the designer property, for example to select 


__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
Regístrate ya - http://correo.yahoo.com.mx/ 

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

Reply via email to