Page 1 of 1

Where i can download ListView, TreeView, WinSock examples?

PostPosted: Jan 31, 2006 @ 9:08am
by Aragost
Where i can download ActivX: ListView, TreeView, WinSock examples?

listview_lib.ppl compiler errors:
PPL compiler v.0.9.5
** (listview_lib.ppl=9584byte) Syntax error at 'LVM_SETCOLUMNORDERARRAY' (22,2)
sendMessage(LV_Handle$, LVM_SETCOLUMNORDERARRAY, ColArraySize$, &ColArray$);
** (listview_lib.ppl) Invalid number of output arguments (0) at '=' (180,18)
lvColumn.mask$ = LVCF_TEXT;

Why i can't add TreeView.Node.item by:
n$ = GetProperty(o$, "Nodes");
Invoke(n$,"add(0,0,0,'root',0,0)");

PS:
I don't see attached links in forum, and where registration form?

email: irc.ru(at)mail.ru

PostPosted: Jan 31, 2006 @ 2:26pm
by kornalius

need samples

PostPosted: Feb 1, 2006 @ 7:49am
by Aragost

PostPosted: Feb 3, 2006 @ 2:17pm
by kornalius

register problem solved

PostPosted: Feb 4, 2006 @ 10:07pm
by Aragost

Can't see tree.

PostPosted: Feb 5, 2006 @ 10:34am
by Aragost
Used many code combinations, compiled, but see only one empty rectangle, for example:
n$ = GetProperty(o$, "Nodes");
r$ = Invoke(n$,"add(0,0,0,'root',0,0)");
p$ = TreeView_AddItem(n$, 'par', r$, 1);
Need help: treeview sample with screenshot showed results (visual tree).

PostPosted: Feb 6, 2006 @ 2:51am
by kornalius

why need to rerun ppl?

PostPosted: Feb 6, 2006 @ 8:15am
by Aragost
Thanx! This worked.
But now i don't understand: why needed rerun ppl compiler every time, to rerun program(elsewhere items not added).
Maybe i foget free(someobject)? (freeactivx(a$) exist)

ps: how to add subitem?
after code:
n$ = GetProperty(o$, "Nodes");
r$ = Invoke(n$, "add", 0, 0, 0, "root", 0, 0);
i try to add sub item:
1) i1$ = TreeView_AddItem(o$, "item1", r$, 0);
//that not worked
2) i1$ = Invoke(n$, "add", 0, 0, 0, "item1", 0, 0);
//and that not worked (tryed to replace every 0 with r$)
but that 2 methods add next item.
Thank for your time.

PostPosted: Feb 6, 2006 @ 7:47pm
by kornalius
TreeView_AddItem() doesn't work with COM/ActiveX handles. It only works with window handles created with NewControl().