Página 1 de 1

Which is the corect way to access Tpanel:cText and Tpanel:nImage Properties

Publicado: Dom Mar 19, 2006 10:15 am
por Dionisis Divaris
Hello
Trying to access those two properties i try a variety of methods to change
those properties values but nothing happens . I know IDE creates a component
for those control (i.e oStatusBar1Panel1)
1st methode
::oStatusBar1Panel1:cText:= " Something"
::oStatusBar1Panel1:nImage = 2
::oStatusBar1Panel1:Update()
and nothing is changed
2nd methode
WITH OBJECT ::oStatusBar1Panel1
:cText:="Something"
:nImage:=2
:Update()
END WITH
and here also nothing is changed
Any help would be appreciate
Regards
Dionisis

Which is the corect way to access Tpanel:cText and Tpanel:nImage Properties

Publicado: Dom Mar 19, 2006 11:10 am
por jfgimenez
Dionisis,
WITH OBJECT ::oStatusBar1:aItems[1]
:cText := "Panel 1"
...
END
--
Regards,
Jose F. Gimenez

Which is the corect way to access Tpanel:cText and Tpanel:nImage Properties

Publicado: Dom Mar 19, 2006 11:10 am
por jfgimenez
Dionisis,
WITH OBJECT ::oStatusBar1:aItems[1]
:cText := "Panel 1"
...
END
--
Regards,
Jose F. Gimenez

Which is the corect way to access Tpanel:cText and Tpanel:nImage Properties

Publicado: Dom Mar 19, 2006 1:10 pm
por Dionisis Divaris
Ï "Jose F. Gimenez" <jfgimenez@wanadoo.es> Ýãñáøå óôï ìÞíõìá
news:[email=441d2e02@ozsrvnegro.ozlan.local...]441d2e02@ozsrvnegro.ozlan.local...[/email]
> Dionisis,
>
> WITH OBJECT ::oStatusBar1:aItems[1]
> :cText := "Panel 1"
> ...
> END
>
> --
> Regards,
>
> Jose F. Gimenez
Jose
Works Perfect !!!!
I think that this maner applies to all objects within others ? Am i right ?
(i.e aItems array holds all others included in the control objects)
Many thanks for your valuable and quick responding help!!!!!!!!!
Sincelery yours
Dionisis

Which is the corect way to access Tpanel:cText and Tpanel:nImage Properties

Publicado: Dom Mar 19, 2006 1:10 pm
por Dionisis Divaris
Ï "Jose F. Gimenez" <jfgimenez@wanadoo.es> Ýãñáøå óôï ìÞíõìá
news:[email=441d2e02@ozsrvnegro.ozlan.local...]441d2e02@ozsrvnegro.ozlan.local...[/email]
> Dionisis,
>
> WITH OBJECT ::oStatusBar1:aItems[1]
> :cText := "Panel 1"
> ...
> END
>
> --
> Regards,
>
> Jose F. Gimenez
Jose
Works Perfect !!!!
I think that this maner applies to all objects within others ? Am i right ?
(i.e aItems array holds all others included in the control objects)
Many thanks for your valuable and quick responding help!!!!!!!!!
Sincelery yours
Dionisis

Which is the corect way to access Tpanel:cText and Tpanel:nImage Properties

Publicado: Dom Mar 19, 2006 7:23 pm
por jfgimenez
Dionisis,
> I think that this maner applies to all objects within others ? Am i right
> ? (i.e aItems array holds all others included in the control objects)
Not exactly. This is the way to access the items of the components which has
a property called 'aItems' (TStatusbar, TTabCtrl, TFolder, TPages, etc.).
Those 'items' are part of (belong to) the control, but not necessary
components by themself, and could be not declared in the form's class.
ITOH, when a control is a 'container', has a public (not published) property
called aControls, that holds the controls placed on it. However, every
control or component in a form is declared directly in the form's class, and
has its own name (i.e. ::oLabel1, ::oEdit1, etc.)
--
Regards,
Jose F. Gimenez

Which is the corect way to access Tpanel:cText and Tpanel:nImage Properties

Publicado: Dom Mar 19, 2006 7:23 pm
por jfgimenez
Dionisis,
> I think that this maner applies to all objects within others ? Am i right
> ? (i.e aItems array holds all others included in the control objects)
Not exactly. This is the way to access the items of the components which has
a property called 'aItems' (TStatusbar, TTabCtrl, TFolder, TPages, etc.).
Those 'items' are part of (belong to) the control, but not necessary
components by themself, and could be not declared in the form's class.
ITOH, when a control is a 'container', has a public (not published) property
called aControls, that holds the controls placed on it. However, every
control or component in a form is declared directly in the form's class, and
has its own name (i.e. ::oLabel1, ::oEdit1, etc.)
--
Regards,
Jose F. Gimenez