Page 2 of 2 <12
Topic Options
#16246 - 2002-06-11 02:19 PM Re: Disable close and min on KixFrm
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Lonkero,

I agree that it may not be completely what is needed. However, it may provide insight in how to do this in Kixforms..

L8r,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#16247 - 2002-06-12 02:41 PM Re: Disable close and min on KixFrm
Rocco Capra Offline
Hey THIS is FUN
*****

Registered: 2002-04-01
Posts: 380
Loc: Mansfield Ohio
I am using Kixwin/KixPop to get some user feedback and it uses HTML. I have figured out how to send a response even if the user click's the [X] in the upper right corner of the form.

If you're interested say so I'll post the code.

Rocco
_________________________
I Love this board!! -------------------- My DEV PC is running KIX 4.22 WINXP Pro

Top
#16248 - 2002-06-12 02:45 PM Re: Disable close and min on KixFrm
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
SO !

{edit}

Rocco - are you having trouble posting the HTML ? This BBS can be very HTML non-friendly !

-Shawn

[ 12 June 2002, 15:10: Message edited by: Shawn ]

Top
#16249 - 2002-06-12 03:16 PM Re: Disable close and min on KixFrm
Alex.H Offline
Seasoned Scripter

Registered: 2001-04-10
Posts: 406
Loc: France
Shawn,
Well, it's possible to have only the close button without the sysmenu : WS_EX_TOOLWINDOW = &H80
The bad part is that the caption bar get a little more thinner, but it's the only way to remove it on a basic window
Also, if you want to remove all 3 button and the sysmenu, remove the WS_SYSMENU style (i was almost sure you knew about this one, but now i am [Big Grin] )

For having only the min or max button without the other, i never manage to get it working correctly, plus the fact that some dll versions don't really like this state and ran into a bsod just to let you know about it

After the progressbar, you only need the explorer copy/move/delete, and the common dialog open/save and no more need of kixgui [Wink]
_________________________
? getobject(Kixtart.org.Signature)

Top
#16250 - 2002-06-12 03:16 PM Re: Disable close and min on KixFrm
Rocco Capra Offline
Hey THIS is FUN
*****

Registered: 2002-04-01
Posts: 380
Loc: Mansfield Ohio
Sorry for the delay, I wanted to clean up the code a little.

Rocco

Ok here we go...
code:
;==============================================================================
;Start KiXtart Script that calls kixwin.exe...
;==============================================================================
;==============================================================================
;---[ Testing Policy Script ]--------------------------------------------------
;==============================================================================
:POLICY
IF((@USERID = roccotest)OR(@USERID = rocadmin))
IF EXIST("%WINDIR%\policy") = 0
MD "%WINDIR%\policy"
ENDIF
IF EXIST("%WINDIR%\policy\@USERID") = 0
MD "%WINDIR%\policy\@USERID"
ENDIF
IF NOT EXIST("%WINDIR%\policy\@USERID\policy.txt")
? "[ Running Policy Script ]"
COPY @STARTDIR + "\_auxfiles\policy\policy.*" "%WINDIR%\policy\"
COPY @STARTDIR + "\_auxfiles\policy\kixwin.exe" "%WINDIR%\policy\"
$OUTPUT = "\\MANFP1NT\Public\IT\_RoccoC\temp\@USERID.@WKSTA.txt"
;==[ SHELL Pauses the script till the user responds ]==
SHELL '%comspec% /c %WINDIR%\policy\kixwin.exe file://%WINDIR%\policy\policy.html "@USERID;@WKSTA;@DATE" "dialogWidth:650px;dialogHeight:400px;help:no;scroll:no" > "$OUTPUT"'
IF @ERROR = 0
$RC = Open(2,"%WINDIR%\policy\@USERID\policy.txt",5)
$RC = WriteLine(2,"[ Policy Script Executed ]")
$RC = Close(2)
ENDIF
ENDIF
ENDIF
;==============================================================================
;==============================================================================
;End KiXtart Script that calls kixwin.exe...
;==============================================================================

