#88779 - 2002-10-19 08:13 PM
Kixforms - Version 2.1.1 (Build 35) Released
|
Shawn
Administrator
Registered: 1999-08-13
Posts: 8611
|
Pleased to annouce the release of Kixforms Verison 2.1.1 (Build 35) available for download from Kixforms web site:
Kixforms Dowload Page
Heres the liner notes for this build:
ListView Object
Added HeaderStyle property to ListView object (write-only). Settings are as follows:
- 0 = Header hidden
- 1 = Header visible, but not clickable
- 2 = Header visible, and clickable
Added Insert method to ListView Item Collection. Usage is as follows: $Item = $ListView.Items.Insert(index,text) This creates a new item and inserts it into the collection at the specified index. To add an item to the beginning of this list, specify this: $Item = $ListView.Items.Insert(0,"John Doe") To insert an item to the the end of list, specify this: $Item = $ListView.Items.Insert($ListView.Items.Count,"John Doe") The previous example performs the same action as Items.Add() TextBox Object Added SuperLocked setting to TextBox Locked property. The new settings for locked are as follows:
- 0 = Unlocked
- 1 = Locked (user can copy & navigate only)
- 2 = SuperLocked (user can navigate only)
InputBox Method Changed InputBox to initially set focus to the text box on startup and to pre-select (highlight) the default string. Feature Changes & Improvements
- Much improved sorting of ListView control via ColumnHeader click.
- The Enabled property for all objects now supports True/False strings.
- Changed the handling of the Default button and TextBoxes on the same form.
Bug Fixes- Fixed filter problem with FileOpenDialog and FileSaveDialog.
- Fixed ListView FullRowSelect to respond to boolean True/False.
- Fixed various memory leaks when returning objects from ListView.
- Fixed RadioButtons on forms that have subforms with child controls.
As always, please feel free to add any comment, questions or feedback into this thread. [ 19. October 2002, 20:27: Message edited by: Shawn ]
|
Top
|
|
|
|
#88783 - 2002-10-20 12:48 AM
Re: Kixforms - Version 2.1.1 (Build 35) Released
|
Shawn
Administrator
Registered: 1999-08-13
Posts: 8611
|
Les, there isn't really anything script-worthy in this release, mostly just bug fixes and cleanup ... the only thing maybe would be the Locked property SuperLocked setting, but thats just a tweak to existing TextBoxes anyways.
j - going to start looking at those graphics problem now, for the next release. see your msn - lets chat.
|
Top
|
|
|
|
#88785 - 2002-10-20 04:47 AM
Re: Kixforms - Version 2.1.1 (Build 35) Released
|
Anupam Agarwal
Fresh Scripter
Registered: 2002-09-25
Posts: 17
Loc: Austin, TX
|
Great work Shawn. I checked out your web site and also downloaded the KixForms dll. Unfortunately, I can't seem to locate any examples or documentation on Progress Bar. Can you please assist. All I want is to provide a GUI indication to the user that the script is running and I will pop up a messagebox at the end to let them know it is done.
Thanks,
|
Top
|
|
|
|
#88786 - 2002-10-20 05:30 AM
Re: Kixforms - Version 2.1.1 (Build 35) Released
|
Shawn
Administrator
Registered: 1999-08-13
Posts: 8611
|
Hi Anupam, welcome to the board.
Here's a script I just happened to have kixing around. Take a peek at the section for building a progressbar ... here it is:
code:
$PBar = $Form.ProgressBar $PBar.Size = 370,25 $PBar.Location = 10,$Msg.Bottom + 5 $PBar.Min = 0 $PBar.Max = 100 $PBar.Value = 0
Basically, you create a progressbar with the $form.progressbar method (constructor) - that returns a handle to a progressbar object ($PBar) ... then we set its Size and Location on the form, and the Min(imum) value and the Max(imum) value and the current Value ... then later on in the script, simply change the value of Value to move the progressbar along ... heres the entire script:
INSTALL.KIX
code:
Break On $Form = CreateObject("Kixtart.Form") $Form.FontSize = 12 $Form.Size = 400,390 $Form.PrintXY(10,10,"Select a product and press enter:") $ListBox = $Form.ListBox $ListBox.Size = 200,205 $ListBox.Location = 10,50 $ListBox.FontName = Verdana $ListBox.OnKeyDown = "ListBox_KeyDown" $ListBox.OnDoubleClick = "ListBox_DoubleClick" For $i = 0 to 100 $ListBox.AddItem("Product #$i") Next $InstallButton = $Form.Button $InstallButton.Text = "Install" $InstallButton.Left = $ListBox.Right + 30 $InstallButton.Top = $ListBox.Top $InstallButton.OnClick = "InstallButton_Click()" $ExitButton = $Form.Button $ExitButton.Text = "Exit" $ExitButton.Left = $ListBox.Right + 30 $ExitButton.Top = $InstallButton.Bottom + 10 $ExitButton.OnClick = "ExitButton_Click()" $Msg = $Form.Label $Msg.Size = 370,25 $Msg.Location = 10,$ListBox.Bottom + 25 $Msg.Text = "Ready ..." $PBar = $Form.ProgressBar $PBar.Size = 370,25 $PBar.Location = 10,$Msg.Bottom + 5 $PBar.Min = 0 $PBar.Max = 100 $PBar.Value = 0 $Form.Center $Form.Show $ListBox.SetFocus $ListBox.ListIndex = 0 While $Form.Visible $=Execute($Form.DoEvents) Loop Exit 1 Function ListBox_KeyDown If $ListBox.KeyCode = 13 ; RETURN Install($ListBox.Value) $ListBox.SetFocus EndIf EndFunction Function InstallButton_Click() Install($ListBox.Value) EndFunction Function ListBox_DoubleClick() Install($ListBox.Value) EndFunction Function Install($Product) If $Product $Msg.Text = "Installing " + $Product For $i = 0 to $PBar.Max $PBar.Value = $i Sleep (0.025) Next $Msg.Text = "Ready ..." $PBar.Value = 0 EndIf EndFunction Function ExitButton_Click() $Form.Hide EndFunction
Please feel free to post any questions or concerns you may have ...
-Shawn [ 20. October 2002, 05:31: Message edited by: Shawn ]
|
Top
|
|
|
|
#88787 - 2002-10-21 04:58 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released
|
Bonji
Starting to like KiXtart
Registered: 2001-09-28
Posts: 169
Loc: Virginia
|
This is actually a RFF (Request for Feature) . I'm not sure if this is in the works, but an object that contains a tree view would be great. Very similar to Windows Explorer, but the structure and data is controlled progamatically. I hope I explained this well enough.
Also, the default button works wonderfully now!! Thanks again for such a great tool.
-Ben
|
Top
|
|
|
|
#88789 - 2002-10-24 05:38 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Shawn,
I am interested in getting this implemented in our enterprise..
Do you or somebody out there have a form defined for showing status of the script and login sequence?
I thought about taking about the example script for the User Management..
Thanks!
Kent
|
Top
|
|
|
|
#88791 - 2002-10-24 06:34 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released
|
Kdyer
KiX Supporter
Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
|
Shawn..
Here is Kind of what I am looking for..
Suggestion: In the scroll downs in Kixforms.. Are you going to offer Scroll mouse support?
Thanks,
Kent
|
Top
|
|
|
|
#88792 - 2002-10-25 01:40 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released
|
Chris S.
MM club member
Registered: 2002-03-18
Posts: 2368
Loc: Earth
|
I was working on doing a KiXforms loginscript example. Give me a bit to get to work, and a bit to finish it up.
|
Top
|
|
|
|
#88797 - 2002-10-25 06:26 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released
|
Shawn
Administrator
Registered: 1999-08-13
Posts: 8611
|
Actually Rod, might want to give this statement a try right now:
$ListView.Items.Clear
I was working on this just prior to releasing build 35
|
Top
|
|
|
|
#88798 - 2002-10-25 07:38 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released
|
rclarke
Starting to like KiXtart
Registered: 2001-06-08
Posts: 178
Loc: Oxfordshire, United Kingdom.
|
Thanks Shawn, that works perfectly
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
1 registered
(Allen)
and 444 anonymous users online.
|
|
|