RE: Frustrating page tab captions

2014-05-28 Thread Geoff Flight
THANKS EVERYONE for the advice.  I've abandoned any hope of getting it to
work and so have retooled with simply using a hyphen. I have tried all
brackets and get the same result.  The pageframe is not subclassed and
nothing makes sense.  I guess I am a bit surprised something as odd and
annoying as this wasnt fixed many years ago but I guess that is the cross we
bear when using Fox.

Thanks just the same!

-Original Message-
From: ProFox [mailto:profox-boun...@leafe.com] On Behalf Of Tracy Pearson
Sent: Wednesday, 28 May 2014 9:12 PM
To: ProFox Email List
Subject: Re: Frustrating page tab captions

On May 28, 2014 6:32:09 AM EDT, Laurie Alvey  wrote:
>  Don't know if this helps, but I have a form method called AfterMove  
> which  fires whenever the record pointer changes. Among other things 
> it  changes  the caption of Page1 on the pageframe thus (members.id is 
> integer
>  type):
>  
>  THIS.oPgf.Page1.Caption = "Details (" + TRANSFORM(members.id) + ")"
>  
>  Works perfectly. The only property changed from the default value is  
> Font  (Tahoma 9pt).
>  
>  Laurie
>  
>  
>  On 28 May 2014 09:42, Alan Bourke  wrote:
>  
>  > Does messing around with the TabStretch and TabStyle properties of  
> the  > PageFrame change anything?
>  >

I remember Andy Kramek spoke about this once in a conference session. I
searched the internet and found this post from him.
http://www.foxite.com/archives/page-caption-090772.htm


--
Tracy

