Page 2 of 2 <12
Topic Options
#88730 - 2002-10-17 02:37 PM Re: Kixforms - Version 2.1.1 (Build 35) Pre-Release Round Up
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I might have spelled that wrong.
it still accepts all those 250 columns.
but the last ones will not show as they become hidden...

to really show what I mean, try this:
code:
$form = createobject("kixtart.form")
$form.size=$form.screen.width,300
$form.left=0

$list= $form.listview(,2,2 ,$form.clientwidth-4,240)

for $=0 to 200
$list.columns.add($,200).
next

$form.show
while $form.visible $=execute($form.doevents) loop
exit 0

first not shown is at 164 on my test.
then changing the width of the column 162 will show the 164 and so one...

so quick calculation...
162,5x200=16250x2=32500

eh, is that what?
isn't that just the same as kixtarts limit on string length?
so, where is the memory limit on this one?
_________________________
!

download KiXnet

Top
#88731 - 2002-10-17 02:49 PM Re: Kixforms - Version 2.1.1 (Build 35) Pre-Release Round Up
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
btw, is the listview going to have the ability to add the newist at the top or do I have to script the movement of all items one down and then add the first?
_________________________
!

download KiXnet

Top
#88732 - 2002-10-17 05:32 PM Re: Kixforms - Version 2.1.1 (Build 35) Pre-Release Round Up
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Jooel - yeah the major thing left to add to the ListView is the Insert method for the Items collection, it will look like this:

$Item = $ListView.Items.Insert(index,string)

It will insert the item string at given index ... will get it in for the weekend build.

Top
#88733 - 2002-10-17 06:11 PM Re: Kixforms - Version 2.1.1 (Build 35) Pre-Release Round Up
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
any update on that width thingie?
_________________________
!

download KiXnet

Top
#88734 - 2002-10-17 10:03 PM Re: Kixforms - Version 2.1.1 (Build 35) Pre-Release Round Up
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Jooel buddy - was doing some more playing (with the scriplet you provided) and i think you answered your own question there ... although I couldn't find any additional info on the web - it would seem that the ListView Header control has some sort of column/string cutoff point. Like you say - there must be a formula because if you reduce the size of the columns, more of them get displayed ... and 32K sounds like a nice round binary number to me.

Having said all that, not much I can do about this whole business I'm afraid ... other than maybe supporting a more robust Grid control in the future. Like I mentioned earlier (in another thread) - got (had) plans to implement a custom GRID control down the road (GridView/GridList?) but it is derived from the ListView control as well ... so probably same situation would occur ... maybe I'll rethink this or keep this in mind when that time comes.

Top
#88735 - 2002-10-17 10:24 PM Re: Kixforms - Version 2.1.1 (Build 35) Pre-Release Round Up
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Added the following to the list:

code:
14) Bring back support for Menus and Menu Items

15) Timer Reset method.

16) Implement BrowseForFolderDialog.

17) Fix Spinner long duration click issue.


Top
#88736 - 2002-10-22 06:33 PM Re: Kixforms - Version 2.1.1 (Build 35) Pre-Release Round Up
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Added a few more enhancements to the list. Some are requests, some are just stuff I've been meaning to do.
Top
#88737 - 2002-10-24 09:08 AM Re: Kixforms - Version 2.1.1 (Build 35) Pre-Release Round Up
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Shawn,

here's another (less important) one:

Is it possible to display the MsgBox object
centered to the active Form by default ?

There's not much I can think of to control this from within the script ... quite stupid thing that MsgBox [Roll Eyes] [Big Grin]

J.
_________________________



Top
#88738 - 2002-10-24 01:58 PM Re: Kixforms - Version 2.1.1 (Build 35) Pre-Release Round Up
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
j, as discussed, the MsgBox function has a "mind of its own" ... could always construct your own message box UDF though [Wink]
Top
#88739 - 2002-10-24 02:08 PM Re: Kixforms - Version 2.1.1 (Build 35) Pre-Release Round Up
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Yeah,

the box will miss then the icon though [Roll Eyes]
_________________________



Top
#88740 - 2002-10-24 02:22 PM Re: Kixforms - Version 2.1.1 (Build 35) Pre-Release Round Up
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Well, you coud "try" setting the icon as a resource from SHELL32.DLL. But from my experience so far, the resources out of SHELL32.DLL are not consistent across OS's. I always thought that they were. Syntax is as follows:

$MsgBoxIcon.Icon = "SHELL32.DLL;23"

where "23" is the resource ident from the dll.

Top
#88741 - 2002-10-25 09:50 AM Re: Kixforms - Version 2.1.1 (Build 35) Pre-Release Round Up
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
uh ,

missed this ... no, i meant the Icon in the box (red exlamation mark, question mark etc) not the one in the title [Big Grin]

Anyways , i'll stick with MsgBox

J.

{edit}
Hehe, nice tip ; got 22 for Options and 24 for help
{/edit}

[ 25. October 2002, 09:58: Message edited by: jpols ]
_________________________



Top
Page 2 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 248 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.147 seconds in which 0.106 seconds were spent on a total of 14 queries. Zlib compression enabled.

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