This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Where i can download ListView, TreeView, WinSock examples?


Where i can download ListView, TreeView, WinSock examples?

Postby Aragost » Jan 31, 2006 @ 9:08am

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
Aragost
 


Postby kornalius » Jan 31, 2006 @ 2:26pm

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


need samples

Postby Aragost » Feb 1, 2006 @ 7:49am

Aragost
 


Postby kornalius » Feb 3, 2006 @ 2:17pm

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


register problem solved

Postby Aragost » Feb 4, 2006 @ 10:07pm

Aragost
pm Member
 
Posts: 3
Joined: Feb 4, 2006 @ 8:43pm
Location: Russia


Can't see tree.

Postby Aragost » Feb 5, 2006 @ 10:34am

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).
Aragost
pm Member
 
Posts: 3
Joined: Feb 4, 2006 @ 8:43pm
Location: Russia


Postby kornalius » Feb 6, 2006 @ 2:51am

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


why need to rerun ppl?

Postby Aragost » Feb 6, 2006 @ 8:15am

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.
Aragost
pm Member
 
Posts: 3
Joined: Feb 4, 2006 @ 8:43pm
Location: Russia


Postby kornalius » Feb 6, 2006 @ 7:47pm

TreeView_AddItem() doesn't work with COM/ActiveX handles. It only works with window handles created with NewControl().
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Return to Pocket Programming Language (PPL)


Sort


Forum Description

Discuss this new development tool.

Moderator:

kornalius

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron