#88459 - 2002-10-06 12:34 AM
Kixforms - Version 2.1 (Build 34) Released
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
Like to announce that Kixforms 2.1 (Build 34) is now available for download from the Kixforms web site:
Kixforms web site
This latest version sports a couple of new major features:
ListViews - Provides support for multi-column lists of data. Similar to spreadsheets, list views allow you to define columns, add rows of multi-column data, and allows the user to automatically sort the list by clicking the column headers.
Collections - This new feature allows one to quickly and easily enumerate items in a collection (using the Kixtart FOR-EACH-IN-NEXT syntax). Currently implemented for list views - allows one to enumerate columns, items and selections (in multi-selection mode).
Think its fair to say that these two features alone will dramatically change the Kixforms landscape forever. ListViews will transform the look-and-feel of Kixtart forms scripts. The scripts that we will see developed over the next little while (should) be almost totally indistinquisable from "real-live" windows applications.
And similarly, Collections will change forever the we code kixtart forms. Apart from being easier to code and to understand - collections provide a performance boost when enumerating large quantities of COM objects. I personally feel that collections make the code "flow" much better ... they are intutive and a joy to work with.
Anyway - enough rambling - the first thing, after downloading and installing the latest version, is to run the DEMO application called PHONE.KIX. This script is available in the distribution package as well downloadable from the Kixforms web site script archive. This application excerises just about every new feature available in the current release.
Second thing - wrote a white paper called "Kixforms -The ListView Object" and that is also included in the distribution. Its a quick little overview of the list view object ... talks about most of the interface and about a couple of the enumerations. But the best place to learn about how to use this new control is by reviewing the PHONE.KIX demo application.
Heres the summary of changes and fixes for this release. As usual - will be posting follow up scripts that utilize the new features. And as always - feel free to post any new scripts, comments or suggestions into this space.
code:
- ProgressBar control supports the following new properties: STYLE = n 0 = Blocked (Chunky) style bar 1 = Solid (Smooth) style bar ORIENTATION = n 0 = Horizontal progress bar 1 = Vertical progress bar * Note - a ProgressBar (or Slider or Spinner) has a feature called auto-orientation. For example, if the width of a horiontal progressbar is greater than its height, the progressbar will be automatically "flipped" into the vertical position when the orientation property is changed. This behavior was by design. To avoid this behavior. Set the orientation BEFORE setting the width or height, or reset it afterwards. - Added COMBOBOX STYLE property. ComboBoxes can now be set to one of the following three styles: STYLE = n 0 = DropDown The text portion is editable. The user must click the arrow button to display the list portion. 1 = DropDownList The user cannot directly edit the text portion. The user must click the arrow button to display the list portion. 2 = Simple The text portion is editable. The list portion is always visible. - Added COLORNAME support for BackColor and ForeColor properties. For example, to set the background color of a Form to blue, one can now say this: BACKCOLOR = "SkyBlue" FORECOLOR = "IndianRed" Most standard color names are supported. There are tons of colorname charts on the web for example: http://www.keller.com/rgb.html - Added LISTVIEW control. See white paper on usage. - Enabled rapid clicking of CommandButtons. Buttons no longer support the OnDoubleClick event. - Fixed setting MousePointer back to 0 & 1 (Default/Arrow). - Fixed OnKeyDown property to work with all all versions of KiXtart. - Added ClientSize property (write-only). Sets the inner width and height of an object. Usefull for correctly scaling the inside dimensions of forms and frames, example: $Form.ClientSize = 640,480 - Added Bounds property (write-only) to all objects. An array that sets the bounding location and dimension (Left, Top, Width, and Height) of an object , example: $Form.Bounds = 10,10,200,300
[ 06. October 2002, 01:54: Message edited by: Shawn ]
|
|
Top
|
|
|
|
#88468 - 2002-10-06 08:10 PM
Re: Kixforms - Version 2.1 (Build 34) Released
|
Lonkero
KiX Master Guru
   
Registered: 2001-06-05
Posts: 22346
Loc: OK
|
code:
$main=createobject("kixtart.form") $main.size=$main.screen.width,$main.screen.height $main.caption="Investor 1.0 Lite" $main.top=0 $main.left=0 $list=$main.listview(,0,50,$main.clientwidth,$main.clientheight) $list.columns.add("Machine",50). for each $program in scan("\\jooel") $list.columns.add($program,50). next $main.visible=1 while $main.visible $=execute($main.doevents) loop
function scan($wksta) dim $,$c,$value $wksta=$wksta+"\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" $=enumkey($wksta,0) $c=0 $scan=$wksta while @error=0 $c=$c+1 $value=readvalue($wksta+"\"+$,"DisplayName") if $value $scan=$scan+chr(10)+$value endif $=enumkey($wksta,$c) loop $scan=split($scan,chr(10)) endfunction
yep, as simple as that...  
_________________________
!download KiXnet
|
|
Top
|
|
|
|
#88469 - 2002-10-06 09:39 PM
Re: Kixforms - Version 2.1 (Build 34) Released
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
Think you've sized your listview a little too large there dude - you set the top of the listview to 50 and the height to form.clientheight - so the bottom of the listview is actually hanging down below the bottom of the form. This might be better:
code:
$list=$main.listview(,0,50,$main.clientwidth-10,$main.clientheight-60)
ps.
See that $object.property[.] silence thingy comes in usefull doesn't it ? Ruud should fix that once and for all ! [ 06. October 2002, 21:40: Message edited by: Shawn ]
|
|
Top
|
|
|
|
#88473 - 2002-10-06 11:22 PM
Re: Kixforms - Version 2.1 (Build 34) Released
|
Shawn
Administrator
   
Registered: 1999-08-13
Posts: 8611
|
yeah - or you can enum it:
code:
for each $column in $list.columns ? "text=" $column.text next
|
|
Top
|
|
|
|
Moderator: Shawn, ShaneEP, Ruud van Velsen, Arend_, Jochen, Radimus, Glenn Barnas, Allen, Mart
|
0 registered
and 837 anonymous users online.
|
|
|