Page 1 of 1 1
Topic Options
#64365 - 2002-04-09 04:20 PM KixGUI Window Always on top?
Chris Bingel Offline
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
#64366 - 2002-04-09 04:51 PM Re: KixGUI Window Always on top?
Dean R Offline
Starting to like KiXtart

Registered: 2002-03-15
Posts: 115
Loc: Ireland, but Im an Aussie
Have a look at this post, it should help a little.

[Big Grin]

Setconsole
_________________________
-------------------------------- When you can take this stone from my hand Gwasshoppa you are read... *yoink* Gwasshoppa? Gwasshoppa? Where did you go? ---------------------------------

Top
#64367 - 2002-04-09 05:04 PM Re: KixGUI Window Always on top?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
See http://kixtart.org/board/Forum1/HTML/000741.html

The registry contains two keys LegalNoticeText and LegalNoticeCaption whcih display a legal notice that the user has to click on in order to even be able to login. That might be the saftest and legally most binding way.
_________________________
There are two types of vessels, submarines and targets.

Top
#64368 - 2002-04-09 05:31 PM Re: KixGUI Window Always on top?
Chris Bingel Offline
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 Offline
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 Offline
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
#64371 - 2002-04-09 09:30 PM Re: KixGUI Window Always on top?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Can you change the legal department? [Big Grin]

Rather than displaying the legal notice on every login, which will start to annoy every user pretty fast, your legal department should rather craft a 'Computer Ethics Policy' and have all users sign it and/or make it part of the employee handbook. Unless, of cource, the computers are publicly accessible (kiosk). Anyway, the legal notice will not prevent somebody from accessing the computer remotely, in which case the legal notice doesn't apply at all.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 302 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.056 seconds in which 0.022 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org