[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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