Page 1 of 2 12>
Topic Options
#93044 - 2003-10-02 09:56 AM treeview in kixforms listview, eh?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
was kinda bored when all north american started going to bed, so wrapped this up.
what ya think?
$=createobject("kixtart.form")
$l=$.listview(,5,5,280,90)
$l.headerstyle=0
dim $topics[2]
$topics[0]="starters","new to kixtart","shawn","J'lo"
$topics[1]="moderators","wtf","doc"
$topics[2]="general","symantec pain","Jochen","hoby","kent"
$l.tag=$topics
$.center
$.size=300,140
$l.columns.add("+/-",20).
$l.columns.add("forum",100).
$l.columns.add("post",100).
for each $topic in $topics
$item=$l.items.add
$item.subitems(0).text="+"
$item.subitems(1).text=$topic[0]
next
$.show
$l.onclick="clicked"
while $.visible $e=execute($.doevents) loop

function clicked()
dim $,$i,$!,$a,$_
$a=$l.tag
$i=$l.listindex
$_=ubound($a[$i])-1
select
case "+"=$l.items($i).subitems(0).text
redim preserve $a[ubound($a)+$_]
for $!=ubound($a) to $i+$_ step -1
$a[$!]=$a[$!-$_]
next
$l.items($i).subitems(0).text="-"
for $=2 to ubound($a[$i])
$!=$l.items.insert($i+1)
$!.subitems(1).text=$a[$i][$]
next
case "-"=$l.items($i).subitems(0).text
for $!=$i+1 to ubound($a)-$_
$a[$!]=$a[$!+$_]
next
redim preserve $a[ubound($a)-ubound($a[$i])+1]
$l.items($i).subitems(0).text="+"
for $=2 to ubound($a[$i])
$!=$l.items.remove($i+1)
next
endselect
$l.tag=$a
endfunction
_________________________
!

download KiXnet

Top
#93045 - 2003-10-02 01:58 PM Re: treeview in kixforms listview, eh?
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
holy crap how'd you do that ?
Top
#93046 - 2003-10-02 02:05 PM Re: treeview in kixforms listview, eh?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
dad, it's not finished yet.
this is the simple version as didn't want to give a header:
-parameter 1 OBJECT - needed listview
-parameter 2 ARRAY - optional array of arrays stating the treeview structure

damn, it's for regular user almost as hard to create the array-of-arrays as for me to create this func.
_________________________
!

download KiXnet

Top
#93047 - 2003-10-02 02:06 PM Re: treeview in kixforms listview, eh?
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
jlo,

Remember, the TreeMenu code that I sent you? Did you cheat and look there? [Wink] It should have some great ideas.. I know it is JavaScript, which is different, but is good stuff nonetheless.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#93048 - 2003-10-02 02:14 PM Re: treeview in kixforms listview, eh?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
nope, didn't check that code as it is way too complex me thinks.

should learn my jscript, but me basta is lazy.
anyway, it was hard to come up with this either as I know shawn will be adding treeview to kixforms really soon cause I ASKED [Wink]
_________________________
!

download KiXnet

Top
#93049 - 2003-10-02 02:21 PM Re: treeview in kixforms listview, eh?
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
How about expanding on this? [Big Grin]

Smart Folding Menu Tree

Contractible Headers

Cool stuff!

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#93050 - 2003-10-02 02:30 PM Re: treeview in kixforms listview, eh?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
the first one looks quite ok for a web page.
obviously the style is screwed but can fix that easy.
still, not good for anything like kixforms.
all it is about is styled listing.

indeed, will need to look at it, as it seems quite easy to maintain.
thanks for the link.
_________________________
!

download KiXnet

Top
#93051 - 2003-10-02 02:47 PM Re: treeview in kixforms listview, eh?
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
Sending you a mail later today shawn. An object a friend of mine did, expanding the functionality of system.windows.forms.treeview
_________________________
The tart is out there

Top
#93052 - 2003-10-02 03:27 PM Re: treeview in kixforms listview, eh?
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
mats, thanks, looking forward to that. you have my home email ja ?
Top
#93053 - 2003-10-03 01:49 AM Re: treeview in kixforms listview, eh?
Paul_Berquam Offline
Hey THIS is FUN

Registered: 2000-08-02
Posts: 310
Loc: Sacramento, CA USA
Any changes from the one you showed me last night?
_________________________
He was a good little monkey and always very curious...

Top
#93054 - 2003-10-03 11:53 AM Re: treeview in kixforms listview, eh?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
who knows... [Roll Eyes]
_________________________
!

download KiXnet

Top
#93055 - 2003-10-07 11:30 AM Re: treeview in kixforms listview, eh?
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
@shawn, I used the one in your profile [Smile]
_________________________
The tart is out there

Top
#93056 - 2003-10-07 02:03 PM Re: treeview in kixforms listview, eh?
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
I have never seen that one before - THE ALL NEW, ALL PURPOSE, @shawn MACRO!! It slices, it dices, it shreds!! [Big Grin] [Big Grin]

L8r!

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#93057 - 2003-10-07 02:07 PM Re: treeview in kixforms listview, eh?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
...it bastafies!
_________________________
!

download KiXnet

Top
#93058 - 2003-10-07 06:43 PM Re: treeview in kixforms listview, eh?
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
Bastahs the both of you [Wink] ... I love this little scriptlet here, going to use it in that Kixpad script Jooel, this would make a great mini-treeview for the options forms. Kinda netscape-properties-like ja ?
Top
#93059 - 2003-10-07 07:47 PM Re: treeview in kixforms listview, eh?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you basta really going to use this?
no need for real treeview version?
_________________________
!

download KiXnet

Top
#93060 - 2003-10-07 10:38 PM Re: treeview in kixforms listview, eh?
masken Offline
MM club member
*****

Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
uhm.. hehe, at least go for system.windows.forms.treeview support?

 -
_________________________
The tart is out there

Top
#93061 - 2003-10-07 10:41 PM Re: treeview in kixforms listview, eh?
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
masken, that is another thing.
it's something shawn will need to code.
this is ready coded so this should be sufficient for his script.

still thinking about making this proper for udf-forum.
_________________________
!

download KiXnet

Top
#93062 - 2003-10-07 10:56 PM Re: treeview in kixforms listview, eh?
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
mats, i didn't thank you for your email - thank you - thats one hell of a big dotnet control your buddy did, think one of the biggest i have seen. by the way it will be:

$treeview = $system.windows.forms.treeview()

You laugh ...

Top
#93063 - 2003-10-08 12:11 AM Re: treeview in kixforms listview, eh?
Chris S. Offline
MM club member
*****

Registered: 2002-03-18
Posts: 2368
Loc: Earth
I love namespaces. I love namespaces. I love namespaces. I love namespaces. I love namespaces. I love namespaces. I love namespaces. I love namespaces. I love namespaces. I love namespaces.

I'll keep repeating that until I do. [Wink] [Razz]

I love namespaces. I love namespaces. I love namespaces. I love namespaces...

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
1 registered (Allen) and 1198 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.156 seconds in which 0.075 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