For this command, the internationalization mechanism
of daVinci
can be used by supplying a string parameter of the form:
#%<language-key> (i.e. "#%Message.Loading"). This would
display the language-value defined for language-key instead of
directly displaying string.
window(show_status(string))
Displays a message string in the right footer area of the
base window.
This command should be used to show permanent informations such as a
current status. For temporal messages, command
window(show_message(...))
should be used instead.
In
multi-view and
multi-window
mode, this operation will affect all views of the current context.
For this command, the internationalization mechanism
of daVinci
can be used by supplying a string parameter of the form:
#%<language-key> (i.e. "#%Message.Loading"). This would
display the language-value defined for language-key instead of
directly displaying string.
window(position(integer,integer))
Sets the x/y position of the
base window
to the given values. The first integer is the new x-coordinate,
the second is the new y-coordinate of the window. Do not use negative values
or values larger than the screen.
In
multi-view
mode, this operation will only affect the
master view
of the current context.
window(size(integer,integer))
Sets the width and height of the
base window
to the given values. The first integer is the new
width, the second is the new height of the window. Do not use negative values
or values larger than the screen. In
multi-view
mode, this operation will only affect the
master view
of the current context.
window(raise)
Raises the
base window
to the front such that it lays on top of all the other windows. In
multi-view
mode, this operation will only affect the
master view
of the current context.
window(iconify)
Iconifies the
base window.
The inverse command is
window(deiconify). In
multi-view and
multi-window
mode, this operation will affect all views of the current context.
window(deiconify)
Deiconifies the
base window.
The inverse command is
window(iconify). In
multi-view and
multi-window
mode, this operation will affect all views of the current context.
window(activate)
Enables user input in daVinci again after this has been disabled
before with command
window(deactivate).
In
multi-graph and
multi-view
mode, this operation will affect all opened windows of daVinci
and not only the views of the current context.
window(deactivate)
Disables all user input in daVinci. This will deactivate the
whole system, such that the user is not able to do anything in
daVinci, and no answers are sent to the application until
it will be enabled again with command
window(activate).
In
multi-graph and
multi-view
mode, this operation will affect all opened windows of daVinci
and not only the views of the current context.
window(file_browser(boolean,string,string,string,string,btypes,boolean))
-> Returns answer browser_answer(...)!
By using this command, the application has the opportunity to use daVinci's file browser for its own purpose. This file browser does not start any operation in daVinci after the user has selected a file. Instead, the selected file (and type) is returned to the application by sending answer browser_answer(...). Due to the manifold features of the daVinci file browser, the application need to specify several parameters which have the following semantic:
1. string: A plain text description of the type, e.g. "PostScript Files"
2. string: The pattern for the type in shell notation, e.g. "*.ps"
3. string: An optional postfix for the window header, e.g. "PostScript"
The header postfix (3. string) will be added to the window title of the browser each time the particular type is selected by the user. So, if the window has title "Save" and there are two types with postfix "X" and "Y", then the title of the browser will be either "Save X" or "Save Y". For example, here is a valid btypes parameter for a browser with a C pattern and a generic pattern for all files:
For this command, the internationalization mechanism of daVinci can be used by supplying a string of the form: #%<language-key> (i.e. "#%FileDlg.Title.Open"). This would display the language-value defined for language-key instead of directly displaying the string. This can be used for the strings in above positions 2, 3, 6.1 and 6.3.
Windows NT: For Windows NT the native file browser is used instead of the one described above.