[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: CSS / Window Position / calling functions
IGNORE #3, my error.
On Sat, 7 Oct 2000, Alan Piszcz 'peesh' wrote:
> Date: Sat, 7 Oct 2000 18:47:57 -0400 (EDT)
> From: Alan Piszcz 'peesh' <apiszcz@mitre.org>
> To: oreilly@psych.colorado.edu
> Cc: PDP-DISCUSS@psych.colorado.edu
> Subject: Re: CSS / Window Position / calling functions
>
>
>
> #1 - it does the same without the exit.
> just the line .projects->New(1, Project);
> will cause 'U' to be otuput.
>
>
> #2 - ok, I need to look at this ..
>
> #3 - I tried the include, however I'm getting the following.
>
> bp++ -f st2.css
> Attempt to end Top Level definition with }
> >24 }
>
>
> Here is the include statement:
> //
> // LOAD AND COMPILE C++ FUNCTION to TEST
> //
> #include "cf1.css"
> //Run4Tests();
>
>
>
> Here is the function:
> cat cf1.css
> //
> // Step through 4 events with 1 second wait
> //
> void Run4Tests () {
> int i;
> for (i=0; i<4; i++) {
> .projects[0].processes[3].Step();
> sleep(1);
> }
> }
>
>
> Thanks for the weekend support.
>
>
>
>
>
>
> On Sat, 7 Oct 2000, Randall C. O'Reilly wrote:
>
> > Date: Sat, 7 Oct 2000 13:55:00 -0600
> > From: Randall C. O'Reilly <oreilly@grey.colorado.edu>
> > To: apiszcz@mitre.org
> > Cc: PDP-DISCUSS@psych.colorado.edu
> > Subject: Re: CSS / Window Position / calling functions
> >
> > "Alan Piszcz 'peesh'" <apiszcz@mitre.org> writes:
> > > [1] What is causing the 'U' to be printed in the following?
> > >
> > > bp++> source "st2.css"
> > > Ubp++>
> > >
> > >
> > > st2.css
> > > =======
> > > .projects->New(1, Project);
> > > exit
> >
> > probably it doesn't like the exit here -- it isn't needed and might do
> > strange things.
> >
> > > [2] Is there a way to control the window position from 'CSS'?
> >
> > each window has a "ScriptWinPos" function on it that will generate css
> > code for positioning it -- however, you need to access this from the
> > edit dialog of the object (in the object menu) and not its regular
> > view window (considered a less frequently used command). this code
> > calls "SetWinPos", taking left, bottom, width, height args. and you
> > can also call Move and ReSize..
> >
> > > [3] If I want to include a new function 'load' works and bp++ shell
> > > lets me run it, however how can I call C functions from CSS?
> > > load "cf1.css"
> > > FunctionName();
> > >
> > > produces:
> > > commands are only available from the shell line 101: load "cf1.css"
> >
> > use '#include "cf1.css"' to include other files in other files.. load
> > is a command and can only be used interactively from the command line.
> >
> > - Randy
> >
>
> - ___________.___________________.________
> - < Al Piszcz | apiszcz@mitre.org | MITRE >
>
>
- ___________.___________________.________
- < Al Piszcz | apiszcz@mitre.org | MITRE >