;==============================================================================
;Start HTML Code...
;==============================================================================

<!--STYLE="WIDTH:500;HEIGHT:500;CENTER:YES"-->
<html>

<head>
<title>Company Internet and Software Use Policy</title>
</head>
<body onLoad="loadit()" bgcolor="#CCCCCC" text="#000000" marginheight=0 marginwidth=0 topmargin=10 leftmargin=10 rightmargin=10>
<div align="CENTER">
<table width="98%" border="1" bgcolor="#DDDDDD" bordercolor="#999999" cellspacing="0" cellpadding="2">
<tr>
<td><font size="-1">Please read and respond to the Internet and Software Use Policy. All resopnses are logged. Closing the window by clicking the [X] will result with a response of 'Decline'.
</font></td>
</tr>
</table>
<!--
_________________________
I Love this board!! -------------------- My DEV PC is running KIX 4.22 WINXP Pro

Top
#16251 - 2002-06-12 03:26 PM Re: Disable close and min on KixFrm
Rocco Capra Offline
Hey THIS is FUN
*****

Registered: 2002-04-01
Posts: 380
Loc: Mansfield Ohio
Uh, goffy boad won't let me edit my last post. Oh well.

A note:
If you notice I send the response back as a comma seperated text file.
This can be imported in to a XLS file for sorting and reporting. [Big Grin]

Rocco

{EDIT}
Um, is it me, or did my 'script' post get truncated?!

[ 12 June 2002, 15:32: Message edited by: Rocco Capra ]
_________________________
I Love this board!! -------------------- My DEV PC is running KIX 4.22 WINXP Pro

Top
#16252 - 2002-06-12 05:47 PM Re: Disable close and min on KixFrm
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
yip, think it got truncated. I've had numerous headaches posting kixpop examples ... ever since this BBS was HTML enabled [Frown]

Just for the uninitiated - kixpop.exe is a non-COM commandline utility that can "present" and "interact" (somewhat) with user written HTML files. Under the covers, it's basically a container program for the Internet Explorer WebBrowser2 object - which is basically what IEXPLORE.EXE really is, just without all the fancy menus and toolbars (one of the reasons why iexplore.exe is so small - under 100K) [Wink]

From a coding standpoint, Kixpop leverages the same "technology" that those browser-based POPUP windows use - the Internet Explorer Dialog Object. Input strings can be "passed" to the dialog object via the commandline, along with other things like "ambience" settings (width,height,windows adornments). Using HTML scripting, one "parses-out" the passed parameters and can show them to the user using DHTML.

Kixpop then waits for the dialog to be closed. That can happen when the user clicks a user-defined button, or, if the user closes the dialog box using the X button. Using HTML scripting, the returned data is then "packaged" and "sent" back to Kixpop - which in turn, "pipes" it out to the DOS console. This can be redirected into a file for later parsing by the Kixtart script.

Rocco, if you might, can you email me your script and HTML ? WOuld love to have a lookie.

Top
#16253 - 2002-06-12 05:54 PM Re: Disable close and min on KixFrm
Rocco Capra Offline
Hey THIS is FUN
*****

Registered: 2002-04-01
Posts: 380
Loc: Mansfield Ohio
Well, here we go again...

