Page 1 of 2 12>
Topic Options
#16226 - 2002-01-15 08:25 PM Disable close and min on KixFrm
webbo Offline
Lurker

Registered: 2002-01-15
Posts: 3
we have written a small form that is called from a logon script. The form asks users to click a button for which class they are in and then maps drives accordingly. All works fine. Only problem is the form has the close X and min functions. I have tried changing border style with no joy.

Is it possible to create a form without the X or min, or can they be detected and coded for?

Many thanks

Top
#16227 - 2002-01-16 01:53 PM Re: Disable close and min on KixFrm
Will Hetrick Offline
Hey THIS is FUN

Registered: 2001-10-02
Posts: 320
Loc: Harrisburg, PA USA
Are you also Ross Martin?? This seems like the exact question he asked. Please refer to KixForms to see what transpires!

[ 16 January 2002: Message edited by: Will Hetrick ]

_________________________
You have at least 2 choices. Each choice changes your destiny. Choose wisely!

Top
#16228 - 2002-01-16 02:53 PM Re: Disable close and min on KixFrm
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
webbo - are you using kixforms or kixwinvb ?
Top
#16229 - 2002-01-16 02:55 PM Re: Disable close and min on KixFrm
webbo Offline
Lurker

Registered: 2002-01-15
Posts: 3
Shawn - we are using KixForms
Top
#16230 - 2002-01-16 03:06 PM Re: Disable close and min on KixFrm
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
webbo - these are currently in build 6 - but it's not released yet The syntax is:

$form.minbutton = 0
$form.maxbutton = 0
$form.sysmenu = 0

What do you think of the kixtart form snappins (so far) ? Don't forget, the snappins are in the beta phase and I am looking for feedback and suggestions (im sure Alex is too!) ... especially in regards to the two different styles (strategies) for event handling (polling vs executing) ... have any thoughts on this ?

-Shawn

Top
#16231 - 2002-01-16 03:21 PM Re: Disable close and min on KixFrm
webbo Offline
Lurker

Registered: 2002-01-15
Posts: 3
Shawn,

Very usefull. We are trying to write a script for use in a school, and use the KixForms for class selection, that then sets enviroment variables which work in conjuctions with policies.

Can we have a copy of Version 6 to try these new features pls. I understand its still in beta and take full responsibilty etc...?

Also many thanks for taking the time to respond to my posts.

Top
#16232 - 2002-01-16 03:31 PM Re: Disable close and min on KixFrm
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Kixforms is undergoing alittle plastic surgery right now so that I can include support for much more advanced visual control types ... When the next build is released, I will post it to the COM Scripting forum ...

-Shawn

Top
#16233 - 2002-06-10 07:09 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,

I am looking to use Kixforms to display progress during our logon process currently using an old version of Kix (3.47)(Will need to update!). How ever I am working on the form at the moment and would like to disable any close buttons to stop users from closing the logon box. Is there anyway of doing this in the current kixforms (I may not have the most up to date I think I have build 4)

Thanks very much

Duncan

Top
#16234 - 2002-06-10 08:48 PM Re: Disable close and min on KixFrm
Shawn Administrator Offline
Administrator
*****

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

To be honest, I didn't really build Kixforms with login scripts in mind. To that end, I did put in support for turning off the MINBUTTON and MAXBUTTON in Build 14. I never did put in any support for the progressbar control (which wouldn't be too tough if you would like to pursue) ...

The reason I didn't support turing off the sysmenu is because during a forms session, without a close button - there really is no user friendly way to close the task. So I left it out.

Here's the latest Kixforms:

Kixforms Build 14

Other packages that support progressbars are KixGUI (available here), and one of my favorites - loginscreen.exe - which doesn't support turning-off sysmenu either (i think). There is even a non-COM progress dialog program kicking around on the board here, that passes state information through the registry. If your interested, will try and digup.

