Página 1 de 1
oStatusBar
Publicado: Mié Jun 25, 2008 3:17 am
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
oStatusBar
Publicado: Mié Jun 25, 2008 7:21 am
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
oStatusBar
Publicado: Mié Jun 25, 2008 7:21 am
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
oStatusBar
Publicado: Mié Jun 25, 2008 8:46 am
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
>
>
oStatusBar
Publicado: Mié Jun 25, 2008 8:46 am
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
>
>
oStatusBar
Publicado: Mié Jun 25, 2008 10:13 am
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
>
>
oStatusBar
Publicado: Mié Jun 25, 2008 10:13 am
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
>
>
oStatusBar
Publicado: Mié Jun 25, 2008 10:26 am
por Oleg
Ignacio,
> SetText() is not a documented method of TStatusBar.
We were talking about TStatusPanel, and SetText() is documented in it.
Regards, Oleg
oStatusBar
Publicado: Mié Jun 25, 2008 10:26 am
por Oleg
Ignacio,
> SetText() is not a documented method of TStatusBar.
We were talking about TStatusPanel, and SetText() is documented in it.
Regards, Oleg
oStatusBar
Publicado: Mié Jun 25, 2008 10:43 am
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
>
oStatusBar
Publicado: Mié Jun 25, 2008 10:43 am
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
>