code:
;==============================================================================
;Start KiXtart Script that calls kixwin.exe...
;==============================================================================
;==============================================================================
;---[ Testing Policy Script ]--------------------------------------------------
;==============================================================================
:POLICY
IF((@USERID = roccotest)OR(@USERID = rocadmin))
IF EXIST("%WINDIR%\policy") = 0
MD "%WINDIR%\policy"
ENDIF
IF EXIST("%WINDIR%\policy\@USERID") = 0
MD "%WINDIR%\policy\@USERID"
ENDIF
IF NOT EXIST("%WINDIR%\policy\@USERID\policy.txt")
? "[ Running Policy Script ]"
COPY @STARTDIR + "\_auxfiles\policy\policy.*" "%WINDIR%\policy\"
COPY @STARTDIR + "\_auxfiles\policy\kixwin.exe" "%WINDIR%\policy\"
$OUTPUT = "\\MANFP1NT\Public\IT\_RoccoC\temp\@USERID.@WKSTA.txt"
;==[ SHELL Pauses the script till the user responds ]==
SHELL '%comspec% /c %WINDIR%\policy\kixwin.exe file://%WINDIR%\policy\policy.html "@USERID;@WKSTA;@DATE" "dialogWidth:650px;dialogHeight:400px;help:no;scroll:no" > "$OUTPUT"'
IF @ERROR = 0
$RC = Open(2,"%WINDIR%\policy\@USERID\policy.txt",5)
$RC = WriteLine(2,"[ Policy Script Executed ]")
$RC = Close(2)
ENDIF
ENDIF
ENDIF
;==============================================================================
;==============================================================================
;End KiXtart Script that calls kixwin.exe...
;==============================================================================

;==============================================================================
;Start HTML Code...
;==============================================================================

<!--STYLE="WIDTH:500;HEIGHT:500;CENTER:YES"-->
<html>

<head>
<title>Company Internet and Software Use Policy</title>
</head>
<body onLoad="loadit()" bgcolor="#CCCCCC" text="#000000" marginheight=0 marginwidth=0 topmargin=10 leftmargin=10 rightmargin=10>
<div align="CENTER">
<table width="98%" border="1" bgcolor="#DDDDDD" bordercolor="#999999" cellspacing="0" cellpadding="2">
<tr>
<td><font size="-1">Please read and respond to the Internet and Software Use Policy. All resopnses are logged. Closing the window by clicking the [X] will result with a response of 'Decline'.
</font></td>
</tr>
</table>
<!--
_________________________
I Love this board!! -------------------- My DEV PC is running KIX 4.22 WINXP Pro

Top
#16254 - 2002-06-12 05:56 PM Re: Disable close and min on KixFrm
Rocco Capra Offline
Hey THIS is FUN
*****

Registered: 2002-04-01
Posts: 380
Loc: Mansfield Ohio
Sorry, I wont try and post that anymore [Big Grin] [Roll Eyes]

Rocco

ps. Shawn, sure.
_________________________
I Love this board!! -------------------- My DEV PC is running KIX 4.22 WINXP Pro

Top
#16255 - 2002-06-12 06:41 PM Re: Disable close and min on KixFrm
Rocco Capra Offline
Hey THIS is FUN
*****

Registered: 2002-04-01
Posts: 380
Loc: Mansfield Ohio
Shawn, sorry for the delay...

Let me know if the download link does not work.

Click Me --> [Big Grin]

Rocco
_________________________
I Love this board!! -------------------- My DEV PC is running KIX 4.22 WINXP Pro

Top
#16256 - 2002-07-22 05:23 PM Re: Disable close and min on KixFrm
Dunc Offline
Getting the hang of it

Registered: 2002-05-25
Posts: 54
Loc: Guildford England
Shawn,

Have you managed to include the disable sysmenu (Close Button) in your latest kixforms?

Thanks

Duncan

Top
#16257 - 2002-07-22 05:37 PM Re: Disable close and min on KixFrm
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Duncan,

I included the SYSMENU property in the next version (2.0) but didn't go back and put it into the old build 22 ... will put it in tonight and post asap ...

-Shawn

Top
#16258 - 2002-07-23 11:42 AM Re: Disable close and min on KixFrm
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Duncan,

Just uploaded a new version of Kixforms with the SYSMENU property :

$Form.SysMenu = 0

Kixforms Build 23

-Shawn

Top
#16259 - 2002-07-24 12:19 AM Re: Disable close and min on KixFrm
Dunc Offline
Getting the hang of it

Registered: 2002-05-25
Posts: 54
Loc: Guildford England
Shawn,

Thankyou very much. I will go away and play now!

Duncan

Top
Page 2 of 2 <12


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

Who's Online
1 registered (Allen) and 1198 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.079 seconds in which 0.04 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