Now, I can modify Kixforms to support disabling the closebutton if you like. And plop-in the proggybar too - if thats the route you want to take. Im also thinking about porting loginscreen.exe to C and making it more KiXtart friendly - if theres enough interest - I really like that utility ... whew ... too many gooey options man.

-Shawn

Top
#16235 - 2002-06-10 08:57 PM Re: Disable close and min on KixFrm
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
p.s.

Kixforms may have changed a bit since build 4 - some of the method and property names may have changed - build 4 was before a transition period (I think) ... if you have problems, please advise !!!

Top
#16236 - 2002-06-11 12:12 AM Re: Disable close and min on KixFrm
Alex.H Offline
Seasoned Scripter

Registered: 2001-04-10
Posts: 406
Loc: France
Shawn,
Due to a 9x bug i ran into, some 9x dll versions don't really like the close cross to be disable with min and/or max enable, so the 3 are removed with the sys menu when you disable the close cross on kixgui
_________________________
? getobject(Kixtart.org.Signature)

Top
#16237 - 2002-06-11 03:03 AM Re: Disable close and min on KixFrm
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Alex, I know what you mean my friend. I was trying once to get rid of just the sysmenu, and leave the closebutton there - make it like a proper dialog box - but no worky for me. Plus, there doesn't seem to be a way to make either the min or max button disappear seperately - you disable one - it goes grey, then if you disable the other one - they both disappear ... if you know any tricks, im all ears ...

p.s. Great to see you back !

[ 11 June 2002, 03:19: Message edited by: Shawn ]

Top
#16238 - 2002-06-11 10:16 AM Re: Disable close and min on KixFrm
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
So if i'm reading this right there' no Progressbar in KiXforms? Maybe i'm using KiXforms wrong, i'm trying to create some sort of a status screen users cab see while they logon (lots of things happen there, sometimes it takes a while to complete).
_________________________
Kind regards,

Top
#16239 - 2002-06-12 12:06 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,

Thanks for the latest kixforms, I will have a play!

The option for turning the sysmenu off would be great, I agree that this would make it unfriendly for the user to close the window (Thats what I'm trying to do, I don't want users to kill the logon script until it has finished).

While I don't use a progress bar at the moment I think it would be a great addition to kixforms to have a progress bar (I would then have to think about rewriting some of our other scripts with kix!).

For you information this is the form so far (No backend code yet!) The labels will be painted when each function has finished (Or failed) in the final version.

Break on

$Form = CreateObject("Kixtart.Form")

$Form.Caption = "Login Script"
$Form.ClientHeight = 3570
$Form.ClientLeft = 45
$Form.ClientTop = 330
$Form.ClientWidth = 6090
$Form.ScaleHeight = 300
$Form.ScaleWidth = 410


$Frm = $form.frame
$frm.Left = 6
$frm.Top = 30
$frm.Width = 399
$frm.height = 174
$frm.Caption = ""

$lblHeader = $Form.Label
$lblHeader.Alignment = 2
$lblHeader.Caption = "Logon Script v3.0.0"
$lblHeader.FontName = "MS Sans Serif"
$lblHeader.FontBold = 1
$lblHeader.FontSize = 13.5
$lblHeader.Height = 20
$lblHeader.Left = 0
$lblHeader.TabIndex = 16
$lblHeader.Top = 10
$lblHeader.Width = 400


$lblSMS = $Form.Label
$lblSMS.FontBold = 1
$lblSMS.BackColor = $Form.RGB(255,255,255)
$lblSMS.Height = 20
$lblSMS.Left = 10
$lblSMS.TabIndex = 15
$lblSMS.Top = 180
$lblSMS.Width = 250


$lblSMSANS = $Form.Label
$lblSMSANS.BackColor = $Form.RGB(255,255,255)
;$lblSMSANS.Caption = "Label1"
$lblSMSANS.Height = 20
$lblSMSANS.Left = 250
$lblSMSANS.TabIndex = 14
$lblSMSANS.Top = 180
$lblSMSANS.Width = 150


