[Scilab-users] Redrawing a maximized figure changes its original size and other problem
Federico Miyara
fmiyara at fceia.unr.edu.ar
Mon Sep 6 01:27:49 CEST 2021
Samuel,
>> The expected behavior would be that the window were completely
>> visible from the beginning.
>
> I don't think so. This would require to set a priority between the
> default figure size and default figure position, in a way that anyone
> could clame as debattable. As a user you are already able to tune and
> set the default values of figures properties in your startup file,
> according to your own user's screen and wishes, noticeably .axes_size
> and .figure_position
>
The current behavior is unfriendly. Being the graphic output a central
feature in any mathematical software, one would expect that the default
behavior would be that any figure be completely visible right after its
creation without any further action by the user. Probably there are many
things that can be controlled from the startup file or even through the
figure's properties, but it adds unnecessary complications when what one
needs is just to view the figure that has been created. By the way, one
problem with manipulating the startup file is that when updating the
program or when installing it in a new computer one would need to edit
it, remembering what to edit just to get the program doing what it
should have been doing out of the box.
What I'm asking for requires only that the figure rendering engine
automatically detect the screen size and the presence and height of the
task bar, and then compute the position of the figure to avoid conflict
between the figure and the task bar. Indeed, this is the default
behavior of most of the pop-up windows in virtually every application.
For instance, opening the preferences window, does exactly this. I have
even tested what happens if one manually increases the height of the
task bar (what could be useful if there are many open applications). The
position of the preferences window adapts up to the situation where
there is no more room and only then it exceeds the screen limits.
The function createWindow() works a bit better than figure(), since it
creates a window that does not conflict with a single-line task bar, but
if the task bar is enlarged, it eventually overlaps the new graphic
window hiding part of it.
Regards,
Federico
--
El software de antivirus Avast ha analizado este correo electrónico en busca de virus.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20210905/13737cb2/attachment.htm>
More information about the users
mailing list