[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/002701cf7ac9$58930900$09b91b00$@com.au
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Frustrating page tab captions

2014-05-28 Thread mbsoftwaresolutions

That would be correct, Kevin.  Brackets worked fine.  It WAS the parens.

On 2014-05-28 12:41, Kevin Cully wrote:

I seem to remember something about the parenthesis causing the issue.
Is that correct Mike?

Geoff, can you use square brackets instead? (untested)
thisform.pageframe1.page1.caption='Details ['+srit_db.crank + ']'


On 05/28/2014 12:36 PM, mbsoftwaresoluti...@mbsoftwaresolutions.com 
wrote:


I actually asked this years ago here.  My workaround was to retool it: 
 > thisform.pageframe1.page1.caption='Details - '+srit_db.crank




[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/03ebf09e36ace3297ee277a3e509f...@mbsoftwaresolutions.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: Frustrating page tab captions

2014-05-28 Thread Tracy Pearson
I just tried to reproduce this. It works for me. VFP 9 SP 1

  LOCAL testForm
  testForm = CREATEOBJECT("testForm")
  testForm.Show()
  READ EVENTS
  CLEAR CLASS mybutton
  CLEAR CLASS mypage
  CLEAR CLASS mypageframe
  CLEAR CLASS testform

  DEFINE CLASS testForm as Form 
  ADD OBJECT pgf as mypageframe ;
 WITH pagecount = 2, ;
  mypage1.caption = "Test (1)", ;
  mypage2.caption = "Test (2)"

  PROCEDURE Unload
 CLEAR EVENTS 
  ENDPROC 

  ENDDEFINE

  DEFINE CLASS myPageFrame as PageFrame 
  memberclass = "mypage"
  memberclasslibrary = "pageframe.fxp"
  ENDDEFINE 

  DEFINE CLASS mypage as Page 
  ADD OBJECT btn as mybutton
  ENDDEFINE 

  DEFINE CLASS mybutton as CommandButton 
  PROCEDURE click
  this.Parent.caption = "New Caption (" + ;
 TRANSFORM(this.Parent.PageOrder) + ")"
  ENDPROC
  ENDDEFINE



Tracy Pearson
PowerChurch Software


___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/000b01cf7a99$a14c2260$e3e46720$@powerchurch.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: Frustrating page tab captions

2014-05-28 Thread Allen
I just checked and I must have had the same problem as I went with a dash
instead. Not tried in VFP9 though
Al

-Original Message-

I seem to remember something about the parenthesis causing the issue.  
Is that correct Mike?

Geoff, can you use square brackets instead? (untested)
thisform.pageframe1.page1.caption='Details ['+srit_db.crank + ']'


On 05/28/2014 12:36 PM, mbsoftwaresoluti...@mbsoftwaresolutions.com wrote:
>
> I actually asked this years ago here.  My workaround was to retool
> it:  > thisform.pageframe1.page1.caption='Details - '+srit_db.crank


___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/003b01cf7a95$e483c370$ad8b4a50$@com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Frustrating page tab captions

2014-05-28 Thread Kevin Cully
I seem to remember something about the parenthesis causing the issue.  
Is that correct Mike?


Geoff, can you use square brackets instead? (untested)
thisform.pageframe1.page1.caption='Details ['+srit_db.crank + ']'


On 05/28/2014 12:36 PM, mbsoftwaresoluti...@mbsoftwaresolutions.com wrote:


I actually asked this years ago here.  My workaround was to retool 
it:  > thisform.pageframe1.page1.caption='Details - '+srit_db.crank



___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/538611d4.8060...@cullytechnologies.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Frustrating page tab captions

2014-05-28 Thread mbsoftwaresolutions

On 2014-05-28 02:10, Geoff Flight wrote:

Hello all,

I still read this list but I have moved onto managing a training 
company now
but have a VFP contacts/mailing database we use.  It all works well but 
I

just tried to get the caption for page1 to read "Details (X)" with X
replaced by a ranking field. brain-dead easy right?  My code for this 
is...


thisform.pageframe1.page1.caption='Details ('+srit_db.crank+')'

The result is as follows... "(Details (X"

not only is the last parenthesis coming up first instead of last it has
swapped it around.  I remember in my former career having problems with 
it

and if I recall right, gave up on it.

Does anyone have a reason for this behaviour and better still... a
work-around?

Cheers

Geoff Flight
SRIT



Hi Geoff,

I actually asked this years ago here.  My workaround was to retool it:  
> thisform.pageframe1.page1.caption='Details - '+srit_db.crank


___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/fd903c39eb7e6de5dc52829379b75...@mbsoftwaresolutions.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Frustrating page tab captions

2014-05-28 Thread Laurie Alvey
If you run the sample code in the MemberClass help topic (which
demonstrates dynamic page captions), it runs correctly.

Laurie


On 28 May 2014 12:41, Tracy Pearson  wrote:

> On May 28, 2014 6:32:09 AM EDT, Laurie Alvey  wrote:
> >  Don't know if this helps, but I have a form method called AfterMove
> >  which
> >  fires whenever the record pointer changes. Among other things it
> >  changes
> >  the caption of Page1 on the pageframe thus (members.id is integer
> >  type):
> >
> >  THIS.oPgf.Page1.Caption = "Details (" + TRANSFORM(members.id) + ")"
> >
> >  Works perfectly. The only property changed from the default value is
> >  Font
> >  (Tahoma 9pt).
> >
> >  Laurie
> >
> >
> >  On 28 May 2014 09:42, Alan Bourke  wrote:
> >
> >  > Does messing around with the TabStretch and TabStyle properties of
> >  the
> >  > PageFrame change anything?
> >  >
>
> I remember Andy Kramek spoke about this once in a conference session. I
> searched the internet and found this post from him.
> http://www.foxite.com/archives/page-caption-090772.htm
>
>
> --
> Tracy
>
[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/CAMvTR9dEdCUn5x=q1NfxSOCSonAcP4c+DiJO_rq1D=76x8z...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Frustrating page tab captions

2014-05-28 Thread Tracy Pearson
On May 28, 2014 6:32:09 AM EDT, Laurie Alvey  wrote:
>  Don't know if this helps, but I have a form method called AfterMove
>  which
>  fires whenever the record pointer changes. Among other things it
>  changes
>  the caption of Page1 on the pageframe thus (members.id is integer
>  type):
>  
>  THIS.oPgf.Page1.Caption = "Details (" + TRANSFORM(members.id) + ")"
>  
>  Works perfectly. The only property changed from the default value is
>  Font
>  (Tahoma 9pt).
>  
>  Laurie
>  
>  
>  On 28 May 2014 09:42, Alan Bourke  wrote:
>  
>  > Does messing around with the TabStretch and TabStyle properties of
>  the
>  > PageFrame change anything?
>  >

I remember Andy Kramek spoke about this once in a conference session. I 
searched the internet and found this post from him.
http://www.foxite.com/archives/page-caption-090772.htm


-- 
Tracy

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/6c6343b1-8977-4791-be65-c0c8c02c6...@email.android.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Frustrating page tab captions

2014-05-28 Thread Laurie Alvey
Don't know if this helps, but I have a form method called AfterMove which
fires whenever the record pointer changes. Among other things it changes
the caption of Page1 on the pageframe thus (members.id is integer type):

THIS.oPgf.Page1.Caption = "Details (" + TRANSFORM(members.id) + ")"

Works perfectly. The only property changed from the default value is Font
(Tahoma 9pt).

Laurie


On 28 May 2014 09:42, Alan Bourke  wrote:

> Does messing around with the TabStretch and TabStyle properties of the
> PageFrame change anything?
>
[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/camvtr9d9mccjzkyhyfd2th6qax62uxf3amlgtmfdnwq+xxk...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Frustrating page tab captions

2014-05-28 Thread Alan Bourke
Does messing around with the TabStretch and TabStyle properties of the
PageFrame change anything?

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/1401266547.26526.122350741.235b7...@webmail.messagingengine.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: Frustrating page tab captions

2014-05-27 Thread Dave Crozier
I forgot to add if that doesn't work then try:

thisform.pageframe1.page1.caption=(cCaption)

Dave

-Original Message-
From: ProFox [mailto:profox-boun...@leafe.com] On Behalf Of Dave Crozier
Sent: 28 May 2014 07:39
To: ProFox Email List
Subject: RE: Frustrating page tab captions

Try this:

cCaption = "Details"+(srit_db.crank)+")"

thisform.pageframe1.page1.caption=cCaption

Dave

-Original Message-
From: ProFox [mailto:profox-boun...@leafe.com] On Behalf Of Geoff Flight
Sent: 28 May 2014 07:10
To: 'ProFox Email List'
Subject: Frustrating page tab captions

Hello all,

I still read this list but I have moved onto managing a training company now 
but have a VFP contacts/mailing database we use.  It all works well but I just 
tried to get the caption for page1 to read "Details (X)" with X replaced by a 
ranking field. brain-dead easy right?  My code for this is...

thisform.pageframe1.page1.caption='Details ('+srit_db.crank+')'

The result is as follows... "(Details (X"

not only is the last parenthesis coming up first instead of last it has swapped 
it around.  I remember in my former career having problems with it and if I 
recall right, gave up on it.

Does anyone have a reason for this behaviour and better still... a work-around?

Cheers

Geoff Flight
SRIT



[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/18725b8cd2d5d247873a2baf401d4ab22a511...@ex2010-a-fpl.fpl.LOCAL
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


RE: Frustrating page tab captions

2014-05-27 Thread Dave Crozier
Try this:

cCaption = "Details"+(srit_db.crank)+")"

thisform.pageframe1.page1.caption=cCaption

Dave

-Original Message-
From: ProFox [mailto:profox-boun...@leafe.com] On Behalf Of Geoff Flight
Sent: 28 May 2014 07:10
To: 'ProFox Email List'
Subject: Frustrating page tab captions

Hello all,

I still read this list but I have moved onto managing a training company now 
but have a VFP contacts/mailing database we use.  It all works well but I just 
tried to get the caption for page1 to read "Details (X)" with X replaced by a 
ranking field. brain-dead easy right?  My code for this is...

thisform.pageframe1.page1.caption='Details ('+srit_db.crank+')'

The result is as follows... "(Details (X"

not only is the last parenthesis coming up first instead of last it has swapped 
it around.  I remember in my former career having problems with it and if I 
recall right, gave up on it.

Does anyone have a reason for this behaviour and better still... a work-around?

Cheers

Geoff Flight
SRIT



[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/18725b8cd2d5d247873a2baf401d4ab22a511...@ex2010-a-fpl.fpl.LOCAL
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.


Re: Frustrating page tab captions

2014-05-27 Thread Mike Copeland

What is the value of  srit_db.crank?

My suspicion is that it has something VFP would consider "non standard" 
ACSII.


Test it by replacing the srit_db.crank value with something else...like 
"Hello World"


Mike Copeland


Geoff Flight wrote:

Hello all,

I still read this list but I have moved onto managing a training company now
but have a VFP contacts/mailing database we use.  It all works well but I
just tried to get the caption for page1 to read "Details (X)" with X
replaced by a ranking field. brain-dead easy right?  My code for this is...

thisform.pageframe1.page1.caption='Details ('+srit_db.crank+')'

The result is as follows... "(Details (X"

not only is the last parenthesis coming up first instead of last it has
swapped it around.  I remember in my former career having problems with it
and if I recall right, gave up on it.

Does anyone have a reason for this behaviour and better still... a
work-around?

Cheers

Geoff Flight
SRIT




[excessive quoting removed by server]

___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/5385837c.5000...@ggisoft.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.