$lblUpgrade = $Form.Label
$lblUpgrade.FontBold = 1
$lblUpgrade.BackColor = $Form.RGB(255,255,255)

$lblUpgrade.Height = 20
$lblUpgrade.Left = 10
$lblUpgrade.TabIndex = 13
$lblUpgrade.Top = 160
$lblUpgrade.Width = 250


$lblUpgradeANS = $Form.Label
$lblUpgradeANS.BackColor = $Form.RGB(255,255,255)
;$lblUpgradeANS.Caption = "Label1"
$lblUpgradeANS.Height = 20
$lblUpgradeANS.Left = 250
$lblUpgradeANS.TabIndex = 12
$lblUpgradeANS.Top = 160
$lblUpgradeANS.Width = 150


$lblSophos = $Form.Label
$lblSophos.FontBold = 1
$lblSophos.BackColor = $Form.RGB(255,255,255)
$lblSophos.Height = 20
$lblSophos.Left = 10
$lblSophos.TabIndex = 11
$lblSophos.Top = 140
$lblSophos.Width = 250


$lblSophosANS = $Form.Label
$lblSophosANS.BackColor = $Form.RGB(255,255,255)
;$lblSophosANS.Caption = ""
$lblSophosANS.Height = 20
$lblSophosANS.Left = 250
$lblSophosANS.TabIndex = 10
$lblSophosANS.Top = 140
$lblSophosANS.Width = 150

$lblWorkgroup = $Form.Label
$lblWorkgroup.FontBold = 1
$lblWorkgroup.BackColor = $Form.RGB(255,255,255)
$lblWorkgroup.Height = 20
$lblWorkgroup.Left = 10
$lblWorkgroup.TabIndex = 9
$lblWorkgroup.Top = 120
$lblWorkgroup.Width = 250

$lblWorkgroupANS = $Form.Label
$lblWorkgroupANS.BackColor = $Form.RGB(255,255,255)
$lblWorkgroupANS.Caption = ""
$lblWorkgroupANS.Height = 20
$lblWorkgroupANS.Left = 250
$lblWorkgroupANS.TabIndex = 8
$lblWorkgroupANS.Top = 120
$lblWorkgroupANS.Width = 150

$lblDrives = $Form.Label
$lblDrives.FontBold = 1
$lblDrives.BackColor = $Form.RGB(255,255,255)
$lblDrives.Height = 20
$lblDrives.Left = 10
$lblDrives.TabIndex = 7
$lblDrives.Top = 100
$lblDrives.Width = 250

$lblDrivesANS = $Form.Label
$lblDrivesANS.BackColor = $Form.RGB(255,255,255)
$lblDrivesANS.Height = 20
$lblDrivesANS.Left = 250
$lblDrivesANS.TabIndex = 6
$lblDrivesANS.Top = 100
$lblDrivesANS.Width = 150

$lblsite_Work = $Form.Label
$lblsite_work.FontBold = 1
$lblsite_Work.BackColor = $Form.RGB(255,255,255)
$lblsite_Work.Height = 20
$lblsite_Work.Left = 10
$lblsite_Work.TabIndex = 5
$lblsite_Work.Top = 80
$lblsite_Work.Width = 250

$lblsite_WorkANS = $Form.Label
$lblsite_WorkANS.BackColor = $Form.RGB(255,255,255)
$lblsite_WorkANS.Height = 20
$lblsite_WorkANS.Left = 250
$lblsite_WorkANS.TabIndex = 4
$lblsite_WorkANS.Top = 80
$lblsite_WorkANS.Width = 150

$lblMail = $Form.Label
$lblMail.FontBold = 1
$lblMail.BackColor = $Form.RGB(255,255,255)

$lblMail.Height = 20
$lblMail.Left = 10
$lblMail.TabIndex = 3
$lblMail.Top = 60
$lblMail.Width = 250

