#64365 - 2002-04-09 04:20 PM
KixGUI Window Always on top?
|
Chris Bingel
Fresh Scripter
Registered: 2002-04-09
Posts: 22
Loc: Baltimore, MD
|
Please forgive the terribly newbie question, but I've been teaching myself this stuff, so I'm sure I've missed a lot.
I've got a legal notice that I need to pop up when users log in, but our legal/security group has the requirement that users cannot close or move the window, unless they click the OK button, agreeing to the terms.
So far I've got the window unmovable, and I've removed the close options, but for the life of me, I can't figure out how to keep the window on top.
Help?
-CSB
|
|
Top
|
|
|
|
#64368 - 2002-04-09 05:31 PM
Re: KixGUI Window Always on top?
|
Chris Bingel
Fresh Scripter
Registered: 2002-04-09
Posts: 22
Loc: Baltimore, MD
|
Do you know if there's a way to make the window stay in the foregroud without using the registry? Unfortunately, we have a very fickle legal department, and I was told to implement the script last week, then promptly told to remove it. And now I'm being told to put it back in place. I'd rather not change the workstation, if I don't have to.
|
|
Top
|
|
|
|
#64369 - 2002-04-09 06:50 PM
Re: KixGUI Window Always on top?
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
Chris,
Could always give the trusty old messagebox a shot:
break on
$notice = "
LEGAL NOTICE
Copyright (c) 2002 All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither my name nor the names of my contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY ME AND MY CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL I OR MY CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
DO YOU AGREE TO THE TERMS OF THIS CONTRACT ?
"
if messagebox($notice,"Legal Notice",4096+32+4) = 7 ?"Logoff!!!" else ?"Be good!" endif
?$answer
exit 1
-Shawn
|
|
Top
|
|
|
|
#64370 - 2002-04-09 09:10 PM
Re: KixGUI Window Always on top?
|
Chris Bingel
Fresh Scripter
Registered: 2002-04-09
Posts: 22
Loc: Baltimore, MD
|
Our legal department changed again, now the banner must come before the login, so I guess I have to push the registry keys.
Thanks!
|
|
Top
|
|
|
|
Moderator: Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart
|
0 registered
and 293 anonymous users online.
|
|
|