Yeah - that's fine. I was going to put something in the help about how you could turn autohide on if you want to use fullscreen. At any rate, it's nice to have the option, for those that don't mind tweaking things a bit to use it.
This is what I ended up using and it works well, excluding the stay-on-top thing (tested on SuSE 8.0 (5.6.1) and Win98 (ActiveState-5.8.0):
if ($s->{fullscreen})
{
$s->{fullscreen} = 0;
$w->{main}->withdraw;
$w->{main}->update;
$w->{main}->overrideredirect(0);
$w->{main}->geometry($s->{windowed}||"800x600+20+20");
$w->{main}->deiconify;
$w->{main}->update;
}
else
{
$s->{fullscreen} = 1;
$s->{windowed} = $w->{main}->geometry;
$w->{main}->withdraw;
$w->{main}->update;
$w->{main}->overrideredirect(1);
$w->{main}->geometry($w->{main}->screenwidth."x".$w->{main}->scree
+nheight."+0+0");
$w->{main}->deiconify;
$w->{main}->update;
}
{NULE}
--
http://www.nule.org
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|