$lblMailANS = $Form.Label
$lblMailANS.BackColor = $Form.RGB(255,255,255)
$lblMailANS.Height = 20
$lblMailANS.Left = 250
$lblMailANS.TabIndex = 2
$lblMailANS.Top = 60
$lblMailANS.Width = 150

$lblOSans = $Form.Label
$lblOSans.BackColor = $Form.RGB(255,255,255)
$lblOSans.Height = 20
$lblOSans.Left = 250
$lblOSans.TabIndex = 1
$lblOSans.Top = 40
$lblOSans.Width = 150

$lblOS = $Form.Label
$lblOS.FontBold = 1
$lblOS.BackColor = $Form.RGB(255,255,255)

$lblOS.Height = 20
$lblOS.Left = 10
$lblOS.TabIndex = 0
$lblOS.Top = 40
$lblOS.Width = 250

$Form.Show

$lblOS.Caption = " Windows Version"
$lblsite_Work.Caption = " Locating Site and Workgroup..."
$lblMail.Caption = " Checking/Creatings Mail Profile ..."
$lblDrives.Caption = " Mapping standard Drives..."
$lblWorkgroup.Caption = " Checking Workgroup scripts..."
$lblSophos.Caption = " Checking for Sophos scripts..."
$lblUpgrade.Caption = " Checking for Upgrade scripts..."
$lblSMS.Caption = " Running SMS scripts..."

$lblsite_WorkANS.Caption = "No Home"
$lblMailANS.Caption = "Error, no PRF"
$lblUpgradeANS.caption = "Running Lotus Notes"
$lblSophosANS.caption = "Installed"
$lblWorkgroupANS.caption = "Running"
$lblDrivesANS.caption = "Mapping L M P"
$lblOSans.caption = "Windows XP Professional"

While $Form.Visible
$=Execute($Form.DoEvents)
Loop

Exit 1

Thank you very much for your help on this. I will have a look at the other packages that you have mentioned, I'm always on the look out for something new (Or new to me anyway!)

Duncan

Top
#16240 - 2002-06-12 12:12 AM Re: Disable close and min on KixFrm
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
schuliebug,
you can make your own.
as sample and reference you can keep the one made for kixgui and found from udf-library http://81.17.37.55/board/ultimatebb.php?ubb=get_topic;f=12;t=000173

it will not work directly with kixforms, but you can pretty easily see from it what's to be done.

well, offcourse that's just one design, so if get done differently, do it.

does this get you started or do you want me to code it for you? [Smile]

cheers,
_________________________
!

download KiXnet

Top
#16241 - 2002-06-12 12:15 AM Re: Disable close and min on KixFrm
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
mmm...
I definitely should press F5 more often.

dunc, seems you have got the famous KixForms-fewer!
_________________________
!

download KiXnet

Top
#16242 - 2002-06-11 01:32 PM Re: Disable close and min on KixFrm
Schuliebug Offline
Hey THIS is FUN
*****

Registered: 2002-01-18
Posts: 379
Loc: Netherlands
Lonkero,

I had one, but it was written in KixGUI (like the link you've sent). I was looking for a progressbar in KixForms.. Can't find one [Frown]
_________________________
Kind regards,

Top
#16243 - 2002-06-11 02:03 PM Re: Disable close and min on KixFrm
Kdyer Offline
KiX Supporter
*****

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

For a progress bar, have a look at my response to this thread.

HTH,

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

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

Registered: 1999-08-13
Posts: 8611
I've started work on the progressbar class for Kixforms, should be ready by this weekend. Im also going to put in the scrollbar class.
Top
#16245 - 2002-06-11 02:14 PM Re: Disable close and min on KixFrm
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
kdyer, yes...

but the point is to use the bar with kixforms.
and it's easiest to implement it direcly to form-code.
schulie, after I get finished with golf-code minimizing I'll make you a nice udf.

cheers,
_________________________
!

download KiXnet

Top
Page 1 of 2 12>


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

Who's Online
0 registered and 1662 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.224 seconds in which 0.17 seconds were spent on a total of 11 queries. Zlib compression enabled.

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