Page 1 of 3 123>
Topic Options
#88459 - 2002-10-06 12:34 AM Kixforms - Version 2.1 (Build 34) Released
Shawn Administrator Offline
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
#88460 - 2002-10-06 12:59 AM Re: Kixforms - Version 2.1 (Build 34) Released
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
nice... some parts included in parser and this is surely sweet!
 
_________________________
!

download KiXnet

Top
#88461 - 2002-10-06 02:08 AM Re: Kixforms - Version 2.1 (Build 34) Released
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Just as an FYI .. there will be a 2.1.1 issued very shortly, maybe even tomorrow night if possible. The column sorting feature in list view needs a tweak, plus I have a resolution for the DEFAULT BUTTON/TEXTBOX problem ... so stay tuned on that one. Unfortunately, I didn't get time to complete the multi-column tooltip thingy ... but that is in the works too - probably in 2.1.2 timeframe. And of course, will be starting on support for RichEdit control, which should be a real hoot !
Top
#88462 - 2002-10-06 01:57 PM Re: Kixforms - Version 2.1 (Build 34) Released
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
eh...
can one set the all columns at the same time instead of making all those:
$List.Items(0).SubItems(0).Text="me"
$List.Items(0).SubItems(1).Text="you"
$List.Items(0).SubItems(2).Text="us"
lines...

like:
$List.Items(0).SubItems().Text="me","you","us"
 
_________________________
!

download KiXnet

Top
#88463 - 2002-10-06 03:23 PM Re: Kixforms - Version 2.1 (Build 34) Released
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
and then, how I can make the listview add to the first not last item?
 
_________________________
!

download KiXnet

Top
#88464 - 2002-10-06 04:23 PM Re: Kixforms - Version 2.1 (Build 34) Released
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Jooel,

Im working on the Insert method now ... it will work like this:

$list.items.insert(index,item)

in regards to the other thingy - loading subitems from a list - thats a great idea ... how about this syntax:

$list.items(1).subitems = "Name","Address","Drive"

and, this would be handy for loading column headers as well:

$list.columns.count = 3
$list.columns.text = "Name","Address","Phone"

or does this syntax look a little strange ?

-Shawn

Top
#88465 - 2002-10-06 04:27 PM Re: Kixforms - Version 2.1 (Build 34) Released
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
dunno, just getting familiar with this syntax...

anyway, getting those arguments on the same line... maybe directly from array is shortening the script...

I have to make some sort of work around for the insert for now to get my checker out...
_________________________
!

download KiXnet

Top
#88466 - 2002-10-06 06:25 PM Re: Kixforms - Version 2.1 (Build 34) Released
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
next one which makes me really wonder...

I have listview with 25 columns and can't view them as there is no scrollbars!!!

in checker they came automatically but made this little test script with which I can't get the scrollbars there...

magic?
_________________________
!

download KiXnet

Top
#88467 - 2002-10-06 07:24 PM Re: Kixforms - Version 2.1 (Build 34) Released
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Lets see the script dude.
Top
#88468 - 2002-10-06 08:10 PM Re: Kixforms - Version 2.1 (Build 34) Released
Lonkero Administrator Offline
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 Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Think you've sized your listview a little too large there dude [Wink] - 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
#88470 - 2002-10-06 09:45 PM Re: Kixforms - Version 2.1 (Build 34) Released
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
heh...
didn't even think of that...

you know, when you think you are good, you're not... well, I humble myself and get back to it.

thanks.
_________________________
!

download KiXnet

Top
#88471 - 2002-10-06 09:53 PM Re: Kixforms - Version 2.1 (Build 34) Released
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
heh - "the more you know, the less you know."
Top
#88472 - 2002-10-06 10:39 PM Re: Kixforms - Version 2.1 (Build 34) Released
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so...

how I get the names of the columns?
caption?

{edit}
answered my own question:
for $counter=0 to $listview.columns.count
$listview.columns($counter).caption ?
next

[ 06. October 2002, 22:44: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#88473 - 2002-10-06 11:22 PM Re: Kixforms - Version 2.1 (Build 34) Released
Shawn Administrator Offline
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
#88474 - 2002-10-07 01:45 AM Re: Kixforms - Version 2.1 (Build 34) Released
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
great...
anyway, I need $i for current script but have to keep this in mind...

I thought I tried something similar and got dispatch error but quess my call had fatal error in it...

{edit}
could the progress have a percent value in it...
you know, the way it's in all those installation programs and such...
 

[ 07. October 2002, 01:46: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#88475 - 2002-10-07 02:00 AM Re: Kixforms - Version 2.1 (Build 34) Released
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Yeah - I know exactly what you mean about the %complete thingy - I'm going to be upgrading all the controls as we go along ... the first one to get upgraded will probably be the button object ... want to get buttons that support icons and captions at the same time ... the proggy bar will get upgraded as we go along.
Top
#88476 - 2002-10-07 02:08 AM Re: Kixforms - Version 2.1 (Build 34) Released
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
btw, about the stack overflow...

I've seen it now with my 2.1 compliant checker.
it happens if I cut the net connection while checker running...
say with looptime of 20 secs and checker up for 5 mins causes the stack error.

bad programming maybe but that actually shows that using some executes inside one of other causes sooner or later this problem...

k, going for that ping udf now... using exist("\\wksta\admin$") against machines not responding causes up to 15 seconds hang...
 

{edit}
btw, that dot thingie got me already confused...
I had a line:
$item = list.items.add("me",50).

and thought why the subitems are not filling up...

[ 07. October 2002, 02:14: Message edited by: Lonkero ]
_________________________
!

download KiXnet

Top
#88477 - 2002-10-07 02:36 AM Re: Kixforms - Version 2.1 (Build 34) Released
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Yeah, know what you mean. I don't really, really like it either but what the heck eh ? Plus, like RedBack said (I think) ... one day Ruud may change or fix this behavior and then we'll be wondering why our scripts are broken.

I thought Ruud had fixed this thingy - in one of the earlier releases - in fact - thought it was YOU that first brought it to his attention.

Top
#88478 - 2002-10-07 02:49 AM Re: Kixforms - Version 2.1 (Build 34) Released
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Just working on this TextBox & AcceptsReturn & AcceptsTab thingy ...

Wondering what should be the DEFAULT behavior for the TextBox should be. AcceptsTab should be off by default - think that one is pretty straight-forward. But AcceptsReturn - should that be ON or OFF by default ... hmmm ...

Top
Page 1 of 3 123>


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

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

Generated in 0.074 seconds in which 0.026 seconds were spent on a total of 12 queries. Zlib compression enabled.

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