ShawnAdministrator
(KiX Supporter)
2002-10-19 08:13 PM
Kixforms - Version 2.1.1 (Build 35) Released

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 ]


JochenAdministrator
(KiX Supporter)
2002-10-20 12:13 AM
Re: Kixforms - Version 2.1.1 (Build 35) Released

Great !

HeaderStyle works a treat , thanx !

For the Radio buttons: They don't freeze the form anymore but they still toggle (ya know)

By the way, noticed, as it came to draw the cards, that the image missdraw is also (as the Radio buttons) related to child forms [Eek!] Any coincidence ?

cya

J.


Les
(KiX Master)
2002-10-20 12:19 AM
Re: Kixforms - Version 2.1.1 (Build 35) Released

Thanks Shawn!

Will test when I go back to the office. Have you tested with KiX Build 107?

OH! and what...no test script bundled to show off the new features... [Wink]


JochenAdministrator
(KiX Supporter)
2002-10-20 12:27 AM
Re: Kixforms - Version 2.1.1 (Build 35) Released

Sorry, false information !

The missdraw is still there in main form, BUT if i change the source of the bitmap (via the options menu) and assign it to the picture object it is gone (weird workaround though [Big Grin] )

So create an image object assign all properties and then chnage the source (and only the source)...

hope this helps to get closer to it

J.


ShawnAdministrator
(KiX Supporter)
2002-10-20 12:48 AM
Re: Kixforms - Version 2.1.1 (Build 35) Released

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. [Wink]


Les
(KiX Master)
2002-10-20 02:35 AM
Re: Kixforms - Version 2.1.1 (Build 35) Released

Well, must confess that I haven't kept up with KiXForms since build 14. [Embarrassed]

Will have to check out some of the examples posted on www.kixforms.freeuk.com


Anupam Agarwal
(Fresh Scripter)
2002-10-20 04:47 AM
Re: Kixforms - Version 2.1.1 (Build 35) Released

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,


ShawnAdministrator
(KiX Supporter)
2002-10-20 05:30 AM
Re: Kixforms - Version 2.1.1 (Build 35) Released

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 ]


Bonji
(Starting to like KiXtart)
2002-10-21 04:58 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released

This is actually a RFF (Request for Feature) [Smile] . 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


ShawnAdministrator
(KiX Supporter)
2002-10-22 03:54 AM
Re: Kixforms - Version 2.1.1 (Build 35) Released

Hi Ben,

Treeviews ? Great idea - will make a natural companion for the ListView object. TreeViews are "on the radar screen". Will add it to the list. Glad the default button thingy is working nicely.


Kdyer
(KiX Supporter)
2002-10-24 05:38 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released

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


ShawnAdministrator
(KiX Supporter)
2002-10-24 06:21 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released

Kent ... I personally don't have any canned login scripts to share. But I would tend to think more along the lines of what you would like to see - as opposed to trying to convert an existing script ... what kind of thingy did you have in mind ?

Kdyer
(KiX Supporter)
2002-10-24 06:34 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released

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


Chris S.
(MM club member)
2002-10-25 01:40 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released

I was working on doing a KiXforms loginscript example. Give me a bit to get to work, and a bit to finish it up. [Smile]

LonkeroAdministrator
(KiX Master Guru)
2002-10-25 02:03 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released

yeh, and I did one "novel" like example...

chris, going to be still long?
as what kent pointed should be easy.


ShawnAdministrator
(KiX Supporter)
2002-10-25 02:42 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released

hehee - looking forward to seeing that chris - was thinking there are probably three or four different ways to approach this. using either print statements, or labels, or listboxes or textboxes or even listviews ... but i imagine if many COLORS is a requirement, that would narrow it down to prints or labels ... the RichTextBox is coming soon and that will have a big impact as well - kinda like the ListView object had. With RichText, could display the info in a readonly textbox with many different colors in many different font sizes.

-Shawn

[ 25. October 2002, 14:43: Message edited by: Shawn ]


rclarke
(Starting to like KiXtart)
2002-10-25 05:05 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released

Hi Shawn,

Is it possible to add support for the Clear method to the ListView object i.e. ListView.Clear removes all Items from a ListView object, but leaves the Column headings intact.

Rod.

[ 25. October 2002, 17:07: Message edited by: rclarke ]


ShawnAdministrator
(KiX Supporter)
2002-10-25 06:17 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released

Rod,

Yip sure thing. Imagine the flavours of clear might be (?) :

$ListBox.Clear ; Clears the entire control

$ListBox.Items.Clear ; Clears all the items

$ListBox.Columns.Clear ; Clears all the columns

[ 25. October 2002, 18:29: Message edited by: Shawn ]


ShawnAdministrator
(KiX Supporter)
2002-10-25 06:26 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released

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 [Wink]


rclarke
(Starting to like KiXtart)
2002-10-25 07:38 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released

Thanks Shawn, that works perfectly [Big Grin]

ShawnAdministrator
(KiX Supporter)
2002-10-25 08:09 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released

No sweat - that was the easiest change I never had to do ! Anything else you want me to put in there (thats already in there) ? (and un-documented of course) [Wink] [Wink] [Wink]

Seriously Rod, Im actually starting to get caught up on the documentation now ... thought I would give the coding a rest and fully revise the Forms Object Reference guide.


rclarke
(Starting to like KiXtart)
2002-10-25 08:56 PM
Re: Kixforms - Version 2.1.1 (Build 35) Released

The Documentation gets a big thumbs up from me. What with my work being so damn hectic at the moment, I just haven't been able to document as much as I would like on the web site. Although saying that, for the last few days I have been concentrating on developing a pretty big KiXtart/KiXforms script and I have learnt a huge amount by simple trial and error. As soon as you do have anything concrete on the undocumented objects front, send them through and I will post them on the site [Smile]

Rod.

[ 25. October 2002, 20:57: Message edited by: rclarke ]


punkie
(Getting the hang of it)
2002-10-31 09:29 AM
Re: Kixforms - Version 2.1.1 (Build 35) Released

A while ago I requested multi-line support for ToolTip, I don't know if it got added in this version but I would like to see a timer for this one. Like 0 is forever or 5 is 5 seconds.

I love that SuperLocked thing! [Smile]


JochenAdministrator
(KiX Supporter)
2002-10-31 09:33 AM
Re: Kixforms - Version 2.1.1 (Build 35) Released

Punkie,

well , I think it's on the todo list for the next release

Wait for it too [Big Grin]


LonkeroAdministrator
(KiX Master Guru)
2002-10-31 09:34 AM
Re: Kixforms - Version 2.1.1 (Build 35) Released

not added yet.
doc should know if it's in next release.
tooltip for each row in listbox/listview should be there someday too.