Re: Accessing an 'imbedded' widget

From: Anton Berezin <tobez_at_tobez.org>
Date: Thu, 22 Sep 2005 12:18:37 +0200
To: lanas <lanas_at_securenet.net>

On Thu, Sep 22, 2005 at 06:26:48AM -0400, lanas wrote:

> How do we access a widget inside another one ? For instance, if there is a
> combo box placed inside a group box, the following does not work:
>
> $form->GroupBox->ComboBox->text:
>
> What is the proper syntax to use ?

It would work if you use the _name_, as opposed to classname, like

  $form->GroupBox1->ComboBox1->text.

The names are automatically assigned, unless specified during a widget
creation (name => "my_descriptive_name").

\Anton.

-- 
An undefined problem has an infinite number of solutions.
-- Robert A. Humphrey
Received on Thu 22 Sep 2005 - 12:18:42 CEST

This archive was generated by hypermail 2.2.0 : Sat 19 Mar 2011 - 18:35:06 CET