Page 1 of 2 12>
Topic Options
#88779 - 2002-10-19 08:13 PM Kixforms - Version 2.1.1 (Build 35) Released
Shawn Administrator Offline
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
#88780 - 2002-10-20 12:13 AM Re: Kixforms - Version 2.1.1 (Build 35) Released
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
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.
_________________________



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

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
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]
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#88782 - 2002-10-20 12:27 AM Re: Kixforms - Version 2.1.1 (Build 35) Released
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
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.
_________________________



Top
#88783 - 2002-10-20 12:48 AM Re: Kixforms - Version 2.1.1 (Build 35) Released
Shawn Administrator Offline
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. [Wink]

Top
#88784 - 2002-10-20 02:35 AM Re: Kixforms - Version 2.1.1 (Build 35) Released
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
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
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#88785 - 2002-10-20 04:47 AM Re: Kixforms - Version 2.1.1 (Build 35) Released
Anupam Agarwal Offline
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 Offline
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 Offline
Starting to like KiXtart

Registered: 2001-09-28
Posts: 169
Loc: Virginia
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

Top
#88788 - 2002-10-22 03:54 AM Re: Kixforms - Version 2.1.1 (Build 35) Released
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
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.

Top
#88789 - 2002-10-24 05:38 PM Re: Kixforms - Version 2.1.1 (Build 35) Released
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#88790 - 2002-10-24 06:21 PM Re: Kixforms - Version 2.1.1 (Build 35) Released
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
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 ?
Top
#88791 - 2002-10-24 06:34 PM Re: Kixforms - Version 2.1.1 (Build 35) Released
Kdyer Offline
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
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#88792 - 2002-10-25 01:40 PM Re: Kixforms - Version 2.1.1 (Build 35) Released
Chris S. Offline
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. [Smile]
Top
#88793 - 2002-10-25 02:03 PM Re: Kixforms - Version 2.1.1 (Build 35) Released
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yeh, and I did one "novel" like example...

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

download KiXnet

Top
#88794 - 2002-10-25 02:42 PM Re: Kixforms - Version 2.1.1 (Build 35) Released
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
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 ]

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

Registered: 2001-06-08
Posts: 178
Loc: Oxfordshire, United Kingdom.
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 ]

Top
#88796 - 2002-10-25 06:17 PM Re: Kixforms - Version 2.1.1 (Build 35) Released
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
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 ]

Top
#88797 - 2002-10-25 06:26 PM Re: Kixforms - Version 2.1.1 (Build 35) Released
Shawn Administrator Offline
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 [Wink]

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

Registered: 2001-06-08
Posts: 178
Loc: Oxfordshire, United Kingdom.
Thanks Shawn, that works perfectly [Big Grin]
Top
Page 1 of 2 12>


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

Who's Online
0 registered and 370 anonymous users online.
Newest Members
Timothy, Jojo67, MaikSimon, kvn317, kixtarts2025
17874 Registered Users

Generated in 0.093 seconds in which 0.024 seconds were spent on a total of 13 queries. Zlib compression enabled.

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