Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Help with ControlsEx

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-08-2007, 03:19 PM
Newbie
 
Join Date: Sep 2007
Posts: 3
Default Help with ControlsEx

First let me say I'm new to the the product and this forum, so if I make a mistake or ask a dumb question, please be gentle.

I just upgraded to version 5.5 and then followed the Web instructions for downloading and installing the ControlsEx library. I opened a new project, created a blank new form and saved it. I copied the sample code from the TreeView help, replacing the default code you get with a new project.

Running the program, I receive:

Error compiling program,
Error description: tv is not a nown control or object.
Occurred on line: 10
tv.New1("Form1", 5, 10, 200, 200)

I'm sure I'm missing something simple here. Thanks in advance for your wise counsel.

jrb
Reply With Quote
  #2 (permalink)  
Old 09-08-2007, 03:24 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

There are two things you should first do:
1. Add the ControlsEx library to your project: Tools - Components - Add Both - ControlsEx.dll
2. Add a TreeView control named tv: Tools - Add Object - TreeView - tv
See this page for more information about external libraries: http://www.basic4ppc.com/help/externallibraries.html
Reply With Quote
  #3 (permalink)  
Old 09-08-2007, 03:42 PM
Newbie
 
Join Date: Sep 2007
Posts: 3
Default

Erel,

Thanks again for your quick response. I had added the component, but missed the add object. I also figured out that I had to add node objects as well. Can objects (i.e., new nodes) be added at runtime?

Again, thanks

jrb
Reply With Quote
  #4 (permalink)  
Old 09-08-2007, 03:43 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,726
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Yes, using the AddObject keyword.
Reply With Quote
  #5 (permalink)  
Old 09-08-2007, 03:44 PM
Newbie
 
Join Date: Sep 2007
Posts: 3
Default

oops, never mind... I just finished reading your suggested link. tx jrb
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
using tabControl from ControlsEx Ricky D Questions (Windows Mobile) 2 09-18-2008 06:21 AM
ControlsEx V1.3 Erel Official Updates 0 05-21-2008 06:08 PM
ControlsEx update Erel Official Updates 0 03-14-2008 05:11 PM
Bug in TreeView.dll/ControlsEx.dll? specci48 Bug Reports 4 09-26-2007 02:45 PM
ControlsEx library was released Erel Announcements 5 09-10-2007 10:02 PM


All times are GMT. The time now is 05:09 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0