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.

oStatusBar

Xailer professional forum in English
Responder
Nick Hilder
Mensajes: 328
Registrado: Mar Nov 21, 2006 2:10 am

oStatusBar

Mensaje por Nick Hilder »

Howdy Gents
I'm sure I'm being a deadshit here but I can work this out
I have a form, it has a status bar, it is called ::oStatusBar
In my AppData class I have a Property called ::oStatusBar, I pass a ref to
the forms oStatusbar to the AppData:oStatusBar.
This works, I can see it in the debugger, I can drill down to each panel
etc.
When I try this, from within Appdata
::oStatusBar:aItems[1]:SetText("Here is my Status message.")
I get this
Subsystem Call: BASE
System Code: 1004
Default Status: .F.
Description: Scope Violation <PROTECTED>
Operation: SETTEXT
Arguments: [ 1] = Type: O Val:
I can not for the life of me work out why.
Anyone have any clues?
Nick
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

oStatusBar

Mensaje por Oleg »

Nick,
> When I try this, from within Appdata
>
> ::oStatusBar:aItems[1]:SetText("Here is my Status message.")
>
> I get this
>
> Subsystem Call: BASE
> System Code: 1004
> Default Status: .F.
> Description: Scope Violation <PROTECTED>
> Operation: SETTEXT
> Arguments: [ 1] = Type: O Val:
>
> I can not for the life of me work out why.
This is because method SetText is protected in class TStatusPanel. You can
see it in XailerSourceStatusPanel.prg.
Use published property cText instead:
::oStatusBar:aItems[1]:cText:="Here is my Status message."
The description of SetText method should be excluded from Xailer's
documentation by developers.
Regards, Oleg
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

oStatusBar

Mensaje por Oleg »

Nick,
> When I try this, from within Appdata
>
> ::oStatusBar:aItems[1]:SetText("Here is my Status message.")
>
> I get this
>
> Subsystem Call: BASE
> System Code: 1004
> Default Status: .F.
> Description: Scope Violation <PROTECTED>
> Operation: SETTEXT
> Arguments: [ 1] = Type: O Val:
>
> I can not for the life of me work out why.
This is because method SetText is protected in class TStatusPanel. You can
see it in XailerSourceStatusPanel.prg.
Use published property cText instead:
::oStatusBar:aItems[1]:cText:="Here is my Status message."
The description of SetText method should be excluded from Xailer's
documentation by developers.
Regards, Oleg
Nick Hilder
Mensajes: 328
Registrado: Mar Nov 21, 2006 2:10 am

oStatusBar

Mensaje por Nick Hilder »

Ah...I forgot all about looking in the sources..
thanks heaps Oleg...
"Oleg" <info@cluster.samara.ru> wrote in message
news:4861d5b4$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Nick,
>
>> When I try this, from within Appdata
>>
>> ::oStatusBar:aItems[1]:SetText("Here is my Status message.")
>>
>> I get this
>>
>> Subsystem Call: BASE
>> System Code: 1004
>> Default Status: .F.
>> Description: Scope Violation <PROTECTED>
>> Operation: SETTEXT
>> Arguments: [ 1] = Type: O Val:
>>
>> I can not for the life of me work out why.
>
> This is because method SetText is protected in class TStatusPanel. You can
> see it in XailerSourceStatusPanel.prg.
> Use published property cText instead:
> ::oStatusBar:aItems[1]:cText:="Here is my Status message."
>
> The description of SetText method should be excluded from Xailer's
> documentation by developers.
>
> Regards, Oleg
>
>
Nick Hilder
Mensajes: 328
Registrado: Mar Nov 21, 2006 2:10 am

oStatusBar

Mensaje por Nick Hilder »

