In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

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

Xailer professional forum in English
Responder
Avatar de Usuario
Dionisis Divaris
Mensajes: 484
Registrado: Jue Jul 12, 2007 8:48 pm
Ubicación: Athens Greece

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

Mensaje 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
T.I.A
Dionisis
SGS-soft
support.sgs@gmail.com
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

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

Mensaje por jfgimenez »

Dionisis,
WITH OBJECT ::oStatusBar1:aItems[1]
:cText := "Panel 1"
...
END
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

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

Mensaje por jfgimenez »

Dionisis,
WITH OBJECT ::oStatusBar1:aItems[1]
:cText := "Panel 1"
...
END
--
Regards,
Jose F. Gimenez
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
Dionisis Divaris
Mensajes: 484
Registrado: Jue Jul 12, 2007 8:48 pm
Ubicación: Athens Greece

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

Mensaje 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
T.I.A
Dionisis
SGS-soft
support.sgs@gmail.com
Avatar de Usuario
Dionisis Divaris
Mensajes: 484
Registrado: Jue Jul 12, 2007 8:48 pm
Ubicación: Athens Greece

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

Mensaje 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
T.I.A
Dionisis
SGS-soft
support.sgs@gmail.com
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

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

Mensaje 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
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

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

Mensaje 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
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Responder