Hi all.
Am trying to use Box(x1,y1,x2n,y2) to draw rectangles on a Forms.
to outline rolling displays for process parameters.
DG VFP 5.0 says Syntax is Object.Box(----)
Have tried things like myform.Box(----) as code & in Init
Thisform.Box(----), but get errors telling me cant find Box
from the compiler and interpreter. Seem to need to tell the form it
has a Box method. Don't know how.
The original code for all this used Code page 437 & IBM Vga
line drawings to do the same.
Dumb I know, but needs must.
William Tormey
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/1296501770.2215.18.camel@client
** 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.
Do you see the .Box method in the property sheet? Might you have some code
or custom method that's overriding the VFP method? I've only got access to
VFP7 & 9 here, and it works as advertised for _SCREEN and/or forms.
Fred
On Mon, Jan 31, 2011 at 12:22 PM, william tormey <
supportforamlireland@indigo.ie> wrote:
> Hi all.
> Am trying to use Box(x1,y1,x2n,y2) to draw rectangles on a Forms.
> to outline rolling displays for process parameters.
>
> DG VFP 5.0 says Syntax is Object.Box(----)
> Have tried things like myform.Box(----) as code & in Init
> Thisform.Box(----), but get errors telling me cant find Box
> from the compiler and interpreter. Seem to need to tell the form it
> has a Box method. Don't know how.
>
> The original code for all this used Code page 437 & IBM Vga
> line drawings to do the same.
>
> Dumb I know, but needs must.
> William Tormey
>
>
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/AANLkTi=bW0dGwnd+nuLV9kSRxkGs4bnG+WUqZOJVKa5F@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.
william tormey wrote on 2011-01-31:
> Hi all.
> Am trying to use Box(x1,y1,x2n,y2) to draw rectangles on a Forms.
> to outline rolling displays for process parameters.
>
> DG VFP 5.0 says Syntax is Object.Box(----) Have tried things like
> myform.Box(----) as code & in Init Thisform.Box(----), but get errors
> telling me cant find Box from the compiler and interpreter. Seem to
> need to tell the form it has a Box method. Don't know how.
>
> The original code for all this used Code page 437 & IBM Vga line
> drawings to do the same.
>
> Dumb I know, but needs must.
> William Tormey
>
William,
VFP 9 SP 1 it's working. Checking the help file for VFP 3, shows it existed.
[Form.Init]
THISFORM.Box(10, 20, 20, 30)
That code draws a small square near the upper left of the form when it gets
created.
I thought perhaps it was the INIT of a contained object that might be
causing the problem so moved the code to the INIT of a COMMANDBUTTON. Still
draws the square.
Tracy Pearson
PowerChurch Software
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/001101cbc17e$374e4eb0$a5eaec10$@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.
Just created a form in VFP9 and did this in the Init():
This.Box(10, 10, 20, 20)
... which a boxeen.
On Mon, 31 Jan 2011 19:22 +0000, "william tormey"
<supportforamlireland@indigo.ie> wrote:
> Hi all.
> Am trying to use Box(x1,y1,x2n,y2) to draw rectangles on a Forms.
> to outline rolling displays for process parameters.
>
> DG VFP 5.0 says Syntax is Object.Box(----)
> Have tried things like myform.Box(----) as code & in Init
> Thisform.Box(----), but get errors telling me cant find Box
> from the compiler and interpreter. Seem to need to tell the form it
> has a Box method. Don't know how.
>
> The original code for all this used Code page 437 & IBM Vga
> line drawings to do the same.
>
> Dumb I know, but needs must.
> William Tormey
>
>
>
>
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/1296505938.12139.1418220111@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.
My Thanks to Alan, Fred and Tracy.
Box(0,0,633,620) works fine on a New form with Draw mode =13, Draw
style=0,Draw width 10.This gives a box that one cant miss seeing.
But on the form I want to put it on, I can now see it loading and then
it disappears, with error msg "Must specify additional Parameters"
I have established max values for box draw parameters wrt
top,left,height and width of form max values wrt physical screen
pixels values.
Have decided to chuck the original form and start again with a form on
which box works.
Learned lots about using the interpreter and parameter passing with
forms, thanks to your support. The project involves porting inherited
VFP, 338 classes and Docs, and mounds of VFP, Clipper and C code. As
Stephen remarked in an earlier post; porting previous code has its
joys. Actually he was not quite so polite.
Many Thanks again.
William
On Mon, 2011-01-31 at 20:32 +0000, Alan Bourke wrote:
> Just created a form in VFP9 and did this in the Init():
>
> This.Box(10, 10, 20, 20)
>
> ... which a boxeen.
>
> On Mon, 31 Jan 2011 19:22 +0000, "william tormey"
> <supportforamlireland@indigo.ie> wrote:
> > Hi all.
> > Am trying to use Box(x1,y1,x2n,y2) to draw rectangles on a Forms.
> > to outline rolling displays for process parameters.
> >
> > DG VFP 5.0 says Syntax is Object.Box(----)
> > Have tried things like myform.Box(----) as code & in Init
> > Thisform.Box(----), but get errors telling me cant find Box
> > from the compiler and interpreter. Seem to need to tell the form it
> > has a Box method. Don't know how.
> >
> > The original code for all this used Code page 437 & IBM Vga
> > line drawings to do the same.
> >
> > Dumb I know, but needs must.
> > William Tormey
> >
> >
> >
> >
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/1296731083.2075.32.camel@client
** 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.
I seem to remember something about the form.AllowOutput property and things
disappearing. Try changing that setting and see if that helps.
Don't know why you would have a parameters issue unless you have custom code
that's overridden the default behavior and you have an altered parameter
statement there. Even a space character in the method will override it (and
cause there to be no parameter statement at all).
Fred
On Thu, Feb 3, 2011 at 4:04 AM, william tormey <
supportforamlireland@indigo.ie> wrote:
> My Thanks to Alan, Fred and Tracy.
> Box(0,0,633,620) works fine on a New form with Draw mode =13, Draw
> style=0,Draw width 10.This gives a box that one cant miss seeing.
>
> But on the form I want to put it on, I can now see it loading and then
> it disappears, with error msg "Must specify additional Parameters"
>
> I have established max values for box draw parameters wrt
> top,left,height and width of form max values wrt physical screen
> pixels values.
>
> Have decided to chuck the original form and start again with a form on
> which box works.
>
> Learned lots about using the interpreter and parameter passing with
> forms, thanks to your support. The project involves porting inherited
> VFP, 338 classes and Docs, and mounds of VFP, Clipper and C code. As
> Stephen remarked in an earlier post; porting previous code has its
> joys. Actually he was not quite so polite.
>
> Many Thanks again.
> William
>
>
>
>
>
>
>
>
>
> On Mon, 2011-01-31 at 20:32 +0000, Alan Bourke wrote:
> > Just created a form in VFP9 and did this in the Init():
> >
> > This.Box(10, 10, 20, 20)
> >
> > ... which a boxeen.
> >
> > On Mon, 31 Jan 2011 19:22 +0000, "william tormey"
> > <supportforamlireland@indigo.ie> wrote:
> > > Hi all.
> > > Am trying to use Box(x1,y1,x2n,y2) to draw rectangles on a Forms.
> > > to outline rolling displays for process parameters.
> > >
> > > DG VFP 5.0 says Syntax is Object.Box(----)
> > > Have tried things like myform.Box(----) as code & in Init
> > > Thisform.Box(----), but get errors telling me cant find Box
> > > from the compiler and interpreter. Seem to need to tell the form it
> > > has a Box method. Don't know how.
> > >
> > > The original code for all this used Code page 437 & IBM Vga
> > > line drawings to do the same.
> > >
> > > Dumb I know, but needs must.
> > > William Tormey
> > >
> > >
> > >
> > >
[excessive quoting removed by server]
_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/AANLkTimAwrKzoT19OY2=EwWkEa2uicBZgm4orvABOvbt@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.