Ah...I forgot all about looking in the sources..
thanks heaps Oleg...
"Oleg" <info@cluster.samara.ru> wrote in message
news:4861d5b4$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Nick,
>
>> When I try this, from within Appdata
>>
>> ::oStatusBar:aItems[1]:SetText("Here is my Status message.")
>>
>> I get this
>>
>> Subsystem Call: BASE
>> System Code: 1004
>> Default Status: .F.
>> Description: Scope Violation <PROTECTED>
>> Operation: SETTEXT
>> Arguments: [ 1] = Type: O Val:
>>
>> I can not for the life of me work out why.
>
> This is because method SetText is protected in class TStatusPanel. You can
> see it in XailerSourceStatusPanel.prg.
> Use published property cText instead:
> ::oStatusBar:aItems[1]:cText:="Here is my Status message."
>
> The description of SetText method should be excluded from Xailer's
> documentation by developers.
>
> Regards, Oleg
>
>
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

oStatusBar

Mensaje por ignacio »

Oleg,
SetText() is not a documented method of TStatusBar.
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Oleg" <info@cluster.samara.ru> escribió en el mensaje
news:4861d5b4$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Nick,
>
>> When I try this, from within Appdata
>>
>> ::oStatusBar:aItems[1]:SetText("Here is my Status message.")
>>
>> I get this
>>
>> Subsystem Call: BASE
>> System Code: 1004
>> Default Status: .F.
>> Description: Scope Violation <PROTECTED>
>> Operation: SETTEXT
>> Arguments: [ 1] = Type: O Val:
>>
>> I can not for the life of me work out why.
>
> This is because method SetText is protected in class TStatusPanel. You can
> see it in XailerSourceStatusPanel.prg.
> Use published property cText instead:
> ::oStatusBar:aItems[1]:cText:="Here is my Status message."
>
> The description of SetText method should be excluded from Xailer's
> documentation by developers.
>
> Regards, Oleg
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

oStatusBar

Mensaje por NoName »

Oleg,
SetText() is not a documented method of TStatusBar.
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Oleg" <info@cluster.samara.ru> escribió en el mensaje
news:4861d5b4$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Nick,
>
>> When I try this, from within Appdata
>>
>> ::oStatusBar:aItems[1]:SetText("Here is my Status message.")
>>
>> I get this
>>
>> Subsystem Call: BASE
>> System Code: 1004
>> Default Status: .F.
>> Description: Scope Violation <PROTECTED>
>> Operation: SETTEXT
>> Arguments: [ 1] = Type: O Val:
>>
>> I can not for the life of me work out why.
>
> This is because method SetText is protected in class TStatusPanel. You can
> see it in XailerSourceStatusPanel.prg.
> Use published property cText instead:
> ::oStatusBar:aItems[1]:cText:="Here is my Status message."
>
> The description of SetText method should be excluded from Xailer's
> documentation by developers.
>
> Regards, Oleg
>
>
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

oStatusBar

Mensaje por Oleg »

Ignacio,
> SetText() is not a documented method of TStatusBar.
We were talking about TStatusPanel, and SetText() is documented in it.
Regards, Oleg
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

oStatusBar

Mensaje por Oleg »

Ignacio,
> SetText() is not a documented method of TStatusBar.
We were talking about TStatusPanel, and SetText() is documented in it.
Regards, Oleg
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

oStatusBar

Mensaje por ignacio »

Oleg,
You are completely right. Documentation fixed. Thanks
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Oleg" <info@cluster.samara.ru> escribió en el mensaje
news:[email=48620110@ozsrv2.ozlan.local...]48620110@ozsrv2.ozlan.local...[/email]
> Ignacio,
>
>> SetText() is not a documented method of TStatusBar.
>
> We were talking about TStatusPanel, and SetText() is documented in it.
>
> Regards, Oleg
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

oStatusBar

Mensaje por NoName »

Oleg,
You are completely right. Documentation fixed. Thanks
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Oleg" <info@cluster.samara.ru> escribió en el mensaje
news:[email=48620110@ozsrv2.ozlan.local...]48620110@ozsrv2.ozlan.local...[/email]
> Ignacio,
>
>> SetText() is not a documented method of TStatusBar.
>
> We were talking about TStatusPanel, and SetText() is documented in it.
>
> Regards, Oleg
>
Responder