Zitat von Tom Verhoeff <[EMAIL PROTECTED]>:

> We use Lazarus in our first year programming education (as an experiment).
>
> There are various issues that we encounter, some small, some bigger.

OS? FPC Version? Laz Version?


> Here is one that I don't understand.  We have had a few instances
> where a window consistently failed to show up:
>
>   * Object Inspector
>
>   * Messages
>
> In both cases, it turned out that the saved options were to blame.
> In one case, I advised to remove all user-specific Lazarus configuration
> files (including environmentoptions.xml).  Restarting Lazarus, will
> apparently recreate default option settings.  The window then did
> show up.
>
> In another case, I looked a little further and noticed that the window
> position for the Messages window had a very large Top coordinate (as saved
> in environmentoptions.xml).  So, it probably did open, but outside the
> visible screen region.  I edited the options xml file, restarted Lazarus,
> and the window appeared again.
>
> As you can immagine these are quite annoying experiences (not only for
> the students, but also for teachers).
>
> Questions:
>
>   * How can a student easily overcome this situation?
>     Is there e.g. a way to sanitize saved options?
>     Note that finding the relevant file is not trivial
>     (so it is harder for me explain manual santization in a FAQ).
>
>   * How can this happen in the first place?

Either by closing the IDE on a big screen resolution and opening it on a small
one.
OR because of a bug in the widgetset returning the wrong window coords.


>   * What can be done to avoid this in the future?

I added some checks so that the IDE applies some bounds to the restored windows
positions, so that at least a portion of the window should be visible. r17758.
We can not auto move the whole window onto the screen, because some people need
negative coords.


> Our Lazarus FAQ:
>
>       <http://www.win.tue.nl/~wstomv/edu/lazarus/faq.html>

:)


Mattias

_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to